Probleme mit Adressbuch und AppleScript :(

M

mzi2003

Aktives Mitglied
Thread Starter
Dabei seit
20.07.2003
Beiträge
384
Reaktionspunkte
2
Hi,
ich habe folgenden Code

Code:
tell application "Address Book"
	set MobilListe to every person whose last name starts with "Z"
	repeat with oneP in MobilListe
		set Trenner to ", "
		set tmpList to ""
		repeat with labelName in (value of phones of oneP)
		end repeat
		set Geburtstag to birth date of oneP
		if Geburtstag = missing value then
			set Geburtstag to ""
		end if
	end repeat
end tell


Die Schleife
Code:
		repeat with labelName in (value of phones of oneP)
			
		end repeat

will aber, wenn ich sie so schreibe :

Code:
		set Str to ""
		repeat with labelName in (value of phones of oneP)
		set Nummer to (value of phones of oneP whose label is labelName)
		set Str to Str & ";" &labelName & ":" & Nummer
		end repeat

nicht arbeiten. Bekomme einen Fehler der mir irgendwas mit Unicode Text erzählt, verstehe ich aber nicht. Kann mir jemand helfen ?
 
habe jetzt den ganzen gestrigen Abend gegrübelt und komme nicht weiter, bitte hilfe :(
 
Zurück
Oben Unten