• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Setting Script variables with Apple Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Script variables with Apple Events


  • Subject: Re: Setting Script variables with Apple Events
  • From: Pier Kuipers <email@hidden>
  • Date: Mon, 29 Apr 2002 15:58:17 +0100

Thanks Bryan, but I'm still in the dark, I'm afraid. What will happen
in my scenario, is that the script receives an Apple Event that will
look something like

'----':obj {form:name, want:type(file), seld:"Hard Disk:ScriptName",
from:'null'()}, plst:["", "", "", "", "", ""]

Where "plst" is parameter list that gets fed to the script in
question. My problem is, how do I get the script to pick up these
parameters - what should my script look like? Do I need to declare a
property at the top level of the script?

Thanks for any help...

Pier.

At 05:30 -0400 29/04/02, bryan wrote:
>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.


--
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.

References: 
 >Error Message Suppression (From: Andy Wylie <email@hidden>)
 >Setting Script variables with Apple Events (From: Pier Kuipers <email@hidden>)
 >Re: Setting Script variables with Apple Events (From: bryan <email@hidden>)

  • Prev by Date: Re: Satimage re_compile regex functions
  • Next by Date: re: integers which just won't be round
  • Previous by thread: Re: Setting Script variables with Apple Events
  • Next by thread: Re: Error Message Suppression
  • Index(es):
    • Date
    • Thread