• 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: Deivy Marck Petrescu <email@hidden>
  • Date: Sun, 15 Mar 2009 18:11:26 -0400


On Mar 15, 2009, at 18:06, Barry Wainwright wrote:


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

Nice catch Barry.
I can not believe I forgot a "get".

However, check the result of my script. 
Am I getting item 1 of every item of disk "deivy"?
If so, this bug is great.

Deivy Marck Petrescu
email@hidden



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

  • Prev by Date: Re: Is this a bug?
  • Next by Date: Scripting the Colors palette
  • Previous by thread: Re: Is this a bug?
  • Next by thread: Re: Is this a bug?
  • Index(es):
    • Date
    • Thread