On Jan 12, 2013, at 12:32 PM, koenig.yvan wrote: I just read the description of run script in Standard additions.
I saved this script on the Desktop as target.app
on run {a, b} display dialog a & return & b end run
Then I saved this other script as caller.app
(path to desktop as text) & "target.app:" result as alias run script result with parameters {"bonjour", "bonsoir"}
Double clicking the second sript executed the first one displaying the dialog :
There is one tiny difference between 'run script' and 'run application' that makes this unworkable for me.
When the Caller does 'run script', it waits for the called script to finish before continuing.
When the Caller does 'run application', the called application begins running while the Caller continues without waiting for the called application to finish. Two independent applications are now running.
In my usage, the called application displays a "please wait
" dialog until it detects that the Caller has finished and quit, then the display goes away. So, I need to use 'run application'.
So, the problem is
can 'run application' pass parameters? If so, how?
I think the answer is No.
|