Re: Looking for AppleScripter willing to help ?
Re: Looking for AppleScripter willing to help ?
- Subject: Re: Looking for AppleScripter willing to help ?
- From: "Stockly, Ed" <email@hidden>
- Date: Wed, 21 Feb 2007 13:13:07 -0800
>>>I just drag/drop the files on either the open message or the application's icon in the Dock.
>>>Must be missing what you are trying to accomplish.
>>>Just drag them onto the icon of mail.app
>>>>Just type the recipient into the address field of the mail, just like with any other email message.
You know if someone posts an appleScript question to the AppleScript users list, it really shouldn't be too much of a stretch to believe they have a legitimate reason to want to handle a task with AppleScript. Maybe it's a repetitive task, maybe it's needed to make things as simple as possible for less technically savvy users, maybe it's part of a complex solution using appleScript.
Below is the simplest version of an AppleScript solution to the OPs question that I could come up with.
There may be other issues to be resolved (account used, multiple recipients, etc.) but this should get you going in the right direction.
ES
> property recipientName : "Clients Name"
> property recipientEmail : {"email@hidden"}
> property messageSubject : "Here are some attached files"
> property messageContent : "Message Body" & return & return
> on open docList
> tell application "Mail"
> activate
> set newMessage to make new outgoing message with properties {subject:messageSubject, content:messageContent}
> tell newMessage
> make new to recipient at end of to recipients with properties {name:recipientName, address:recipientEmail}
> set visible to true
> repeat with thisAttachment in docList
> tell content
> make new attachment with properties {file name:thisAttachment as alias} at after the last paragraph
> end tell
> end repeat
> end tell
> end tell
> end open
>
_______________________________________________
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/mailman//archives/applescript-users
This email sent to email@hidden