• 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: scripting mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting mail


  • Subject: Re: scripting mail
  • From: David Meieran <email@hidden>
  • Date: Tue, 30 Jul 2002 12:45:16 -0400
  • Resent-date: Tue, 30 Jul 2002 12:46:29 -0400
  • Resent-from: David Meieran <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: email@hidden

On Monday, July 29, 2002, at 04:50 AM, Philip Aker wrote:

I would like to use a single key-command to append the text selection to a text file. A text file whose name is derived from the name of the current mailbox. Typically, I put a CR, a few delimeter characters and another CR after the latest entry in the text file. The messages from this list go into my "applescript" mailbox. Like any other list, there's a lot of dross along with the good stuff. I only need the good stuff in my text file--which for this list is called "applescript.txt" and is located in a folder along with the text files from all my other lists. When I want to find something later on, then I just batch-regexp through the file(s).

1. Create a shell script ("akerscript")

#!/bin/sh

# pasteboard script

cat >>/Users/aker/Documents/applescript.txt <<EOF

`date`

`pbpaste`

EOF

2. using your favorite keyboard shortcut app (Keyboard Maestro, YoupiKey, etc.), attach a key to this sequence:

i) type the Cmd-C key
ii) launch unix script "akerscript"

and you're done.

dm
_______________________________________________
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.

  • Prev by Date: Re: Page Update and discovery of looping variable manipulations...
  • Next by Date: Re: simple script or kbd shortcut
  • Previous by thread: Re: scripting mail
  • Next by thread: Re: scripting mail
  • Index(es):
    • Date
    • Thread