Re: Setting Script variables with Apple Events
Re: Setting Script variables with Apple Events
- Subject: Re: Setting Script variables with Apple Events
- From: bryan <email@hidden>
- Date: Mon, 29 Apr 2002 05:30:09 -0400
Here's one way to do it;
1. make your script a stay open script.
2. wrap your code in a handler inside the script
(ex: myhandler(var1,var2,var3))
3. activate the script
4. call the handler
tell application myscript to activate
set myvariable1 to true
set myvariable2 to "alpha"
set myvariable3 to "omega"
tell application myscript to myhandler(myvariable1,myvariable2,myvariable3)
Pier Kuipers wrote:
>
Hi List,
>
>
After long absence from the list, I need to call on your combined
>
knowledge again.
>
>
I am looking for pointers on how to send Apple Events to a script
>
applet; let me explain: I am running a Web Server with WebSTAR, FMPro
>
and Lasso 3.6. Lasso allows the sending of Apple Events, which is, of
>
course, very useful if you know how to use them.
>
>
What I would like to do, is send an Apple Event to launch an
>
Applescript, and use the same Event to set the variables the Script
>
needs. How does that work? Can a script read variables from an Apple
>
Event?
>
>
Please shine a light - it's dark out here....
>
>
Pier.
>
--
>
Pier Kuipers
>
Visual ID
>
* the Media Asset Management solution *
>
>
2 Whitefriars
>
Aungier Street
>
Dublin 2
>
Tel. +353 1 476 7059
>
Mobile +353 87 294 3063
>
Fax +353 1 478 1366
>
ISDN +353 1 602 0754
>
>
http://www.visualid.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.
_______________________________________________
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.