Jim Correia How to send selected items as attachments with Apple Mail
Jan 10, 2007; 13:46
Jim Correia
How to send selected items as attachments with Apple Mail
The question of how to email an item has come up before. Here is an example script which will email the selected items as attachments using Apple Mail. Save to your scripts folder and invoke with the system wide script menu, or your favorite utility (e.g. Fast Scripts.)
- Jim
--begin script--
(* Creates a new outgoing message with the selected Yojimbo items attached. Apple Mail version *)
tell application "Yojimbo" set _targets to (selected items of browser window 1) set _files to (export _targets to (path to temporary items)) as list end tell
tell application "Mail" set _message to make new outgoing message tell _message set visible to true tell content repeat with _f in _files (* Mail should accept a typeFileURL file reference here, but doesn't. A POSIX path works. *) set _f to POSIX path of _f make new attachment with properties {file name:_f} at after the last paragraph end repeat end tell end tell activate end tell
tell application "Finder" move _files to trash end tell
-- ------------------------------------------------------------------ This message is sent to you because you are subscribed to the mailing list <yojimbo-talk@barebones.com>. To unsubscribe, send mail to: <yojimbo-talk-off@barebones.com> List archives: <http://www.listsearch.com/yojimbotalk.lasso> Have a feature request, or not sure if the software's working correctly? Please send mail to: <support@barebones.com>
Jan 10
Patrick Gilmour Re: How to send selected items as attachments with Apple Mail
Jan 10, 2007; 14:45
Patrick Gilmour
Re: How to send selected items as attachments with Apple Mail
Jan 10
Patrick Gilmour Re: How to send selected items as attachments with Apple Mail
Jan 10, 2007; 15:03
Patrick Gilmour
Re: How to send selected items as attachments with Apple Mail
Jan 10
J. De Salvo Re: How to Send selected items as attachments with Apple Mail
Jan 10, 2007; 16:14
J. De Salvo
Re: How to Send selected items as attachments with Apple Mail
Jan 10
Jim Correia Re: How to Send selected items as attachments with Apple Mail
Jan 10, 2007; 16:28
Jim Correia
Re: How to Send selected items as attachments with Apple Mail
Search
Lasso Programming
This site manages and broadcasts several email lists pertaining to Lasso Programming and technologies related and used by Lasso developers. Sign up today!