AW: Identifying ejectable disks
AW: Identifying ejectable disks
- Subject: AW: Identifying ejectable disks
- From: "Hoelzer, Manfred" <email@hidden>
- Date: Wed, 21 Feb 2001 13:13:34 +0100
Hi John,Chris,
this citation from AS FinderGuide might help you:
tell application "Finder"
put away (every disk whose ejectable is true)
end tell
happy scripting
Manfred
PS: "info for" has to scan the whole disk in order to collect information
about all the files and folders. Most of the time you get an error "108 Out
of memory". Give your scripApp more memory and you'll see.
I tried this, and it throws an error 20148<?> after scanning the disk
for several minutes:
tell application "Finder"
info for startup disk
end tell
So, that's not the solution...
>
The finder seems to be able to identify various sorts of ejectable
disks, ie CD-Rom, Zip, Jaz, each coming up with its own icon. I'm
guessing this happens through extensions, or through disk drivers.
>
>
Is there any way to get the finder to pass this information through
to applescript? I want to be able to identify these disks by media
type, so that we know what media information came in on.
>
>
Chris Gursche