• 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: text 1 thru the result
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: text 1 thru the result
      • From: Shane Stanley <email@hidden>
References: 
 >Re: text 1 thru the result (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Script to Ping the list of IP/Hostnames and export it in a file
  • Next by Date: Convert Terminal commands to Apple Script
  • Previous by thread: Re: text 1 thru the result
  • Next by thread: Re: text 1 thru the result
  • Index(es):
    • Date
    • Thread