I found this thread from a while ago.
https://secure.macscripter.net/viewtopic.php?pid=126689
The question was about having more than one handler running at the same time, and if it is possible in ASObjC. The answer is kind of no.
Shane suggested this code:
property theCount : 0 on buttonPush_(sender) set theCount to theCount + 1 performSelectorInBackground_withObject_("myTest", missing value) end buttonPush_ on myTest() set myCount to theCount repeat 6 times log "Running test " & myCount delay 1 end repeat log "ending test " & myCount end myTest
To be able to trigger a script and have it run essentially giving the user access to the GUI.
This was from a while ago, I guess I'm just curious to know if anything has changed with Lion? Or if I try and trigger two scripts at the same time, say one to process InDesign documents and the other to process files in Photoshop at the same time, will one wait for the other to be completed?
Thanks in advance for any help.
Wayne. |