Re: Is this a bug?
Re: Is this a bug?
- Subject: Re: Is this a bug?
- From: Axel Luttgens <email@hidden>
- Date: Mon, 16 Mar 2009 10:43:46 +0100
Le 15 mars 09 à 23:00, Deivy Marck Petrescu a écrit :
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")
In the above, "item" is a Finder keyword that may be used to refer any
filesystem object.
From the Finder's point of view, one is thus interested in the first
item residing on each disk named "deivy".
One would get a similar result with:
set d to get file 1 of (every disk whose name is "deivy")
or:
set d to get folder 1 of (every disk whose name is "deivy")
for example.
set l to every disk whose name is "deivy"
set m to get item 1 of l
Here, by splitting the original statement into two pieces, variable l
is set to a list; the Finder thus now sees a "true" AppleScript list
and acts accordingly.
This has the same effect as Barry's "get" statement.
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?
For this one, I don't think so. ;-)
Axel
_______________________________________________
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
References: | |
| >Is this a bug? (From: Deivy Marck Petrescu <email@hidden>) |