Re: passing a parameter to the run handler
Re: passing a parameter to the run handler
- Subject: Re: passing a parameter to the run handler
- From: has <email@hidden>
- Date: Tue, 26 Jul 2005 18:51:03 +0100
John Rethorst wrote:
>There's no calling script here; it's an application sending a run event.
To handle a URL? That would be a very odd way to do it. I'd have expected the client app to send the helper app a WWW!OURL or GURLGURL event for that. In which case you need to change:
on run {theURL}
...
end run
to:
on «event WWW!OURL» theURL given «class WIND»:w
...
end «event WWW!OURL»
or:
on «event GURLGURL» theURL
...
end «event GURLGURL»
as appropriate, and save your applet in stay-open form.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden