Re: sips question
Re: sips question
- Subject: Re: sips question
- From: "EU - Luca Pozzato" <email@hidden>
- Date: Thu, 21 Feb 2008 01:21:32 +0100
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