Re: text 1 thru the result
Re: text 1 thru the result
- Subject: Re: text 1 thru the result
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 7 Dec 2010 12:28:30 -0600
- Acceptlanguage: en-US
- Thread-topic: text 1 thru the result
Title: Re: text 1 thru the result
>>>Can't you get the class of the result and proceed conditionally from there?
No, you can’t. ‘result’ is a variable whose value changes every time there is an apple event result.
So, if you
get the class of the result
The variable ‘result’ changes to the result of the class command which would be the class of the previous result.
Instead, you could set a variable to the result, and use that, and, in this case, not worrying about it’s class, because using a variable instead of result also circumvents this bug.
Personally, I don’t see any reason to use ‘result’ variable in a script. If I’m going to use a result from an apple event, I will always assign it to a variable, so I’m never bitten by this particular bug.
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden