Re: Leopard equivalent for getting disk format info
Re: Leopard equivalent for getting disk format info
- Subject: Re: Leopard equivalent for getting disk format info
- From: Axel Luttgens <email@hidden>
- Date: Sun, 06 Jan 2008 15:32:23 +0100
On 6/01/08 15:01, Boonee wrote:
<Begin script snippet>
tell application "Finder" to set x to the name of every disk whose
format is UDF format
<End script snippet>
The above used to return a list of mounted UDF discs under Tiger, but
does not return the same info under Leopard.
Strictly speaking, the above should fetch the _names_ of mounted UDF
volumes.
This of course assumes there is at least one mounted UDF volume,
otherwise "every disk whose..." will return an empty list, and trying to
get "name of every disk whose..." then errors.
Now, I don't have UDF disks at hand, so I can't check here with such disks.
But what exactly do you mean with "does not return the same info"?
Does the returned info really differ under Tiger and under Leopard?
Or do you just get an error message (which one?) under Leopard?
What is the proper method for retrieving this info under Leopard?
Perhaps could you try with the twin commands from System Events?
Since Panther, all that disk/folder/file stuff anyway tends to be moved
from the Finder to System Events.
HTH,
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