• 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: fileExistsAtPath with * to indicate random
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fileExistsAtPath with * to indicate random


  • Subject: Re: fileExistsAtPath with * to indicate random
  • From: glenn andreas <email@hidden>
  • Date: Mon, 10 Mar 2008 14:20:59 -0500


On Mar 10, 2008, at 2:03 PM, Jeff LaMarche wrote:


On Mar 10, 2008, at 2:54 PM, John Stiles wrote:

In general this is excellent advice, but I believe ImageMagick is not a Mac program but an X11 thing.

ImageMagick has some X11 components, but can be compiled as a set of unix command line programs that will perform various operations on images. I assume that somebody wanting access to that functionality would care more about that part, then whether the front-end stuff is there. Maybe I don't understand what the OP is trying to do, but my guess is that he wants to leverage some of it's transformation abilities.


Personally, since NSImage and associated classes are so robust, I'd advise against it, but you could identify if it's installed by having your code execute

whereis convert


and parsing the results - if it's an empty string, it couldn't find it. You might want to manually add the common locations (/usr/bin / usr/local/bin) to the path environment variable just to be sure.


But, seriously, In wonder what the OP wants to do that can't be done more easily with NSImage...


There is also the command line tool "sips" which does all sorts of transformations stuff - resampling, cropping, altering color profiles, even creating finder icons.

You can also use the Image Events AppleScript stuff (which provides another API to sips).


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! Cardographer | the custom playing card designer


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >fileExistsAtPath with * to indicate random (From: "Mr. Gecko" <email@hidden>)
 >Re: fileExistsAtPath with * to indicate random (From: Brian Stern <email@hidden>)
 >Re: fileExistsAtPath with * to indicate random (From: John Stiles <email@hidden>)
 >Re: fileExistsAtPath with * to indicate random (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: fileExistsAtPath with * to indicate random
  • Next by Date: Re: Linking to third-party Frameworks and dylibs from a plug-in
  • Previous by thread: Re: fileExistsAtPath with * to indicate random
  • Next by thread: Re: fileExistsAtPath with * to indicate random
  • Index(es):
    • Date
    • Thread