Finder bug: MS-DOS format disks
Finder bug: MS-DOS format disks
- Subject: Finder bug: MS-DOS format disks
- From: Stephen Jonke <email@hidden>
- Date: Sun, 17 Apr 2005 02:33:40 -0400
A bug I've just run into is that the Finder has a disk format constant,
"MS-DOS format", that you can't actually use, at least not directly.
For example:
tell app "Finder"
get every disk whose format is MS-DOS format
end tell
That won't compile. However, this returns the constant (presuming disk
2 is in MS-DOS format, for example a USB flash drive):
tell app "Finder"
get format of disk 2
end tell
Even copying and pasting the "MS-DOS format" constant returned from
that into the previous script doesn't work. All the other possible
"formats" do compile and work. For example, this compiles and works
fine:
tell app "Finder"
get every disk whose format is Mac OS Extended format
end tell
The only way I was able to achieve the same result with "MS-DOS format"
was to iterate on every disk, cast the "format" to a string and then
compare to that. Not a huge problem, but an irritation.
Steve
_______________________________________________
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