PDF --> Tiff, then delete original Automator Help

Discussion in 'Mac Programming' started by ryanrhughes, Feb 3, 2011.

  1. ryanrhughes macrumors newbie

    Feb 3, 2011
    I've been racking my brain and searching Google / forums for a while on how to get this script to work right, so I'm finally reaching out for some help. Any help or direction would be greatly appreciated. :)

    The Goal:
    1. Faxes come in to Fax Machine
    2. Fax Machine sends .PDF to shared drive on iMac
    3. iMac converts .PDF to multiple .TIFF files
    4. iMac moves .TIFF files to shared drive on centralized Windows server
    5. iMac deletes original .PDF file

    Right now, I have steps 1 - 4 working using a folder actions Automator script. I can't figure out for the life of me how to get the script to delete the original .PDF file. Anytime I use any functions after the 4th step, it wants to use the script generated .TIFF files, rather than the file that originally caused the script to initiate.

    At one point, I created a second folder action to run after the .PDF --> .TIFF one that would simply remove the files. That worked just fine, but if the first script encountered an error, and didn't convert the files, the second would still delete the .PDF which isn't good.

    Thanks for any help in advance.
  2. balamw Moderator


    Staff Member

    Aug 16, 2005
    New England
    You might get more help if you can post the code Automator generated.

  3. ryanrhughes thread starter macrumors newbie

    Feb 3, 2011
    How do I find the actual code?

    I've attached a screenshot of the workflow as of now. It works, I just can't figure out how to get it to select the original PDF, not the TIFFs generated by the first step after this.

    I tried the "Get Selected Finder Items" and pointed it to the original folder but that selects the folder, along with the generated .TIFF files.

    Attached Files:

Share This Page