Re: Tiger Desktop Position of Disks
Re: Tiger Desktop Position of Disks
- Subject: Re: Tiger Desktop Position of Disks
- From: Matthew Smith <email@hidden>
- Date: Thu, 14 Jul 2005 16:28:15 +1000
on 14/07/2005 16:15, Laine Lee at email@hidden wrote:
> In Tiger, if I have two ore more disks with the same name mounted, this gets
> me the same desktop position for each although they aren't actually in the
> same place.
>
> set v to list disks
> repeat with i in v
> if i is not in {"Network"} then
> tell application "Finder"
> desktop position of (item i of desktop)
> end tell
> end if
> end repeat
>
> How can I get the true desktop positions of my disks if two or more have the
> same name? Thanks.
Don't use the name of the disks to identify them. Instead ask the finder for
a list of disk objects.
tell application "Finder"
set diskList to every disk whose name is not "Network"
repeat with oneDisk in diskList
desktop position of oneDisk
end repeat
end tell
--
Matthew Smith
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden