Featured Posts

Adding HTML Signature to your iPhone 4 without Jailbreaking itAdding HTML Signature to your iPhone 4 without Jailbreaking...One of the features missing on the iPhone is HTML signature for Mail, and if you are using two different email addresses like me you probably want to have two different...

Readmore

Play Tetris Using Mac Leopard TerminalPlay Tetris Using Mac Leopard Terminal Terminal Tetris is actually part of the Gnu Emacs and is something you should able to do on any unix system that has Emacs on it.I attached text and video instructions.To...

Readmore

Automate a Remote Login Using SSH - LinuxAutomate a Remote Login Using SSH - LinuxTo do just that you need to create SSH Key Pair1. we need to use ssh-agent to create an SSH key pair.To do that run this command: ssh-keygen -t rsaWhen prompted...

Readmore

Free Google Wave InvitesFree Google Wave InvitesDo you really want a Google Wave Invite but don't want to pay $$$ on eBay???I got one for you....The deal is:I give you an Invitation and once you get it...

Readmore

Start Google Chrome in Incognito ModeStart Google Chrome in Incognito Mode I'm Using Mozilla FireFox as my default web browser But I like using Chrome for Private Browsing.Google Chrome doesn't provide an option to load Incognito by default so...

Readmore

Cool Geex Rss

Create your own list of email addresses from your inbox

Posted on : 09-15-2009 | By : Cool Geex | In : Script Editor, Snow Leopard

0

Like most, I’m getting everyday tons of emails, I’m not saving all the addresses, but maybe I should.

I figured that if I’ll want to promote something one day I can use that list, so I wrote a script that captures all the email address to a file.

I’m using Macintosh Apple Mail and using the script editor.

email-from-inbox

This Is the Script:

[AppleScript]

tell application “Mail”
set theSelectedMessages to selection

set selectionCount to (count of theSelectedMessages)
if selectionCount is greater than 0 then
repeat with eachMessage in theSelectedMessages
set theAddress to extract address from sender of eachMessage

do shell script “echo ” & quoted form of (theAddress as text) & “>>~/tmpEmailList.txt”
end repeat
do shell script “cat ~/tmpEmailList.txt |sort|uniq >~/desktop/emailList.txt; rm ~/tmpEmailList.txt”
else
display dialog “Please Choose one OR more msgs”
end if
end tell

[/AppleScript]

Related posts:

  1. Place Google Voice calls directly from iPhone
  2. Move downloaded DMG files automatically
  3. Create an Application that Start Google Chrome in Incognito Mode
  4. Google Chrome Incognito – Mac OSX Perfect Solution

How To Link To This Page?

To link to this page, simply Copy and Paste the following code to your web page.

Write a comment

Available on the App Store

Advertise Here


Subscribe To CoolGeex