Re: Launch Default Mail App attached the file
Re: Launch Default Mail App attached the file
- Subject: Re: Launch Default Mail App attached the file
- From: John Delacour <email@hidden>
- Date: Mon, 18 Nov 2002 11:46:17 +0000
- Mac-eudora-version: 5.3a9
At 6:32 pm +0900 18/11/02, Nami HIGASHIO wrote:
I would like to launch the default mail app with an attachment file,
But, I do not know how to attach a file.
open location "mailto:" & "?attachment=" &"file:///filepath"
etc. are NG.
The term 'attachment' in Mail's dictionary is not a property of a
message but is in the Text suite !! whatever it means -- so as far as
I can see it has no function at all.
You can do part of what you want with the script below, but you will
probably then discover that you can't set the recipients with the
script because although Mail advertises various propeties of an
outgoing message, it doesn't deliver.
set f to file "dx:Users:jd:file.pl"
tell app "Finder" to open f using application file id "com.apple.mail"
tell application "Mail"
tell the last outgoing message
set subject to "Test"
end tell
end tell
if I manually fill in recipients in an outgoing message and then run
tell application "Mail" to properties of outgoing message -1
I get no recipients of any description in the property record.
Amazing!
JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.