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

sips question


  • Subject: sips question
  • From: John McKenzie <email@hidden>
  • Date: Wed, 20 Feb 2008 13:25:30 -0500

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

  • Follow-Ups:
    • Re: sips question
      • From: "EU - Luca Pozzato" <email@hidden>
  • Prev by Date: Re: Broken date math on AppleScript 2.0
  • Next by Date: Re: Scripting energy saver sleep/wake schedules?
  • Previous by thread: Re: Inventory of Hard Drives
  • Next by thread: Re: sips question
  • Index(es):
    • Date
    • Thread