
Email Attachment Automator Service
Can anyone tell me how to fix the below script? I created a service in Automator with the following script and when it runs I get "The action “Run AppleScript” encountered an error." I know the error is in the portion
- Code: Select all
& quoted form of {file name:item 1 of added_items} &
but I don't know exactly how to phrase it so that the email will attach the appropriate file.
- Code: Select all
on adding folder items to this_folder after receiving added_items
do shell script "/Users/xxxxxxxxxxx/mutt-1.5.20/mutt -s \"EMAIL ATTACHMENT\" xxxxxxxxxx@gmail.com -a & quoted form of {file name:item 1 of added_items} &"
end adding folder items to
return input
Thanks i advance for any suggestions.