• 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: "Sprague, Graham" <email@hidden>
  • Date: Wed, 19 Sep 2001 14:07:48 -0400

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.

Thanks for the quick response,
Graham

> ----------
> From: Ron Bishop
> Sent: Wednesday, September 19, 2001 1:54 PM
> To: 'email@hidden'; 'Sprague, Graham'
> Subject: RE: Droplet for CD
>
> Try using the Finder to get the description of your item - here is an
> example
>
> tell application "Finder"
> get description of selection
> end tell
>
> In this example I had selected a CD on the desktop and the returned result
> was "CD-ROM disc". So -
>
> tell application "Finder"
> > if description of this_item is "CD-ROM disc" then...
> ....
> end if
> end tell
>
> Hope that helps. Someone posted this a few months ago.
>
>
> > Ron Bishop
> >
> > Senior Technician
> > Atwood Publishing, LLC
> > 11600 College Boulevard
> > Overland Park, Kansas 66210
> > (913) 469 - 1110
> >
> >
> >
> > ----------
> > From: Sprague, Graham
> > Sent: Wednesday, September 19, 2001 9:57 AM
> > To: 'email@hidden'
> > Subject: Droplet for CD
> >
> > I need to create a droplet that will only accept a CD. Does anyone know
> > how
> > to do this. I tried the following to no avail...
> >
> > Any help would be great.
> >
> > Thanks,
> > Graham
> >
> >
> >
> > on open these_items
> >
> >
> > repeat with i from 1 to the count of these_items
> > set error_index to 0
> > set this_item to item i of these_items
> > set item_info to the info for this_item
> > set item_name to the name of the item_info as string
> > set item_path to this_item as string
> >
> > if (disk of the (info for this_item) is true) then
> > try
> > tell application "Extensis Portfolio 5.0.1"
> > activate
> > catalog alias item_path to gallery
> > "Untitled.fdb - Untitled"
> > end tell
> > on error
> > display dialog "An error occured trying to
> > catalog "
> > & item_path & "."
> > end try
> > end if
> >
> > end repeat
> >
> > end open
> > _______________________________________________
> > applescript-users mailing list
> > email@hidden
> > http://www.lists.apple.com/mailman/listinfo/applescript-users


  • 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