Re: Is this a bug?
Re: Is this a bug?
- Subject: Re: Is this a bug?
- From: "Nigel Garvey" <email@hidden>
- Date: Mon, 16 Mar 2009 12:39:38 +0000
Deivy Marck Petrescu wrote on Sun, 15 Mar 2009 18:00:58 -0400:
> From computer 1 I mount my computer 2's home directory .
>I then have a disk "deivy" mounted on my computer 1's desktop.
>Then I run the following:
>
><script>
>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}
>
>-->{{folder "Desktop" of disk "deivy" of application "Finder"}, {disk
>"deivy" of application "Finder"}, disk "deivy" of application "Finder"}
></script>
>
>This is a bug, is it not?
I don't think so, Deivy. 'item 1 of (every disk whose name is "deivy")'
is a single Finder reference to the first Finder item (as indexed
internally by the Finder) on every such disk. It returns an AppleScript
list of Finder references to the individual items.
'every disk whose name is "deivy"' returns an AppleScript list of Finder
references to the disks themselves. The first item of this list is the
first of those references.
NG
_______________________________________________
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