Re: AppleScripting ColorSync
Re: AppleScripting ColorSync
- Subject: Re: AppleScripting ColorSync
- From: John Gnaegy <email@hidden>
- Date: Thu, 6 Dec 2007 13:31:58 -0800
The scripts all work on Leopard. It looks like there were changes
introduced in a software update at some point in Tiger that broke the
scripts, maybe something new in Applescript, not sure. There's a
simple fix if you want to use them on Tiger.
Open the scripts in Script Editor and add
tell application "ColorSync Scripting" to launch
somewhere near the beginning of the script, before ColorSync Scripting
is first called on to do something. If it's a script that uses Image
Events just tell Image Events to launch similarly. That should solve
most of the issues you'll run into.
Remember you can also use the command line tool 'sips' from within
Applescript to do a lot of the things ColorSync Scripting and Image
Events can do, and more. Do 'man sips', 'sips -h' or 'sips -H' to see
what it can do. To call it from within an Applescript do something
like this
set someFileAlias to choose file
set filePosixPath to quoted form of POSIX path of someFileAlias
set cmdline to ("sips -g allxml " & filePosixPath) as string
do shell script cmdline
_______________________________________________
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