From ac2d420505d996b5f31dc095942b5255fabd58e2 Mon Sep 17 00:00:00 2001 From: Jeena Paradies Date: Sun, 27 Dec 2009 21:55:41 +0100 Subject: [PATCH] changed file format --- export_mailadresses.applescript | 38 ++++++++++++++++++++++++++++++++ export_mailadresses.scpt | Bin 5798 -> 0 bytes 2 files changed, 38 insertions(+) create mode 100644 export_mailadresses.applescript delete mode 100644 export_mailadresses.scpt diff --git a/export_mailadresses.applescript b/export_mailadresses.applescript new file mode 100644 index 0000000..ca0ea93 --- /dev/null +++ b/export_mailadresses.applescript @@ -0,0 +1,38 @@ +-- export_mailadresses.scpt exports all email addresses +-- which you don't have already in your AddressBook.app +-- and which are not spam mails. +-- +-- Author: Jeena Paradies +-- This script is only OS X and Mail.app +-- +-- How to use: +-- 1. Open AppleScript-Editor.app +-- 2. Copy & Paste this script into the ScriptEditor +-- 3. Save this script somewhere, for example in ~/Library/Scripts/ +-- 4. Open up Mail.app +-- 5. Create a new rule (you can find this in preferences) +-- 6. Select "User is not in AddressBook" as the first rule +-- 7. Select "Run AppleScript" +-- 8. Chose the script and press "OK" +-- 9. If it asks you to run this script on existing mails, press "No" +-- 10. Mark all emails you want to export mails from +-- 11. In the menu use "Mail -> Apply Rules" +-- 12. Check the mail_export.csv file on your Desktop, you're done + +on perform_mail_action(info) + + tell application "Mail" + set the_export_location to "~/Desktop/mail_export.csv" + set the_messages to |SelectedMessages| of info + repeat with a_message in the_messages + set the_sender to extract address from sender of a_message + if (junk mail status of a_message) is not true then + do shell script "if ! grep -q " & the_sender & " " & the_export_location & " + then + echo " & the_sender & " >> " & the_export_location & " + fi" + end if + end repeat + end tell + +end perform_mail_action diff --git a/export_mailadresses.scpt b/export_mailadresses.scpt deleted file mode 100644 index 294c85ccd3b386dc264ab1d69bcb3135c0249dcd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5798 zcmb_gd3+S*8GdFGH0<&%S=545!$&k65^^D@LJSZDIf4W%o^;qu*d@vCc4tF~ww7w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