Re: Variables inside handlers
Re: Variables inside handlers
- Subject: Re: Variables inside handlers
- From: julifos <email@hidden>
- Date: Wed, 11 Dec 2002 09:42:51 +0000
>
OK, I've been reading these replies and scratching my head for half an hour,
>
and I'm thinking that my original post might not make much sense...
>
>
The first script ...
>
>
ignoring application responses
>
launch application "OSX:test3app"
>
run application "OSX:test3app"
>
tell application "OSX:test3app" to somehandler("$1", "$2", "$3")
>
end ignoring
>
>
... is actually something I added to 'mailScript.applscript' which is an
>
AppleScript that iCal runs to send mail when a calendar event is reached,
>
and those variables ("$1", "$2", "$3") are generated by iCal. The idea was
>
that iCal would run 'mailScript.applscript', and the code I added to it
>
would in turn run my own script application (test3app) and pass the
>
variables to it.
>
>
The problem is that after the variables are parsed to 'test3app', they
>
aren't accessible outside of the handler.
>
>
Does all that make sense? I apologise for my ramblings... ;)
>
>
Thanks again for your help,
>
>
-Rob
Ben gave you all the keys! You can confine any variable you want into
globals or properties, then access them "whenever you want wherever you
are"...
Your "test3app" is a stay-open app, true?...
JJ
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.