Re: [BULK] - Re: Match CMYK doesn't work.
Re: [BULK] - Re: Match CMYK doesn't work.
- Subject: Re: [BULK] - Re: Match CMYK doesn't work.
- From: Christopher MJ Tangora <email@hidden>
- Date: Mon, 14 Feb 2005 10:07:02 -0500
Sorry bout not posting the script...
This problem script was just the default "Match to CMYK" script that
came with OS X. I re-ran the script this morning on a number of
different formats (jpg, bmp, pdf, png, raw & tif), but the only format
that I could get it to work on was TIFF. Is this right? Is the only
format you can alter via ColorSyncScripting a TIFF file?
If this is the case, then I might just need to get Photoshop. I was
hoping to find a way to do JPEG's and EPS's. Anyways, here's apple's
applescript. If it works for JPEG's on someone else's machine can you
let me know?
Thanks.
Chris.
on run
-- display dialog "Match image to the CMYK profile chosen in ColorSync
System Preferences panel."
set somefile to choose file with prompt "Choose an image"
open somefile
end run
on open draggeditems
tell application "ColorSyncScripting" to launch
-- display dialog "Match images to the CMYK profile chosen in
ColorSync System Preferences panel?"
set sourcefiles to filelistFromSelection(draggeditems)
repeat with thisFile in sourcefiles
tell application "Finder" to reveal item thisFile
set thisFile to thisFile as alias
tell application "ColorSyncScripting"
set matchProf to default CMYK profile
try
match thisFile to destination matchProf
on error errmsg
activate
display dialog errmsg
end try
end tell
end repeat
tell application "ColorSyncScripting" to set quit delay to 5
end open
--returns dragged files OR files at first level of one dragged folder
on filelistFromSelection(theselection)
set hasfolder to false
tell application "Finder"
repeat with thisItem in (theselection as list)
if (class of item thisItem is folder) or (class of item thisItem is
disk) then
set hasfolder to true
end if
end repeat
end tell
if ((count item of (theselection as list)) > 1) and hasfolder then
display dialog "Drag multiple files or a single folder." buttons
{"OK"} default button 1
return ""
end if
tell application "Finder"
if hasfolder then
set filelist to (every item of folder (item 1 of (theselection as
list))) as alias list
else
set filelist to (theselection as list)
end if
end tell
return filelist
end filelistFromSelection
Oh come on... I agree with these problems, but "buy Photoshop" isn't
helpful.
Can the OP post the script? I've had no problems using
ColorSyncScripting to automate color space conversions.
-R
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Chris Tangora
386.681.2748
Production Services
Daytona Beach News-Journal Corporation
Daytona Beach, Florida 32117 - USA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden