Re: Passing Variables (Was: ACGI)
Re: Passing Variables (Was: ACGI)
- Subject: Re: Passing Variables (Was: ACGI)
- From: Stephen Swift <email@hidden>
- Date: Sun, 03 Feb 2002 20:01:56 -0500
- Method-key: Ydco m.ooai. jrm.o uprm yd. e.ot ru Oy.ld.b Xgpbdam O,cuyv
At 2/3/02 2:14 AM, Paul Berkowitz (email@hidden) Wrote:
>
>> tell application "greet"
>
>> set niceword to "hello"
>
>> set responseIgot to greetwith(niceword)
>
>> end tell
>
>> display dialog responseIgot
>
>>
>
One reason would be to use one script as a prefs-setting script for another,
>
especially when the main script is run that runs automatically.
Ah I see. Interesting. I've always just used one giant if statement but
perhaps the passing variables method is better in theory.
One thing though:
I tried the example above, and it didn't work so hot. The script activated
the application "greet", greet ran and then quit, and then my script just
sat there with the cursor spinning until a timeout error. Like it was still
waiting for "greet"'s returned value or something. I think I did everything
correctly. The only thing that comes to mind is that I'm on a slow computer
with Mac OS 8.6. Is passing variables a slow task normally? TIA
Stephen Swift
email@hidden
-----------------------------------------------
AppleScript Guru - The Mac Observer
http://www.macobserver.com/tips/applescript