Text into Mail message content
Text into Mail message content
- Subject: Text into Mail message content
- From: Steve Meyer <email@hidden>
- Date: Sat, 6 Mar 2004 13:41:27 -0700
[This is my first post after significant lurking. I'm reading and
browsing Matt Neuburg's Definitive Guide. I've passed the hurdle of
creating a working script for a task I noticed I really wanted to
automate, with file reading, algorithm, and file writing. I'm failing
or at least stumbling when I need to interact with applications.]
I'm trying to insert some text into the content of a Mail message.
I've been able to (set the contents to "text") of a newly created
outgoing message using example scripts, but I want to run a script that
does some date calcs and inserts a formatted paragraph at the insertion
point. I've got the formatted text.
This works:
set the clipboard to "some text"
tell application "System Events"
keystroke "v" using command down
end tell
Is there a more elegant way? I would expect to be able to do something
like:
tell application "mail"
set the selection of content of front outgoing message to "some text"
end tell
TIA,
Steve
_______________________________________________
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.