• 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: Tiger Desktop Position of Disks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Tiger Desktop Position of Disks
      • From: Laine Lee <email@hidden>
References: 
 >Tiger Desktop Position of Disks (From: Laine Lee <email@hidden>)

  • Prev by Date: Tiger Desktop Position of Disks
  • Next by Date: 10.4.2 does not correct some found bugs Where to report them ?
  • Previous by thread: Tiger Desktop Position of Disks
  • Next by thread: Re: Tiger Desktop Position of Disks
  • Index(es):
    • Date
    • Thread