Re: To Run or Not To Run. That is the Question.
Re: To Run or Not To Run. That is the Question.
- Subject: Re: To Run or Not To Run. That is the Question.
- From: Shane Stanley <email@hidden>
- Date: Wed, 04 Mar 2015 23:21:50 +1100
On 4 Mar 2015, at 10:15 pm, S. J. Cunningham <email@hidden> wrote:
>
> I typed run() because i was planning to pass arguments to it during the call, eg run(a,b,c). The script editor changes () to {} and inserts the space between them and "run".
That's because you *can't* say "on run()" or "on run(a,b,c)". You need to use "on run" or "on run someArg".
> When I tell it to run from the second script, the icon starts hopping in the dock to get my attention.
So far, so good.
> Only when I click it is the dialog displayed
And again...
> followed immediately by the error message "script.app got an error: Can’t continue run." number -1708". If I leave out the "display dialog", I get the message "script.app got an error: Connection is invalid."
>
> I tried adding an "activate" to the run handler and/or telling it to "activate" rather than "run" from the second script but it makes no difference.
Is there anything else in the script?
>
> Why does this weird stuff always happen to me?
Why, Snow Leopard of course :)
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden