• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ColorSync & Image Events or sips
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ColorSync & Image Events or sips


  • Subject: ColorSync & Image Events or sips
  • From: Brandon Carpenter <email@hidden>
  • Date: Thu, 3 Feb 2005 12:31:32 -0800 (PST)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

I am unable to figure out how to get a ICC profile to
be embeded or matched using Image Events Applescript.
I would have thought this would work:

set this_file to choose file

with timeout of 180 seconds
tell application "Image Events"
launch
try
set this_image to open this_file
on error errMessage
return "Error Opening " & this_file & errMessage as
text
end try
get default RGB profile location --as text
--set def_RGB to result as string
set the image_props to the properties of this_image
tell this_image
copy dimensions to the {the_width, the_height}
set file_type to file type
set color_space to color space
set bit_depth to bit depth
set res to resolution
--set display_moniter to name of display profile
end tell
set the_comment to "Image information:" & return &
"File Type: " & file_type & return & ¬
"Width: " & the_width & "Height: " & the_height &
return & ¬
"Resolution: " & res & return & ¬
"Color Space: " & color_space & return & ¬
"Bit depth: " & bit_depth & return as string
tell application "Finder" to set comment of this_file
to the_comment
try
--tell this_image
embed this_image with source default RGB profile
--end tell
--match this_image to destination default RGB profile
on error errMessage
close this_image
return "Error ICC Profile: " & errMessage
end try

try
scale this_image to size 500
on error errMessage
return "Error Sizing " & this_file & errMessage as
text
end try
try
set the W500_image to save this_image as JPEG in file
newJPG_name of folder Target with icon
on error errMessage
return "Error Saving " & this_file as text
end try
close this_image
set path_W500_image to dest_500 --as alias
end tell
end timeout

I am able to get sips working from the command line:

sips ~/Pictures/Chooseanimage.tif --setProperty format
tiff --matchTo /Library/ColorSync/Profiles/Apple\
Studio Display\ Profile.icc --out ~/Pictures
Note: make sure you check this line before running,
you may not have this icc profile





__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Colorsync-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ColorSync & Image Events or sips
      • From: John Gnaegy <email@hidden>
  • Prev by Date: Two Displays, One Graphics Card, Two Profiles, Which Profile wins?
  • Next by Date: Re: ColorSync & Image Events or sips
  • Previous by thread: Re: Two Displays, One Graphics Card, Two Profiles, Which Profile wins?
  • Next by thread: Re: ColorSync & Image Events or sips
  • Index(es):
    • Date
    • Thread