• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Help! Need to get text from OS X Mail to Tex-Edit...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Philip Aker <email@hidden>
  • Date: Tue, 03 Sep 2002 18:19:34 -0700

On Tuesday, September 3, 2002, at 03:47 PM, Robert Parker wrote:

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.


You'll have to use a third party utility like Keyboard Maestro to get the current selection from Mail to the clipboard. You can find a solution if you search the list archives from late July/early August for the topic "scripting mail" and look for posts by David Meieran and myself. We were writing to text files so your solution will be a variant of those scripts. At any rate, there is a little known relic from NeXT called 'pbpaste' which is very handy in some situations. I have since ported that script from OS X 10.1.5 to 10.2 but there were only miniscule changes. About Keyboard Maestro: It has a little quirk about stashing the designated AppleScript so if you change it later (as is often the case when developing a script), you'll have to re-load it into KM.

HTH,


Philip Aker
http://www.aker.ca
_______________________________________________
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.

References: 
 >Help! Need to get text from OS X Mail to Tex-Edit... (From: Robert Parker <email@hidden>)

  • Prev by Date: Re: HTML parsing
  • Next by Date: Re: (no subject) [Finder count]
  • Previous by thread: Help! Need to get text from OS X Mail to Tex-Edit...
  • Next by thread: Re: Help! Need to get text from OS X Mail to Tex-Edit...
  • Index(es):
    • Date
    • Thread