1 2 Previous Next 19 Replies Latest reply: Apr 9, 2014 9:25 AM by DeShark
chomper123 Level 1 Level 1 (0 points)

I regularly email .pdf atttachments to my head office. These are hand-written sales orders which are scanned in. The scanner software gives each file a sequential filename (eg. OrderNo_110612).

 

I have set up a Folder Action in Automator to create a new email and send the file as an attachment when it is added to the folder.

 

Get Selected Finder Items

New Mail Message

Send Outgoing Messages

 

I would really like to add the filename to the subject of the email. Is there a script I can run within the 'Run Shell Script' action that will extract the filename and can then be used as a variable in the subject field? This would allow both myself and head office to easily find the email at a later date should the need arise.

 

Any help would be gratefully received. I am not a programmer, although I understand the principle of variables etc..

 

I am using OS X Lion 10.7.2

 

Any help would be really gratefully received.

 

Many thanks


iMac, Mac OS X (10.7.2)
1 2 Previous Next