Re: Help! Need to get text from OS X Mail to Tex-Edit...
Re: Help! Need to get text from OS X Mail to Tex-Edit...
- Subject: Re: Help! Need to get text from OS X Mail to Tex-Edit...
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 3 Sep 2002 23:27:32 -0400
Date: Tue, 3 Sep 2002 16:47:54 -0600
Subject: Help! Need to get text from OS X Mail to Tex-Edit...
From: Robert Parker <email@hidden>
To: email@hidden
Help!
I'm trying to create an AppleScript (that I execute from the
AppleScript menubar in OS X) that'll take the currently selected email
(using OS X's native email app) and transfer the contents into a
Tex-Edit document automatically so I can do some stuff to the text.
Working with Tex-Edit is easy since it's recordable. In fact, I've
already finished this part of my project.
The problem is that the email app in OS X is apparently not recordable
so I'm REALLY having a difficult time getting the selected email text
into a TexEdit document.
If anyone out there could help me I'd greatly appreciate it.
tell application "Mail"
set x to the selection
set y to content of item 1 of x
end tell
tell application "Tex-Edit Plus"
if not (exists window 1) then make new window at the beginning
set contents of window 1 to y
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[9/3/02 11:26:42 PM]
_______________________________________________
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.