• 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: Laine Lee <email@hidden>
  • Date: Thu, 14 Jul 2005 09:10:51 -0500

Title: Re: Tiger Desktop Position of Disks
On 7/14/05 1:28 AM, "Matthew Smith" <email@hidden> wrote:

>
> 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


The results are the same. If two or more have the same name, this script also gets the same desktop position for those although they aren't actually in the same position on the desktop. I can get the actual system names for disks other than startup disk like this:

set volumenames to paragraphs of ¬
(do shell script "df -t hfs | awk -F/ '/disk*/ {print $5}' | tr ':' '/'")

But I don't know how to get that information to the Finder in a way it can use for desktop positioning. I really need a workaround, but so far, I'm stumped. Thanks.

--
Laine Lee
 _______________________________________________
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: Christopher Nebel <email@hidden>
References: 
 >Re: Tiger Desktop Position of Disks (From: Matthew Smith <email@hidden>)

  • Prev by Date: Re: Scripting mail create a mailbox in a mailbox (folder)
  • Next by Date: Re: Capturing parts of text string [Re: Applescript-users Digest, Vol 2, Issue 443]
  • Previous by thread: Re: Tiger Desktop Position of Disks
  • Next by thread: Re: Tiger Desktop Position of Disks
  • Index(es):
    • Date
    • Thread