5 Replies Latest reply: Dec 7, 2009 8:37 PM by Martin R. Lerch
Martin R. Lerch Level 1 Level 1 (35 points)

Not sure if I am posting this at the right spot, but I would need some assistance. I am trying to write an Automator Workflow application. The purpose for this application is to:
1. Drag one or more attachments on the application/droplet icon
2. Automator workflow creates a new mail message in Mail with the attached items already addressed and ready to go to

I setup the following Workflow inside Automator:
1. New Mail Message
2. Add Attachments to Front Message

So this is all working just fine. Now I would like to add a step in between of type "Run AppleScript". In this "Run AppleScript" action I have the following code:

on run {input, parameters}
tell application "Mail"
set the message signature of input to signature "My Signature Name"
end tell
return input
end run

So my workflow looks now like this:
1. New Mail Message
2. Run AppleScript
3. Add Attachments to Front Message

I am getting the following error:

Can’t make «class situ» "My Signature Name" of application "Mail" into the expected type.

So, in essence I am trying to select a signature for that particular new mail message in this workflow. And that does not work. Any help would be appreciated.


MacBook Pro 17" 2.33GHz, Mac OS X (10.6.2)