Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ryanrhughes

macrumors newbie
Original poster
Feb 3, 2011
2
0
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.
 
You might get more help if you can post the code Automator generated.

B

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.
 

Attachments

  • Screen shot 2011-02-03 at 2.34.20 PM.png
    Screen shot 2011-02-03 at 2.34.20 PM.png
    40.3 KB · Views: 99
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.