Workflows

Comments

6 Comments »

  1. Hi James

    this workflow doesnt seem to be working for me. i have ImageMagick installed.

    While running the apple script, i get an error saying it cannot find ‘/sw/sbin/convert’

    i have been trying to find the appropriate file on my mac, but it is nowhere on my system. i don’t know what package this file is supposed to be part of.

    Any help/suggestion would be greatly appreciated.

    With best regards Maarten

    Comment by Maarten — May 30, 2005 @ 11:21 am

  2. Maarten: you need to have ImageMagick installed via Fink. If you install ImageMagick some other way, you need to change the path in the Run Applescript action.

    Comment by Matt Moriarity — June 5, 2005 @ 1:44 pm

  3. hello, thanks for the workflow. i started changing the applescript as it would not handle filenames with spaces, and eventually just created a script to do the whole job. here it is.

    tell application “Finder” to set the selected_pics to selection

    repeat with i from 1 to the count of selectedpics set picitem to (item i of selectedpics) as alias set inpic to POSIX path of picitem set outpic to (removeExtension(inpic)) & “.pdf” do shell script “/sw/bin/convert” & ” ” & quoted form of inpic & ” ” & quoted form of outpic end repeat return selectedpics end run

    — remove extension

    on removeExtension(inpic) set outpic to {} set AppleScript’s text item delimiters to “.” return first text item of in_pic end removeExtension

    Comment by tanner — December 2, 2005 @ 3:26 am

  4. Matt, I like the look of this workflow. It looks like Fink doesn’t want to install on my OSX Tiger. In which case, how would I change the Run Applescript action to the Desktop, or somewhere. Thanks, AAron

    Comment by AAron — January 6, 2006 @ 2:16 pm

  5. Hi,

    Preview.app already has the capacity to convert images into pdfs by doing a “print to pdf” of the image. Would it be possible to remove the dependency on fink’s imagemagick by writing an app that just used Preview?

    Comment by algal — August 21, 2006 @ 4:01 am

  6. Just realized that Apple provides an example of using CoreGraphics to convert an image to a pdf in /Developer/Examples/Quartz/Python/image.py. This would probably be the place to start writing an Automator action that did so.

    Comment by algal — August 21, 2006 @ 4:18 am


Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>