Re: SIPS Syntax to Embed a Profile
Re: SIPS Syntax to Embed a Profile
- Subject: Re: SIPS Syntax to Embed a Profile
- From: erik keller <email@hidden>
- Date: Fri, 31 Jul 2009 09:22:50 +0200
I guess the 'quoted form' is necessary since the folder 'Application Support' contains a space. Command-Line tools don't like space-characters in paths.
Proof of the pudding: The deeper you dig into the bowels of OS X, the lesser is the chance to encounter folder-names containing spaces. ;-)
Just my 2 cents,
Erik
On Wed, Jul 29, 2009 at 8:05 AM, Stan Cleveland
<email@hidden> wrote:
On 7/28/09 9:44 PM, "Jon Rosen" wrote:
> I'm trying to use SIPS (from within an AppleScript) to embed a profile
> into a JPEG. The pertinent line looks like this:
>
> do shell script "sips -e AdobeRGB1998.icc " & posixInput & " --out " &
> posixOutput
>
> I've also tried it using a full path to the profile. Neither seems to
> work. Does anyone know the correct syntax to use?
Jon, this works OMM (10.5.7, Intel):
set posixProfile to quoted form of "/Library/Application
Support/Adobe/Color/Profiles/Recommended/AdobeRGB1998.icc"
set posixInput to "/Users/stanc/Desktop/Source.jpg"
set posixOutput to "/Users/stanc/Desktop/Target.jpg"
do shell script "sips -e " & posixProfile & " " & posixInput & " --out " &
posixOutput
I got the same result that you did until I used the quoted form of the full
path to the profile. Give that a try.
Stan C.
_______________________________________________
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