• 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: Is this a bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is this a bug?


  • Subject: Re: Is this a bug?
  • From: Barry Wainwright <email@hidden>
  • Date: Sun, 15 Mar 2009 22:06:14 +0000


On 15 Mar 2009, at 22:00, Deivy Marck Petrescu wrote:

tell application "Finder"
set d to get item 1 of (every disk whose name is "deivy")
set l to every disk whose name is "deivy"
set m to get item 1 of l
end tell
return {d, l, m}



There is a silent coercion going on - if you force an explicit coercion by changing the first line to:

set d to get item 1 of (GET every disk whose name is "deivy")

then the result is as you expect.

-- 
Barry


 _______________________________________________
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: Is this a bug?
      • From: Deivy Marck Petrescu <email@hidden>
References: 
 >Is this a bug? (From: Deivy Marck Petrescu <email@hidden>)

  • Prev by Date: Re: Re. third-party dependencies [was Re: Stock Quotes using AppleScript]
  • Next by Date: Re: Is this a bug?
  • Previous by thread: Is this a bug?
  • Next by thread: Re: Is this a bug?
  • Index(es):
    • Date
    • Thread