On Sep 30, 2007, at 3:18 PM, [EMAIL PROTECTED] wrote:
Is there a way to send a file that is attached to an email to
Yojimbo. If Yojimbo happens to be closed, I need to open the app,
wait for it to open, and the drag it. Ideally, I would like to
shoot it over with an applescript.
Here's a quick and dirty script I whipped up. It doesn't deal with
multiple attachments, and you'll need to change the file paths to
work on your system, but it will do the trick:
on run
tell application "Mail"
tell message viewer 1
set messageList to selected messages
set theMessage to item 1 of messageList
set theAttachment to mail attachment 1 of item 1 of
messageList
set theAttachmentFIleName to "Kenneth_MBP:private:tmp:"
& theAttachment's name
save theAttachment in theAttachmentFIleName
set theFile to ("Kenneth_MBP:private:tmp:" &
theAttachment's name) as alias
tell application "Yojimbo"
import theFile
end tell
end tell
end tell
end run
--
------------------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <[email protected]>.
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
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: <[EMAIL PROTECTED]>