Monday, November 20, 2017

#1 2017-07-07 05:21:01 am

SunnyFrinton
Member
Registered: 2012-09-13
Posts: 19

Pass parameters to another application

In ApplescriptObjC/Xcode I am trying to pass a parameter/variable from one app to another, have managed to work out how to call another app but not how to pass. Also, how to accept a parameter in the receiving app. Any guidance gratefully received.

        set appName to item i of menuList -- extract app name
        current application's NSWorkspace's sharedWorkspace's launchApplication_(appName) -- launch selected app
        tell application appName to activate -- activate selected app
        tell current application's NSApp to terminate_(me) -- terminate this app

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)