Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Just use folder actions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Just use folder actions
Authored by: NrTal on Oct 12, '04 10:01:45AM

Among standard Folder actions are a couple of scripts along the lines of "Duplicate as JPEG", "Duplicate as TIFF", etc. Tie these to an image folder and images put in will automatically be converted and put in a folder "JPEG images" or whatever as they are added to the folder.

About the only caveat is that for some reason they left off converting from PDF, so they don't work on screenshots. This can be fixed by adding "PDF" to the property type_list and adding "pdf" to the property extension_list. Further, if you want the original immediately removed change about 1/3 in from:

tell application "Finder"
my resolve_conflicts(this_item, originals_folder, "")
set the new_name to my resolve_conflicts(this_item, results_folder, newimage_extension)
set the source_file to (move this_item to the originals_folder with replacing) as alias
end tell
to:
tell application "Finder"
my resolve_conflicts(this_item, originals_folder, "")
set the new_name to my resolve_conflicts(this_item, results_folder, newimage_extension)
set the source_file to (move this_item to the originals_folder with replacing) as alias
move source_file to trash -- new delete command!
end tell

While the PDF changes seem a no brainer, I created a new script "Image - Move as JPEG" once I added the trashing line, so if it ever came up I would still have the original non-destructive script.

(If that's hard to follow, let me know and I'll try to get it properly formatted when I have more time.)



[ Reply to This | # ]