• 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: faulty logic, mine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: faulty logic, mine


  • Subject: Re: faulty logic, mine
  • From: Michelle Steiner <email@hidden>
  • Date: Wed, 16 Sep 2009 12:38:12 -0700

On Sep 16, 2009, at 12:07 PM, Luther Fuller wrote:

returns a list of item references, while ...

get selection as alias list

returns a list of aliases. I prefer to always use the second.

And something that was fixed either in Snow Leopard or in Leopard is that even if there is only one item selected, it returns a list of one item.  In the past, it erred, and you would have to use

get selection as alias

That meant that you had to check the count of items in the selection and branch to appropriate code.

BTW, now it even returns and empty list if nothing is selected (even if "as alias list" is used); previously, it would err with no selection.

-- Michelle

-- 
"I never told my religion, nor scrutinized that of another. I never attempted to make a convert, or wished to change another's creed. I have judged of other's religion by their lives, for it is from our lives, and not from our words, that our religion must be read."

~Thomas Jefferson


 _______________________________________________
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: faulty logic, mine
      • From: Luther Fuller <email@hidden>
References: 
 >faulty logic, mine (From: Tin Tin <email@hidden>)
 >Re: faulty logic, mine (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Preference Files
  • Next by Date: Re: How to get info about other machines on local network
  • Previous by thread: Re: faulty logic, mine
  • Next by thread: Re: faulty logic, mine
  • Index(es):
    • Date
    • Thread