tell app "Colorsync Extension" (* embed ICC profile referred to by the variable profFile in the image file represented by variable jpegImage *) embed jpegImage with source profFile end tell
The following commands and classes derive from ColorSync Extension Version 3.0, which is installed with Mac OS 9.
This opens the ColorSync application as an invisible or faceless background application (i.e., one that doesn’t have a graphical user interface).
This quits the ColorSync Extension application.
This opens an image to inspect its profile (see the Examples section). This command returns a reference to the opened image.
This command saves an image file with a new ICC profile, for instance.
This provides an
alias file path for saving the
This closes an image file, as in:
close imgFile saving in alias "Macintosh HD:Desktop¬ Folder:cowgirl2.jpg"
If you have embedded a new ICC profile in an image file, you probably would want to:
close imgFile saving yes
As you might have guessed, this code saves the image file before the
script closes it; you can close the file without a save with the
saving no parameter.
saving in alias
This saves an open object in an
alias file before
close imgFile saving in¬ (alias "macintosh hd:desktop folder:cowgirl.jpg")
This command embeds an image with an ICC profile from the System ...