• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: finding a zip
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >finding a zip (From: John <email@hidden>)

  • Prev by Date: Trouble moving script to OSX
  • Next by Date: Differentiating between "A1", "A12", "A13"
  • Previous by thread: finding a zip
  • Next by thread: Re: Convert first char to lower case [kind of OT]
  • Index(es):
    • Date
    • Thread