Le 04/03/2015 à 14:02, S. J. Cunningham < email@hidden> a écrit :
According to the documentation, I tried to use this code:
launch application "script" run application "script"
English is not my native language so, as I was not sure that I understood well your sentence You have to launch, then run it. You can't just run it. Or just activate it. I tried also : launch application "script" activate application "script"
With this last attempt, the app's icon bounced in the Dock (whose behavior was temporarily modified) but the dialog didn't appear.
To be sure that the dialog was not behind a window, I edited the app itself as :
on run tell application "SystemUIServer" to display dialog "Running" end run
But got no more luck.
At last I tried with the code for lazy users :
activate application "script"
and it worked flawlessly.
Yvan KOENIG (VALLAURIS, France) mercredi 4 mars 2015 14:21:39
|