• 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: Droplet for CD
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Droplet for CD


  • Subject: RE: Droplet for CD
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Thu, 20 Sep 2001 12:25:45 +1000

Yes that works but the description contains more than just "CD-ROM disc" so
I changed "is" to "contains" and it works. But what a kludge! There must be
a better way to do this with built-in Scripting additions. I doubt that
Apple means for us to use the description field to identify devices. I just
don't under stand why the info for the item has no data about it's type of
media. Clearly the system knows what type of media or it could not access it
properly. I wish there was an answer. Every time I use applescript I feel
like I'm using duct tape.


What programming language isn't? (that's not a rhetorical question, although it seems to me that all languages expand to fulfill user's needs. You start out with a nice, neat tool-set but after a little while you discover that you're using an all-in-one spanner, a pair of pliers and the duct tape.)

by the way, using "contains" may generate odd results because the description of other items may include the words "cd-rom disc", but this bit of duct tape and wire should narrow the field.

tell application "Finder" to get description of selection
set CDROM to (paragraph 1 of result is "CD-ROM DISC")
--
Malcolm Fitzgerald
Database Manager
The Australian Society of Authors

ph: 02 9318 0877 fax: 02 9318 0530 email: email@hidden
www.asauthors.org www.asauthors.org/award www.asauthors.org/web_of_poets


  • Prev by Date: Re: Droplet for CD
  • Next by Date: Re: Droplet for CD
  • Previous by thread: Re: Droplet for CD
  • Next by thread: Re: Droplet for CD
  • Index(es):
    • Date
    • Thread