5 Replies Latest reply on Apr 23, 2014 10:38 AM by FrankThommen

    How to make FMP the frontmost application after an "Open URL" script step?

    FrankThommen

      Title

      How to make FMP the frontmost application after an "Open URL" script step?

      Post

           Hi,

           is there a way to make FMP the frontmost application after an "Open URL" script step?  Take the following script:

        # change stuff in an online DB through browser
        Open URL [ "http://my.url" ] [ No dialog ]
        Pause/Resume Script [ Duration (seconds): 2 ]
        # return to FMP and reload DB stuff into FMP through ODBC
        Select Window [ Current Window ]
        Refresh Window [ Flush cached join results; Flush cached external data ]
      

            

           After this script has run, the FMP window is effectively refreshed, but in the background and the browser is still the frontmost application.  To continue to work with FMP one has to click into the FMP window first, which is annoying (especially when it is on a different virtual desktop).  So far I've only found the "Send Event [open application]" script step to make FMP the frontmost application again.  This seems a bit of an overkill, since we are already running FMP :-)

           Is there a other built-in way in FMP to make FMP the frontmost application?

           This is FMP 13 on Mac OS X 10.7.

           Cheers and thanks

           Frank