**Function:** Saves the attachments from the selected Mail items to the folder of your choice.
**Author**: [Automator World](http://www.automatorworld.com)
**Notes**: It is necessary to configure the second action in the workflow to the destination folder, if you want to run this without intervention. If you want a different location every time, replace the *Get Specified Finder Items* action with an *Ask for Finder Items* action. Note that this workflow requires Stuffit Expander.The Applescript that runs this workflow was obtained [here](http://lists.apple.com/archives/applescript-users/2003/Dec/msg01153.html) so credit goes to that person for the original code.
Does anyone else find that Stuffit Expander crashes each time you get to that step in this worflow?
Comment by Karen — September 5, 2005 @ 4:59 pm
Works fine for me…are you running latest version of Stuffit, etc etc?
Comment by Steve — September 5, 2005 @ 5:20 pm
I tested this with Stuffit Expander 8.0.2 and it saved the files as .jpg files, but when i tried to open the .jpg, I received a message telling me the file was corrupted. I upgraded to Stuffit Expander 10.0 and now when I execute the workflow, I get an error stating ‘Syntax Error. Expected end of line, etc. but found “into”‘
and then it highlights this part of the script:
tell application “StuffIt Expander” to expand {alias tempFile} into alias theAttachmentPath with delete originals
Comment by Rick — September 19, 2005 @ 10:28 pm
I also get the “I get an error stating ‘Syntax Error. Expected end of line, etc. but found “intoâ€â€˜” — anyone have the fix for this?
Comment by Steve — January 7, 2006 @ 12:39 pm
why, god, why?? I’m getting the same error on compile now. This used to work! :(
Comment by stevecooley — February 3, 2006 @ 8:40 pm
no good… also get syntax error expected end of line.
would be great if it worked. need exactly this sort of thing
Comment by bevis stevens — February 8, 2006 @ 4:24 pm
I got the same ‘Expected end of line”… just guessed and took the ‘to’ off of the word ‘into’. compiled fine after that. still having problems though, but it’s on my end I think.
Is there a way to specify the attachment name you want to save??
Thanks,
.daz
Comment by dazz — September 8, 2006 @ 5:22 am