Mail.app script query
Mail.app script query
- Subject: Mail.app script query
- From: Amazon Consultants - Eric <email@hidden>
- Date: Wed, 10 Jul 2002 16:48:52 +0100
Hi,
I have a simple Entourage script (below) which attaches a specific file to a
new mail window with some defaults. I9d like to do the same thing in
Mail.app but as an AppleScript newbie I find the Mail Dictionary a little
confusing. I9ve tried loads of stuff but can9t get it going. Can anyone
help? Any comments would be gratefully received, no matter how small.
-- get hard disk name and current user name
tell application 3Finder2
repeat with I from 1 to count of disks
if startup of disk I = true then
set hardDisk to name of disk I
end if
end repeat
set userName to owner of folder 3Documents2
end tell
Entourage(hardDisk,userName)
-- handler to attach file and display mail window
On Entourage(hardDisk,userName)
set fullFilePath to hardDisk & 3:users:2 & userName & :Documents:X User
Data:Email Me2
set copyMe to alias fullFilePath
tell application 3Microsoft Entourage2
activate
handle URL 3mailto: 3 attaching copyMe
tell window 1
set subject to 3Hi2
set content to 3Email content2
end tell
end tell
End Entourage
Thanks,
Eric
email@hidden
_______________________________________________
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.