Re: Is this a bug?
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.
|
_______________________________________________
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