• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Unable to add attachment to mail message in Leopard via Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Hosted Filemaker pro 8 & applescripts go to error
  • Next by Date: leopard date bug?
  • Previous by thread: Re: Hosted Filemaker pro 8 & applescripts go to error
  • Next by thread: leopard date bug?
  • Index(es):
    • Date
    • Thread