Push-Nachrichten von MacTechNews.de
Würden Sie gerne aktuelle Nachrichten aus der Apple-Welt direkt über Push-Nachrichten erhalten?
Forum>Software>Emails aus Adressbuch für Newsletterversand exportieren?

Emails aus Adressbuch für Newsletterversand exportieren?

dynax7427.08.0915:25
Hi,

ich möchte gern aus meinem Apple Adressbuch das Feld Emailadresse, Vorname und Name in eine TXT, CSV oder ähnliche Datei exportieren um dann die Daten in mein Newslettertool zu importieren.


Wie gehts ????


Danke
0

Kommentare

_mäuschen
_mäuschen27.08.0920:37

global theFileSave
repeat
 display dialog "Enter file name:" default answer "empty" buttons {"Cancel", "OK"} default button 2
 set the theFile to the text returned of the result
 if the length of theFile is not 0 ¬
  and (the theFile is not "empty") then exit repeat
end repeat
set destinationFolder to choose folder
set theFileSave to (destinationFolder as string) & theFile & ".txt" as string

tell application "Address Book"
 set theList to {}
 repeat with thisPerson in every person -- of group "Newsletter"
  if (first name of thisPerson) is not missing value then
   repeat with x from 1 to the count of email in thisPerson
    if (label of email x of thisPerson as string) is "home" then
     -- -- -- -- -- -- -- -- -- -- -- --  "work", MobileMe", "other"
     -- -- -- -- -- -- -- -- -- -- -- -- -- oder auch ->->Eigene ""
     copy (value of email x of thisPerson as string) to end of theList
    end if
   end repeat
   copy tab to end of theList
   copy (first name of thisPerson) to end of theList
   copy tab to end of theList
   copy (last name of thisPerson) to end of theList
   copy (ASCII character 13) & ¬
    (ASCII character 10) to end of theList
  end if
 end repeat
 set theList to theList as text
 my writeToFile(theList)
end tell

on writeToFile(thisData)
 set f to (open for access file ¬
  theFileSave with write permission)
 try
  write thisData to f starting at eof
  close access f
 on error
  close access f
  display dialog "something went wrong"
 end try
end writeToFile

0
dynax7428.08.0909:00
Und was mach ich damit ? Bitte kurz erklären DANKE
0
_mäuschen
_mäuschen28.08.0910:06

Den
/Applications/Utilities/AppleScript Editor
öffen, den Skript kopieren und Ausführen.



Achte auf

if (label of email x of thisPerson as string) is "home" then
-- -- -- -- -- -- -- -- -- -- -- -- "work", MobileMe", "other"
-- -- -- -- -- -- -- -- -- -- -- -- -- oder auch - > Eigene ""

und

repeat with thisPerson in every person -- of group "Newsletter"
(auskommentieren und Gruppenname anpassen, falls erwünscht)

0
uniX
uniX28.08.0910:17
wirf die benötigten kontakte aus adressbuch in ein numbersdokument (drag and drop). das legt dir die benötigten spalten an, die du dann beliebig umsortieren/ löschen kannst. danach ins gewünschte format exportieren, fertig!
0
dynax7428.08.0910:34
uniX: Ach Du Schreck ist das mal wieder TYPISCH Apple einfach!

Ich bin begeistert!


DANKE
0

Kommentieren

Diese Diskussion ist bereits mehr als 3 Monate alt und kann daher nicht mehr kommentiert werden.