Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > AppleScript and CD-ROM?

AppleScript and CD-ROM?
Thread Tools
bojangles
Senior User
Join Date: May 2000
Location: Lafayette, IN, USA
Status: Offline
Reply With Quote
Dec 26, 2003, 01:31 PM
 
I�m trying to write an AppleScript that will automatically process images on an inserted disc: it runs a couple of Photoshop Actions and files the name, size, and a thumbnail of each photo in a FileMaker Pro database. I�ve already created the script to process the images on an SD card, so 99% of the scripting is already done. Unfortunately, while the SD card always has the same name (the camera takes care of that), I now need to do the same thing for any CD-ROM. In other words, the script needs to be able to process the photos, regardless of what the client named their CD-ROM. (Yes, I could just tell them to name it the same thing every time, but where would be the fun in that? Besides, it�s easier to file them this way.)

Any ideas?
“The trouble with quotes on the Internet is that you can never tell if they’re attributed to the right person.”
—Abraham Lincoln
     
Rickster
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status: Offline
Reply With Quote
Dec 26, 2003, 10:23 PM
 
The app "system events" in 10.2 and later has an event suite for dealing with disks, folders, and files. With it, you should be able to do something to the effect of "get every disk whose kind is CD-ROM" or similar. The app lives in /System/Library/CoreServices; check out its dictionary.
Rick Roe
icons.cx | weblog
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 07:39 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,