Bereiche
News
Rewind
Tipps & Berichte
Forum
Galerie
Journals
Events
Umfragen
Themenwoche
Kleinanzeigen
Interaktiv
Anmelden
Registrierung
Zu allen empfangenen Nachrichten
Suche...
Zur erweiterten Suche
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?
dynax74
27.08.09
15: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
Hilfreich?
0
Kommentare
_mäuschen
27.08.09
20: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
Hilfreich?
0
dynax74
28.08.09
09:00
Und was mach ich damit ? Bitte kurz erklären DANKE
Hilfreich?
0
_mäuschen
28.08.09
10: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)
Hilfreich?
0
uniX
28.08.09
10: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!
Hilfreich?
0
dynax74
28.08.09
10:34
uniX: Ach Du Schreck ist das mal wieder TYPISCH Apple einfach!
Ich bin begeistert!
DANKE
Hilfreich?
0
Kommentieren
Diese Diskussion ist bereits mehr als 3 Monate alt und kann daher nicht mehr kommentiert werden.