Re: finding a zip
Re: finding a zip
- Subject: Re: finding a zip
- From: Robert Nixon <email@hidden>
- Date: Wed, 9 Jan 2002 12:27:39 -0800
I used the capacity check to only find disks that are under 100ish mb
and are also not locked. Hope this helps...
tell application "Finder"
set backupdisk to name of every disk whose ejectable is true and
free space > 0 and locked is false and capacity < 1.10573184E+8
end tell
On Wednesday, January 9, 2002, at 03:40 AM, John wrote:
Hi all,
It is my early scripting days and I am writing a backup script to a zip
disk. I am having trouble writing a script that will distinguish between
a zip disk and a CD.
Some CDs still have free space so the expression
set backupdisk to name of every disk whose ejectable is true and free
space > 0
still returns a CD if it is present. Is there any property that I can
use to distinguish between them?
John Cochrane
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
Robert Nixon
http://www.planetrobert.net
I'm only the one who writes the code... It's your job to fix it