Looking for AppleScripter willing to help …
Looking for AppleScripter willing to help …
- Subject: Looking for AppleScripter willing to help …
- From: Le Stang Jean-Baptiste <email@hidden>
- Date: Wed, 21 Feb 2007 19:41:56 +0100
For a long time I've been missing a function in Mac OS X which is
the ability to select several files using the Finder and send a mail
to someone using the selected files as attached files. I've written
so far the contextual menu necessary to handle the file selection and
the recipient selection and to create the mail and its attached files
in Mail but I think that many of you are using other mail clients.
The mail creation part of the my contextual menu is based on
AppleScript so that I could integrate many other mail clients with my
contextual menu. So far I'm looking for people that would be
interested by writing a handler that would receive a string (the
recipient) and a list of alias (the attachments) for the following
mailers : Entourage, Eudora, Mailsmith (and any other scriptable
mailer that you could think of)
Here is for example what is necessary to create the mail in Mail :
to SendNewMessage(theRecipient, theFiles)
tell application "Mail"
activate
set the new_message to make new outgoing message with properties
{visible:false}
tell the new_message
make new to recipient at end of to recipients with properties
{address:theRecipient}
repeat with aFile in theFiles
tell content
make new attachment with properties {file name:aFile} at after
last paragraph
end tell
end repeat
end tell
set visible of new_message to true
end tell
end SendNewMessage
Thanks in advance,
--
Le Stang Jean-Baptiste
http://lestang.org/osax/
_______________________________________________
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