Re: Tiger Desktop Position of Disks
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