• 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 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sips question


  • Subject: Re: sips question
  • From: John McKenzie <email@hidden>
  • Date: Thu, 21 Feb 2008 07:06:15 -0500

Thanks Luca, that works!

-- John

On Feb 20, 2008, at 7:21 PM, EU - Luca Pozzato wrote:

hi John,
try

set xPOSIX to quoted form of POSIX path of x

Luca

-----Original Message-----
From: John McKenzie <email@hidden>
To: AppleScript Users <email@hidden>
Date: Wed, 20 Feb 2008 13:25:30 -0500
Subject: sips question

I'm trying to write an AppleScript droplet to go through a folder of
images and flag any that are in RGB. I'm using sips to do this.

I've got it working (on single images for now) just fine on my
desktop, but the script fails on any files I try to inspect that are
on our server. If I copy the same file to my desktop, it works again.
I can query files on the server just fine through sips itself.

Here's the handler in a short form where I'm just trying to display
the color space in a dialog box:

on sussOut(x)
	tell application "Finder"
		set myFile to x as alias
		set xPOSIX to POSIX path of x
		set myFileSpace to do shell script "sips -g space " & xPOSIX & " |
grep space;" as text
		display dialog myFileSpace
	end tell
end sussOut


Thanks for any thoughts!

John McKenzie
http://www.linkedin.com/in/johnmckenzie


_______________________________________________ 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
References: 
 >sips question (From: John McKenzie <email@hidden>)
 >Re: sips question (From: "EU - Luca Pozzato" <email@hidden>)

  • Prev by Date: Help script corruption..
  • Next by Date: send attachment via entourage (has this working prior to script corruption)
  • Previous by thread: Re: sips question
  • Next by thread: Applescript and unicode
  • Index(es):
    • Date
    • Thread