• 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
Re: SIPS Syntax to Embed a Profile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

 _______________________________________________
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

  • Follow-Ups:
    • Re: SIPS Syntax to Embed a Profile
      • From: Tim Mansour <email@hidden>
References: 
 >SIPS Syntax to Embed a Profile (From: Jon Rosen <email@hidden>)
 >Re: SIPS Syntax to Embed a Profile (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: Applescript UTF-8 and do shell script
  • Next by Date: Re: SIPS Syntax to Embed a Profile
  • Previous by thread: Re: SIPS Syntax to Embed a Profile
  • Next by thread: Re: SIPS Syntax to Embed a Profile
  • Index(es):
    • Date
    • Thread