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: Paul Skinner <email@hidden>
- Date: Mon, 18 Nov 2002 10:05:07 -0500
On Monday, November 18, 2002, at 06:46 AM, John Delacour wrote:
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
Snip mail info.
Ok John, I've been following your discussions about Mail from a
distance. After stopping and trying to script it a bit, I see why it
makes you so mad. It's screwy!
The Create new message script <
file://localhost//Library/Scripts/Mail scripts/
Create New Message.scpt>seems to do this all well enough though. I
must say that it's a bit like like hearing a story from a German
tourist translated through a French guide. It works and makes sense,
but it doesn't proceed in the way that you'd think it would.
--
Paul Skinner
_______________________________________________
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.