Unable to add attachment to mail message in Leopard via Applescript
Unable to add attachment to mail message in Leopard via Applescript
- Subject: Unable to add attachment to mail message in Leopard via Applescript
- From: Arshad Tayyeb <email@hidden>
- Date: Sun, 25 Nov 2007 21:58:19 -0800
I'm trying to use applescript to attach a file to an email message (ultimate goal is to use osascript to attach files to an email via the command line). However, in Leopard, the following fails to attach anything to the message. Any idea what I'm doing wrong? It seems like it should work.
tell application "Mail" set theMessage to make new outgoing message
tell content of theMessage make new attachment with properties {file name:"Affogato:Klack:src:foo.c"} at after last paragraph end tell end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden