• 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: Ron Bishop <email@hidden>
  • Date: Wed, 19 Sep 2001 12:54:00 -0500

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