Image Events
Image Events
- Subject: Image Events
- From: email@hidden
- Date: Thu, 3 Feb 2011 14:02:10 -0800
Hello all. I am at wits end. I have been attempting to write this script, or a version of it most of the day and it is going nowhere.
I have a script that works to convert images to .psd. Rips through a folder quickly and I am thrilled with it. Problem is I am trying to add embedding a profile into it and I keep running into various flavors of the same problem. Image Events will not go out and grab that profile.
This is the script.
property type_list : {"TIFF", "JPEG", "PNGf", "PICT", "8BPS"}
property extension_list : {"tif", "tiff", "jpg", "jpeg", "png", "pict", "pct", "psd"}
tell application "Finder"
activate
set the source_folder to choose folder with prompt "Pick a folder containing the images to process:"
set the trget_folder to choose folder with prompt "Pick a destination folder for your images"
set these_files to every file of the source_folder whose file type is in the type_list or name extension is in the extension_list
repeat with i from 1 to the count of these_files
set this_path to (item i of these_files) as string
tell application "Image Events"
set this_image to open file this_path
save this_image as PSD in trget_folder with icon
close this_image
end tell
end repeat
end tell
It seems to me that putting
embed with source profile "/Users/home/Library/ColorSync/Profiles/AdobeRGB1998.icc"
Between the open command and the save command it should work. I get the below error. I have been fussing with this and just about every thing I can think of but i can not seem to get Image Events prefered way of delivering the profile. Any help?
error "Image Events got an error: Can’t get profile \"Users:home:Library:ColorSync:Profiles:AdobeRGB1998.icc\"." number -1728 from profile "Users:burbr0ir:Library:ColorSync:Profiles:AdobeRGB1998.icc"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden