Switch detection applications

Hello

Does anyone know how to detect if my request changed?
I'm working on one that contains sensitive data, and I would like to have the application automatically disconnect when the application is moved on.

Thank you

Joel Barnard

Simply override Application.deactivate (), it is called when the request is addressed (as when the application Switcher is called) and you can do all your processing it.

Tags: BlackBerry Developers

Similar Questions

  • Background switch detected for MyApp (24) who doesn't have the tunnels open - defocus is NOT called

    I get the error "background switch detected for MyApp (24) who doesn't have the tunnels open - defocus is NOT called. Then the Simulator freezes and I can't do anything. Tried to debug but no luck!

    My application has two other entry points implemented from article http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800738/800901/How_To _...

    Please see code below

    public class UserInterface extends UiApplication{
    
        public static void main(String[] args){
    
            if ((args != null) && (args.length > 0) && (0==StringUtilities.compareToIgnoreCase(args[0].toString(), "GUI"))){
    
                UserInterface theApp = new UserInterface();
                theApp.enterEventDispatcher();
            }
            else {
                try
                {
                    Wait();
                                SetTimer();
                    ManageResources mg = new ManageResources();
                    System.exit(0);
    
                }
                catch (Exception ex)
                {
                    if (RuntimeConfig.DEBUG)
                    {
                        System.out.println("UserInterface, main:  " + ex);
                    }
                }
            }
        }
        public UserInterface() {
            //  DialogDisplay dd = new DialogDisplay();
            pushScreen(new UserInterfaceScreen(this));
        }
    

    I also had this problem, the cause is that my computer is behind a proxy firewall so that MDS services Simulator cannot connect to internet, I added the following lines in the file rimpublic.property in the directory "Eclipse\plugins\net.rim.eide.componentpack4.7.0_4.7.0.46\components\MDS\config".

    application.handler.http.proxyEnabled = true
    application.handler.http.proxyHost = proxyserver
    application.handler.http.proxyPort = 8080

    These lines must be placed in the [MANAGER HTTP] section.

    It will be useful.

  • iMac (retina 5K, 27 inches, end of 2015) 1-2 second stops when you try to open or switch between applications

    1-2 second ago stops whenever I try to open an application or switching between applications. The animation of the application icon in the status bar at the opening of the starts, pauses for 1-2 seconds and ends before you open the application. When you click on an inactive application window it pauses for 1 to 2 seconds before making the active window. This only happens after a reboot. It takes about a day being initialized for this problem to occur.

    This does not seem like behaviour expected of such a new machine with charge card. All advice is appreciated.

    Here is my EtreCheck report:

    ***

    EtreCheck version: 2.9 (250)

    Report generated 2016-02-03 11:33:10

    Download EtreCheck from http://etrecheck.com

    Running time 01:31

    Performance: Excellent

    Click the [Support] links to help with non-Apple products.

    Click [details] for more information on this line.

    Click on the link [check files] help with unknown files.

    Problem: Computer is too slow

    Description:

    1-2 second ago stops whenever I try to open an application or switching between applications.

    Hardware Information:

    iMac (retina 5K, 27 inches, end of 2015)

    [Data sheet] - [User Guide] - [Warranty & Service]

    iMac - model: iMac17, 1

    1 4 GHz Intel Core i7 CPU: 4 strands

    32 GB of expandable RAM - [Instructions]

    BANK 0/DIMM0

    8 GB DDR3-1867 MHz ok

    0/DIMM1 BANK

    8 GB DDR3-1867 MHz ok

    BANK 1/DIMM0

    8 GB DDR3-1867 MHz ok

    BANK 1/DIMM1

    8 GB DDR3-1867 MHz ok

    Bluetooth: Good - transfer/Airdrop2 taken in charge

    Wireless: unknown

    Video information:

    AMD Radeon R9 M395X - VRAM: 4096 MB

    iMac 5120 x 2880

    Software:

    OS X El Capitan 10.11.3 (15 d 21) - time since started: about one day

    Disc information:

    SM1024G SSD APPLE disk0: (1 TB) (Solid State - TRIM: Yes)

    EFI (disk0s1) : 210 MB

    HD (disk0s3) [recovery] recovery: 650 MB

    iMac (disk1) /: 999,33 (Go 652,85 free)

    Storage of carrots: disk0s2 999.70 GB Online

    USB information:

    Broadcom Corp. Bluetooth USB host controller.

    Apple Inc. FaceTime HD camera (built-in)

    Western Digital my passport 071D 1 TB

    EFI (disk2s1) : 210 MB

    Boot OS X (disk2s3) : 134 MB

    Backup local (DIS3) Volumes/iMac/iMac local backup: 999,51 (Go 107,33 free)

    Encrypted AES - XTS unlocked

    Storage of carrots: disk2s2 999.83 Go online

    Apple Inc. IPhone.

    Reader SuperDrive for MacBook Air Apple Inc..

    Lightning information:

    Apple Inc. Thunderbolt_bus.

    Guardian:

    Mac App Store and identified developers

    Unknown files:

    /Library/LaunchAgents/com.support.com.PerUser.Nexusd.plist

    /Library/LaunchAgents/com.support.com.PerUser.Nexussrvd.plist

    2 unknown files found. [Check files]

    Kernel extensions:

    / System/Library/Extensions

    com [no charge]. Belcarra.iokit.USBLAN_netpart (2.0.2) [Support]

    com [no charge]. Belcarra.iokit.USBLAN_usbpart (2.0.2) [Support]

    com [no charge]. RemoteControl.USBLAN.usbpart (2.0.6) [Support]

    /System/Library/Extensions/Belcarra.USBLAN_netpart.kext/contents/plugins

    [no charge] com.belcarra.IOKit.netpart.Panther (1.6.1) [Support]

    /System/Library/Extensions/Belcarra.USBLAN_usbpart.kext/contents/plugins

    [no charge] com.belcarra.IOKit.usbpart.Panther (1.6.1) [Support]

    / System/Library/extensions/remotecontrol. USBLAN_usbpart.kext/contents/plugins

    com [no charge]. RemoteControl.USBLAN.panther (1.6.1) [Support]

    Launch system officers:

    [loading] 148 tasks Apple

    [operation] 88 tasks Apple

    Launch system demons:

    [loading] 191 tasks Apple

    [operation] 96 tasks Apple

    Launch officers:

    [loading] com.adobe.AAM.Updater - 1.0.plist [Support]

    [loading] com.adobe.CS5ServiceManager.plist [Support]

    [loading] com.support.com.peruser.Nexusd.plist [Support]

    [failure] com.support.com.peruser.Nexussrvd.plist [Support]

    Launch demons:

    [loading] com.adobe.SwitchBoard.plist [Support]

    [loading] com.adobe.agsservice.plist [Support]

    [loading] com.adobe.fpsaud.plist [Support]

    [operation] com.backblaze.bzserv.plist [Support]

    [loading] com.malwarebytes.MBAMHelperTool.plist [Support]

    [loading] com.microsoft.office.licensing.helper.plist [Support]

    [operation] com.sonos.SonosLibraryServer.plist [Support]

    User launch officers:

    [loading] com.adobe.AAM.Updater - 1.0.plist [Support]

    [failure] com.adobe.ARM. [...]. plist [Support]

    com.apple.CSConfigDotMacCert [fail]-[...] @me.com - SharedServices.Agent.plist

    [operation] com.backblaze.bzbmenu.plist [Support]

    [failure] com.google.GoogleContactSyncAgent.plist [Support]

    [loading] com.google.keystone.agent.plist [Support]

    [operation] com.spotify.webhelper.plist [Support]

    [loading] com.valvesoftware.steamclean.plist [Support]

    [operation] net .infinite - labs.SIMBLEnablerForSandboxedApps.plist [Support]

    [operation] ws.agile.1PasswordAgent.plist [Support]

    Items in user login:

    Workflow application (/ Applications/Flux.app)

    iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

    Cinch Application (/ Applications/Cinch.app)

    Canon IJ Network Scanner Selector2 hidden Application (/ library/printers/Canon/IJScanner/utilities/Canon IJ Network scan Selector2.app)

    SizeUp Application (/ Applications/SizeUp.app)

    Dropbox application (/ Applications/Dropbox.app)

    The messages application (/ Applications/Messages.app)

    iTunes application (/ Applications/iTunes.app)

    Other applications:

    [operation] 2BUA8C4S2C.com.agilebits.onepassword - osx-helper

    [ongoing] com.Apple.XPC.launchd.oneshot.0x10000005.EtreCheck

    [ongoing] com.getdropbox.dropbox.48992

    [ongoing] com.irradiatedsoftware.Cinch.151392

    [ongoing] com.irradiatedsoftware.SizeUp.12192

    [ongoing] jp.co.Canon.bj.scan.network.scannerselector2.90592

    jp.co.canon.bj.printer.app.MPNEX213.45792 [loading]

    [ongoing] JP.co.Canon.cijscannerregister.14112

    [ongoing] org.herf.Flux.49952

    Plug-ins Internet:

    AdobeAAMDetect: Version: 1.0.0.0 - 10.6 [Support] SDK AdobeAAMDetect

    FlashPlayer - 10.6: Version: 20.0.0.286 - SDK 10.6 [Support]

    QuickTime Plugin: Version: unknown

    Flash Player: Version: 20.0.0.286 - SDK 10.6 [Support]

    Default browser: Version: 601 - SDK 10.11

    SharePointBrowserPlugin: Version: 14.5.8 - SDK 10.6 [Support]

    Unity Web Player: Version: UnityPlayer version 5.2.0f3 - 10.6 SDK [Support]

    Silverlight: Version: 5.1.41105.0 - SDK 10.6 [Support]

    JavaAppletPlugin: Version: update of Java 7 55 check version

    User Plug-ins internet:

    WebEx64: Version: 1.0 - SDK 10.5 [Support]

    Web of Google Earth plugin: Version: 7.1 [Support]

    Safari extensions:

    1Password

    Add to the list of Amazon gift

    InvisibleHand

    Little time

    PIN button

    3rd party preference panes:

    Backblaze backup [Support]

    Flash Player [Support]

    Time Machine:

    Skip system files: No.

    Mobile backups: OFF

    Automatic backup: YES

    Volumes to back up:

    iMac: disc size: 999,33 GB disc used: 346,49 GB

    Destinations:

    The iMac HD Gallagher family backup local [Local]

    Total size: 999,51 GB

    Total number of backups: 82

    An older backup: 27/05/15, 12:54 AM

    Last backup: 03/02/16, 10:34

    Backup disk size: too small

    Backup size 999,51 GB< (disk="" used="" 346.49="" gb="" x="">

    Top of page process CPU:

    140% nsurlsessiond (2)

    85% launchservicesd

    78% photolibraryd

    11% cloudphotosd

    9% com.apple.photomodel

    Top of page process of memory:

    1.70 GB kernel_task

    1.12 GB launchservicesd

    1.12 GB cloudd

    Softwareupdated 492 MB

    Photolibraryd 229 MB

    Virtual memory information:

    6.39 GB of free RAM

    26,00 used GB RAM (18,35 GB being cached)

    8 MB Swap used

    Diagnostic information:

    3 February 2016, 11:31:58 /Library/Logs/DiagnosticReports/launchservicesd_2016-02-03-113158_[redacted].cp u_resource.diag [details]

    / System/Library/CoreServices/launchservicesd

    3 February 2016, 11:30:22 ~/Library/Logs/DiagnosticReports/iTunes_2016-02-03-113022_[redacted].crash

    com.apple.iTunes - /Applications/iTunes.app/Contents/MacOS/iTunes

    3 February 2016, 08:18:45 /Library/Logs/DiagnosticReports/nsurlsessiond_2016-02-03-081845_[redacted].cpu_ resource.diag [details]

    / usr/libexec/nsurlsessiond

    1 February 2016, 19:53:04 self-test - spent

    Hello Agent37,

    What are your settings of Photos? Looks like you have a ton of photos regenerate and transferring to iCloud. I've seen similar reports, but I'm not a heavy user of Photos. I'll see if I can move your question on the forum Photos: Photos for Mac

  • switch between applications won't go away

    This is a new feature. After upgrade to 8.1, this embarrassing red arrow appears and won't disappear that tells me that I can "switch between applications.

    How to get rid of him? I had to do a full reboot

    It's not a bug guy. All you have to do is go into your control panel and then "taskbar and navigation" and tab "navigation", uncheck the first two options that should:

    "When I point to the upper right, display the charms.
    "When I click on the top left corner, to spend my recent applications"
    Hope this helps!
  • Rearrange the spaces when switching between applications

    When switching between apps spaces can reorganize, which is disturbing for users with specific workflows. For example, right now I have 6 places with different applications in each, and I have these in a specific order. However, since upgrading to El Capitan, I find continues to reorganize themselves. I can reproduce this by opting for an application by opening a window in a non adjacent space. For example, I have a window open in 4-space and I am consulting a window in space 1. If I pass this request, space 4 will be moved to position 2. It always seems to move space to the next position to the right of the current space. I can reproduce this reliable either by opting for an application by using cmd - tab, or if I have multiple windows for a single application running in more than one space, using app expose.

    Djroshi,

    My office reorganise themselves once the screen saver is running can provide you with some tips to change this behavior.

  • 'Switch between applications' pop-up will not disappear.

    I can't seem to get rid of the popup 'switch between aps' theLH side of the desktop. It just seems to be stuck there, ovbscuring nothing below. How can I disable this help application very unhelpful?

    Thank you!!!

    Donald

    Hi Don,

    Take a look at the following to see if anything here helps:

    Hide earn them 8.1 'Tip' on 'Switch between apps "?

    Click on the Thumbs - Up Kudos to show that you appreciate the help.

    Click on accept as Solution when the answer provides a fix or a workaround!

    Although I strive to reflect best practices of HP, I do not work for HP.

  • First Pro crashes when switching between applications

    Hi all

    I edit with Premiere Pro on a Mac Pro running OS X 10.10.2 cylinder (3.5 GHz 6 - Core Intel Xeon E5, 16 GB 1866 MHz DDR3 ECC, over-pants D500 3072 MB), when I connect the images with Excel, I noticed after some time switching between Excel and Premiere Pro or all the other apps, first Pro STILL crashes with the error serious.


    Project is very disappointing and frustrating that you need to open the recovery file, creating another file and have to get timecode all over again, lost a lot of time to. Expect First pro to work smoothly on a Mac Pro.

    Anyone have a similar experience or know a solution?

    Thank you

    L

    29/03/2015 07:19:23.457 com.apple.xpc.launchd [1]: (com.adobe.AdobePremierePro.66488 [4527]) Service was released due to the signal: Segfault: 11

    Here is my complete crash report:

    https://www.dropbox.com/s/08igd5s3s6evquv/Adobe%20Premiere%20PRO%20CC.txt?DL=0

    Process: Adobe Premiere Pro CC 2014 [4527]

    Path: / Applications/Adobe Premiere Pro 2014/Adobe Premiere Pro 2014.app/Contents/MacOS/Adobe first Pro 2014 CC CC CC

    ID: com.adobe.AdobePremierePro

    Version: 8.2.0 (8.2.0)

    Code type: X 86-64 (Native)

    Parent process:? [1]

    Responsible for: Adobe Premiere Pro CC 2014 [4527]

    User ID: 501

    Date/time: 07:19:22.403 2015-03-29 + 0100

    OS version: Mac OS X 10.10.2 (14-1514)

    Report Version: 11

    Anonymous UUID: D42F2CB9-98B4-C04E-E594-A17C39AC5324

    Sleep/wake UUID: B58E8A4B-751B-4568-925F-D3E9E1130B43

    Time since started awake: 13000 seconds

    Wake time: 4000 seconds

    Crashed thread: 0 dispatch queue: com.apple.main - wire

    Exception type: EXC_BAD_ACCESS (SIGSEGV)

    Exception codes: KERN_INVALID_ADDRESS at 0 x 0000000000000000

    Hello world

    I dug deeper reading crash log, and discovered that the reason of my crash is primarily due to the confusion of audio output my mac has as he move from an internal speaker and speaker output and causes the crash. Since I had bought a DAC (digital-to-analog converter) and set the audio output of the DAC first and have no accidents since then. It will be useful.

    L

    ---

    Thread 0 crashed: Dispatch queue: com.apple.main - wire

    0 com.adobe.AudioSupport.framework 0x0000000103d7f8d0 ML::Device:GetNumberOfPhysicalChannels(unsigned_int,_bool) + 80

    1 com.adobe.AudioSupport.framework 0x0000000103d6adb8 ML::CoreAudioHost:PrivateInitDriver(std::basic_string____,_dvacore::utility::SmallBlockAllocator::STLAllocator_ _>_const&) + 712

    2 com.adobe.AudioSupport.framework 0x0000000103d6a18f ML::CoreAudioHost:LoadDriverPrivate(std::basic_string____,_dvacore::utility::SmallBlockAllocator::STLAllocator_ _>_const&,_bool,_bool) + 351

    3 com.adobe.AudioSupport.framework 0x0000000103d6dac1 ML::CoreAudioHost:LoadDriver(std::basic_string____,_dvacore::utility::SmallBlockAllocator::STLAllocator_ _>_const&) + 33

    4 com.adobe.AudioSupport.framework 0x0000000103d7b348 ML::CoreAudioHost::AddDependancy() + 56

  • AppSpeed sees the database, but does not detect application

    Hello

    We test AppSpeed with an application (Web and database).

    We have no problem with the database server, but the web server is still "not mapped" and the application is not detected.

    We are generating traffic, but nothing for several days.

    No idea why?

    Hello

    If the web application is being not mapped, this means that AppSpeed discovered.

    The traffic that you generated is probably not sufficient. I generate heavier traffic and wait a little longer application be detected.

    Thank you

    Zviad Polak

    AppSpeed Support

  • Application Manager is not detect applications installed separately

    I have Acrobat XI PRO installed and Lightroom already installed 4.3 but application manager does not detect them and it will install a SECOND! a copy of it on the same computer. Yes, I tried just to see if he would. I wonder if Adobe will solve this problem. If you install a program separately from the Manager, you would think that the programme would beable to know its there. I had just installed Lightroom 3 copies to see if he would, and of course, it was too stupid to know better.

    Hi DrCheeks,

    Currently, Adobe Application Manager does not detect the facilities that were installed using different Adobe ID (only the current), and this can cause the behavior you describe. It's something our developers know and will change in the future. The current workaround is to uninstall applications through the operating system, control panel > programs and features (Windows 7) or Mac HD > Applications > utilities > Adobe Installers (Mac OS X), then reinstall via Adobe Application Manager with the current Adobe ID.

    -Dave

  • Switching between applications without Login

    Hello
    I have 2 requests of Apex, an and every need "login".
    Once connected to one of these requests, I want to be able to switch between the two without having to "reconnect".
    Is this possible?
    Regars GAson

    If the applications are in the same workspace that can be done as described in thread {: identifier of the thread = 515240}

  • Why Labview block when you switch one application of TestStand to another?

    I have several 2013 TestStand applications that use a number of LabView 2013 screws on a test computer.  When the driver leaves a TestStand program and opens another often Labview does not close properly and therefore what TestStand tries to load the LabView VIs, it is caught or pass just and fails every test that is affected by LabView.  The only potential problems I know are that two of the applications have been created in LabView 2009 and then updated to 2013.  Then two other TestStand created applications in 2013 use the function 'UnloadAllModules '.

    Are there known issues with LabView 2013 causing it or ideas of what I could do wrong?

    Hello Michael,

    I found my problem.  In my case a VI don't was get closed in cleaning because of the previous command don't failed Manager correctly.  This VI would remain open and when I ran another TestStand sequence, when he tried to load that LabView VI he would just stroll.  But the result of this error could be seen when I closed TestStand and LabView are left open (since it was frozen) or execute the sequence and its closure.  So if you tried to LabView pop - up it wouldn't show the start start screen because it had frozen.

    I found the problem by activating the option view the façade VI in TestStand for all calls of VI.  The VI that remained open was the problem VI.

    Thanks to all who responded to your help!

    Kurtus

  • switch between applications

    I got my connected swr10 and cam it allows to control the media player. However how can use the camera feature or find my phone. I installed all the extensions in the app, but every time I try it starts just my Media Player. Thanks for any help. I have to say the support and guides are not exexistent!

    Hello

    AFAIK, you can control only one application. The application that you will be controlling is the application you have chosen as selected via the application SmartBand application.
    http://support.sonymobile.com/global-en/swr10/Userguide/using-your-SmartBand-to-control-music/

  • Touchpad still switches between applications

    I get bored really old touchpad. Who has acted as a mouse. Now, he's doing all these peculiarities that I don't care. When I slip through, sometimes it goes to another application in the middle of the page, I am working on that. It's so frustrating. How can I disable this function so that it can be just a basic mouse? Any offers please...

    I wish I could tell you how to turn it off, but it is not part of Microsoft Windows.  The manufacturer of your computer is the one who built the touchpad, and they also who understand these "sweeping gestures" in them.

    More disturbing is that the options are not always in a standard place, because computer companies that build the touchpad will decide where to put the options.  Sometimes they build it in mouse options in Control Panel, so check it first this:

    1. Right-click the start button (lower left corner of your screen) and choose Control Panel
    2. Go to hardware and sound, and then click 'Mouse' at the top
    3. Locate the touchpad settings. If you do not see a tab for this, check the Hardware tab for a settings button (you may need to highlight your touchpad in the list before clicking on settings).

    If it is not there, who knows where your computer company might put it.  You will need to consult the manual or give them a call.  Toshiba computers even require an additional of the Toshiba support page download before you can set these options.

    Sometimes I wish that the computer just manufacturing companies leave the system alone and stop adding all that junk!  Sorry you must pass it.

  • After effects crashes when switching between applications (Mac) and After Effects does not start after you enable journaling

    Hey there,

    When to (for example), Illustrator and AE program seems to have a greater likelihood of crashing. I was not able to determine exactly why this is happening.

    I often copy - paste forms of AI in AE, but it is not always plant AE. It could be the speed with which I switch between programs, but I'm still not sure about this.

    In addition, it breaks the audio driver somehow and Spotify (running in the background) stops playing. Restart Spotify corrects this problem.

    AE crashes and is often frustrating. I sent Crash Reports, but so far no help.

    I just activated registration--which has also caused some AE to fail. This time when (re) launch the program. It wouldn't start, but also did not highlight as suspended in the Force Quit of OSX dialog box. She would not answer Force closes and hung my system when I tried to reboot. You had to manually restart my Mac Pro.

    Well, variable time!

    Mac Pro (end 2013) 3 GHz 8-Core

    64 GB of ram

    OS X Yosemite (10.10.2)

    After Effects CC 2014 with the latest updates

    Illustrator CC (not 2014) same with the latest updates

    He does not behave like that on my iMac at home.

    Any advice would be (very) welcome at this time.

    Huh! I should have checked the settings correctly. It is a facility relatively new compared with at home.

    Solution: Check that there is enough RAM available for other programs.

    In addition, light AICB could do the trick, too. But I suspect that the latter has a much greater effect.

  • [JS] [CS5] switch between applications CS5

    Hello

    My script starts in InDesign, but I need to trigger Photoshop at some point in the script.  Is it possible to do this other than the script to launch PS AND go back to the JS for me to operate using JS in PS?

    If this isn't the case, I am trying this:

    app.doScript(File("~/Desktop/triggerPS.applescript"), ScriptLanguage.APPLESCRIPT_LANGUAGE);

    that seems to work ok, but my script AS:

    tell application "Adobe Photoshop CS5.

    set myFile to ("Macintosh HD:Users:atlasdemo:Desktop:photoshop.jsx")

    script alias myFile javascript language

    end tell

    compiles, saying:

    Due to end of the line, etc., but found "script."

    Someone can let me know what I am doing wrong, or is there a better way?

    See you soon

    Roy

    Do not confuse with the BridgeTalk class Bridge application. You need not bridgehead running on your system to use BridgeTalk.

    You can also find more simple but more versatile examples in Bridge CS3 SDK: SnpSendMessageToInDesign.jsx, SnpSendMessage.jsx, SnpSendMessage.jsx, SnpSendArray.jsx, SnpSendCustomObject.jsx, SnpSendDOMObject.jsx.

    Here I posted the script. (Attention! "These are work in progress).

    Kasyan

    P.S. here is a very simplified version of the script - only treats hair in RGB mode:

    #target indesignmyDocument = app.activeDocument;openFiles();
    
    function openFiles(){     for(var myCounter = 0; myCounter < myDocument.links.length; myCounter++){     var myLink = myDocument.links[myCounter];          if (myLink.linkType == "TIFF"){               var myImage = myLink.parent;               var myHorScale = myImage.horizontalScale;               var myVerScale = myImage.verticalScale;               if (myImage.space == "RGB") {                    myPath = myLink.filePath;                    ResizeInPS(myPath, myHorScale, myVerScale);               }          }     }}
    
    function ResizeInPS(myPath, myHorScale, myVerScale) {     var bt = new BridgeTalk;     bt.target = "photoshop";     var myScript = 'var myPsDoc = app.open(File(\"' + myPath + '\")); \n';     myScript += 'app.preferences.rulerUnits = Units.PERCENT; \n' ;     myScript += 'myPsDoc.resizeImage(' + myHorScale +', ' + myVerScale + ', myPsDoc.resolution, ResampleMethod.BICUBIC);' ;     bt.body = myScript;     bt.send();}
    

Maybe you are looking for