• Apfeltalk ändert einen Teil seiner Allgemeinen Geschäftsbedingungen (AGB), das Löschen von Useraccounts betreffend.
    Näheres könnt Ihr hier nachlesen: AGB-Änderung
  • Was gibt es Schöneres als den Mai draußen in der Natur mit allen Sinnen zu genießen? Lasst uns teilhaben an Euren Erlebnissen und macht mit beim Thema des Monats Da blüht uns was! ---> Klick

[iSync] Kontakte mit Outlook 2011 und iCloud

Gerhard007

Erdapfel
Registriert
02.04.13
Beiträge
3
Guten Morgen,

ich habe ein MacBook Air mit
OS X 10.8.3 (12D78) sowie Outlook 2011. Ich pflege meine Kontakte ausschließlich im Kontakte-App meines Macs, diese Kontakte werden grundsätzlich tadellos mit iCloud (und damit auch iPhone 4S) und auch Outlook 2011 synchronisiert.
Aber:
In meinen Kontakten auf dem Mac stehen die E-Mail Adressen (erst seit Kurzem, vermutlich nach einem OS-Update) im Feld "E-Mail". Dieses Feld wird mit Outlook 2011 NICHT synchronisiert, d.h. dass in Outlook einfach keine E-Mail Adressen unter dem Punkt Kontakte angezeigt werden. Ändere ich das Mac-Kontakte-Feld auf den Namen "Arbeit", wird die E-Mail Adresse wieder in Outlook 2011 angezeigt und kann zum Senden eines Mails verwendet werden.

Da ich keine Lust habe, alle meine Kontakteinträge händisch nachzubearbeiten, meine Frage:

Kennt jemand dieses Problem? Gibt es eine Möglichkeit, alle Kontakte zu überarbeiten?

Übrigens, meinem PC (Outlook 2010) und dem iPhone ist dieser keine Unterschied (Feldbezeichnung E-Mail bzw. Arbeit) völlig egal, am PC und auch am iPhone erscheinen die Kontakte so wie es sein soll.

lg

 

Pill

Adams Parmäne
Registriert
07.07.12
Beiträge
1.310
Mit AppleScript kannst du das Feld bearbeiten:

Code:
[B]property[/B] [COLOR=#4F8F00]allLabels[/COLOR] : {"work", "home", "other"}

[B]tell[/B] [COLOR=#0433ff][I]application[/I][/COLOR] "Contacts"
    [B]set[/B] [COLOR=#4f8f00]theCount[/COLOR] [B]to[/B] 0
    [B]set[/B] [COLOR=#4f8f00]thePeople[/COLOR] [B]to[/B] [COLOR=#812fdc]selection[/COLOR]
    [B]if[/B] [COLOR=#4f8f00]thePeople[/COLOR] [B]is[/B] {} [B]then[/B]
        [COLOR=#012fbe][B]display dialog[/B][/COLOR] "Bitte wählen Sie mindestens einen Kontakt aus!"
        [B]return[/B]
    [B]end[/B] [B]if[/B]
    [B]try[/B]
        [B]repeat[/B] [B]with[/B] [COLOR=#4f8f00]aPerson[/COLOR] [B]in[/B] [COLOR=#4f8f00]thePeople[/COLOR]
            [B]set[/B] [COLOR=#4f8f00]theLabel[/COLOR] [B]to[/B] [COLOR=#812fdc]label[/COLOR] [B]of[/B] [COLOR=#0433ff][I]emails[/I][/COLOR] [B]of[/B] [COLOR=#4f8f00]aPerson[/COLOR]
            [B]if[/B] ([COLOR=#0433ff][I]item[/I][/COLOR] 1 [B]of[/B] [COLOR=#4f8f00]theLabel[/COLOR]) [B]is not[/B] [B]in[/B] [COLOR=#4f8f00]allLabels[/COLOR] [B]then[/B]
[COLOR=#4F8F00][COLOR=#000000]                [B]set[/B] [/COLOR]allLabels[COLOR=#000000] [B]to[/B] [/COLOR]allLabels[COLOR=#000000] & [/COLOR]theLabel[/COLOR]
            [B]end[/B] [B]if[/B]
        [B]end[/B] [B]repeat[/B]
        
        [B]set[/B] [COLOR=#4f8f00]oldLabel[/COLOR] [B]to[/B] [COLOR=#0433ff][I]item[/I][/COLOR] 1 [B]of[/B] ([COLOR=#012fbe][B]choose from list[/B][/COLOR] [COLOR=#4f8f00]allLabels[/COLOR] [COLOR=#012fbe]with prompt[/COLOR] "Wählen Sie das zu ändernde Label aus:")
        [B]set[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]to[/B] [COLOR=#0433ff][I]item[/I][/COLOR] 1 [B]of[/B] ([COLOR=#012fbe][B]choose from list[/B][/COLOR] ([COLOR=#4f8f00]allLabels[/COLOR] & "Eigenes ...") [COLOR=#012fbe]with prompt[/COLOR] "Wählen Sie das Ziel-Label aus:")
        [B]if[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]is[/B] "Eigenes ..." [B]then[/B]
            [B]set[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]to[/B] [COLOR=#5730be]text returned[/COLOR] [B]of[/B] ([COLOR=#012fbe][B]display dialog[/B][/COLOR] "Geben Sie den Namen des Labels ein:" [COLOR=#012fbe]default answer[/COLOR] "")
            [B]repeat[/B] [B]until[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]is[/B] [B]not[/B] ""
                [B]set[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]to[/B] [COLOR=#5730be]text returned[/COLOR] [B]of[/B] ([COLOR=#012fbe][B]display dialog[/B][/COLOR] "Geben Sie den Namen des Labels ein:" [COLOR=#012fbe]default answer[/COLOR] "")
            [B]end[/B] [B]repeat[/B]
            [B]if[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]is not[/B] [B]in[/B] [COLOR=#4f8f00]allLabels[/COLOR] [B]then[/B]
                [B]set[/B] [B]end[/B] [B]of[/B] [COLOR=#4f8f00]allLabels[/COLOR] [B]to[/B] [COLOR=#4f8f00]newLabel[/COLOR]
            [B]end[/B] [B]if[/B]
        [B]end[/B] [B]if[/B]
        
        [B]repeat[/B] [B]with[/B] [COLOR=#4f8f00]aPerson[/COLOR] [B]in[/B] [COLOR=#4f8f00]thePeople[/COLOR]
            [B]repeat[/B] [B]with[/B] [COLOR=#4f8f00]aEmail[/COLOR] [B]in[/B] [COLOR=#0433ff][I]email[/I][/COLOR] [B]of[/B] [COLOR=#4f8f00]aPerson[/COLOR]
                [B]if[/B] [COLOR=#812fdc]label[/COLOR] [B]of[/B] [COLOR=#4f8f00]aEmail[/COLOR] [B]is[/B] [COLOR=#4f8f00]oldLabel[/COLOR] [B]then[/B]
                    [B]set[/B] [COLOR=#812fdc]label[/COLOR] [B]of[/B] [COLOR=#4f8f00]aEmail[/COLOR] [B]to[/B] [COLOR=#4f8f00]newLabel[/COLOR]
                    [B]set[/B] [COLOR=#4f8f00]theCount[/COLOR] [B]to[/B] [COLOR=#4f8f00]theCount[/COLOR] + 1
                [B]end[/B] [B]if[/B]
            [B]end[/B] [B]repeat[/B]
        [B]end[/B] [B]repeat[/B]
[COLOR=#0433FF][COLOR=#000000]        [/COLOR][B]save[/B][/COLOR]
        [COLOR=#012fbe][B]display dialog[/B][/COLOR] ([COLOR=#4f8f00]theCount[/COLOR] & " E-Mail-Adressen wurden bearbeitet!" [B]as[/B] [COLOR=#0433ff][I]string[/I][/COLOR])
    [B]end[/B] [B]try[/B]
[B]end[/B] [B]tell[/B]

Bitte sichere vorher deine Kontakte und probiere das Skript erstmal aus, ich hafte nicht für Verluste!

Zum Ändern des Email-Feldes musst du die entsprechenden Kontakte in Kontakte markieren und dann das Skript ausführen. Du wirst dann nach dem zu ändernden Feld gefragt und nach der neuen Bezeichnung.
 

Gerhard007

Erdapfel
Registriert
02.04.13
Beiträge
3
Hallo,

funktioniert nicht, wahrscheinlich mache ich etwas falsch, ich habe auch keine Erfahrung mit AppleScript. Also:

Ich habe meine Kontakte alle markiert, AppleScript Editor geöffnet, Dein Script hinein kopiert und auf Ausführen getippt. Das wars, es hat sich nichts getan. Was habe ich vergessen?
 

Pill

Adams Parmäne
Registriert
07.07.12
Beiträge
1.310
Sorry, war mein Fehler. Das Skript brach ab, wenn ein Kontakt ohne Emailadresse gefunden wurde. Probiers mal so:

Code:
[B]property[/B] [COLOR=#4F8F00]allLabels[/COLOR] : {"work", "home", "other"}

[B]tell[/B] [COLOR=#0433ff][I]application[/I][/COLOR] "Contacts"
	[B]set[/B] [COLOR=#4f8f00]theCount[/COLOR] [B]to[/B] 0
	[B]set[/B] [COLOR=#4f8f00]thePeople[/COLOR] [B]to[/B] [COLOR=#812fdc]selection[/COLOR]
	[B]if[/B] [COLOR=#4f8f00]thePeople[/COLOR] [B]is[/B] {} [B]then[/B]
		[COLOR=#012fbe][B]display dialog[/B][/COLOR] "Bitte wählen Sie mindestens einen Kontakt aus!"
		[B]return[/B]
	[B]end[/B] [B]if[/B]
	[B]try[/B]
		[B]repeat[/B] [B]with[/B] [COLOR=#4f8f00]aPerson[/COLOR] [B]in[/B] [COLOR=#4f8f00]thePeople[/COLOR]
			[B]try[/B]
				[B]set[/B] [COLOR=#4f8f00]theLabel[/COLOR] [B]to[/B] [COLOR=#812fdc]label[/COLOR] [B]of[/B] [COLOR=#0433ff][I]emails[/I][/COLOR] [B]of[/B] [COLOR=#4f8f00]aPerson[/COLOR]
				[B]if[/B] ([COLOR=#0433ff][I]item[/I][/COLOR] 1 [B]of[/B] [COLOR=#4f8f00]theLabel[/COLOR]) [B]is not[/B] [B]in[/B] [COLOR=#4f8f00]allLabels[/COLOR] [B]then[/B]
[COLOR=#4F8F00][COLOR=#000000]					[B]set[/B] [/COLOR]allLabels[COLOR=#000000] [B]to[/B] [/COLOR]allLabels[COLOR=#000000] & [/COLOR]theLabel[/COLOR]
				[B]end[/B] [B]if[/B]
			[B]end[/B] [B]try[/B]
		[B]end[/B] [B]repeat[/B]
		
		[B]set[/B] [COLOR=#4f8f00]oldLabel[/COLOR] [B]to[/B] [COLOR=#0433ff][I]item[/I][/COLOR] 1 [B]of[/B] ([COLOR=#012fbe][B]choose from list[/B][/COLOR] [COLOR=#4f8f00]allLabels[/COLOR] [COLOR=#012fbe]with prompt[/COLOR] "Wählen Sie das zu ändernde Label aus:")
		[B]set[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]to[/B] [COLOR=#0433ff][I]item[/I][/COLOR] 1 [B]of[/B] ([COLOR=#012fbe][B]choose from list[/B][/COLOR] ([COLOR=#4f8f00]allLabels[/COLOR] & "Eigenes ...") [COLOR=#012fbe]with prompt[/COLOR] "Wählen Sie das Ziel-Label aus:")
		[B]if[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]is[/B] "Eigenes ..." [B]then[/B]
			[B]set[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]to[/B] [COLOR=#5730be]text returned[/COLOR] [B]of[/B] ([COLOR=#012fbe][B]display dialog[/B][/COLOR] "Geben Sie den Namen des Labels ein:" [COLOR=#012fbe]default answer[/COLOR] "")
			[B]repeat[/B] [B]until[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]is[/B] [B]not[/B] ""
				[B]set[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]to[/B] [COLOR=#5730be]text returned[/COLOR] [B]of[/B] ([COLOR=#012fbe][B]display dialog[/B][/COLOR] "Geben Sie den Namen des Labels ein:" [COLOR=#012fbe]default answer[/COLOR] "")
			[B]end[/B] [B]repeat[/B]
			[B]if[/B] [COLOR=#4f8f00]newLabel[/COLOR] [B]is not[/B] [B]in[/B] [COLOR=#4f8f00]allLabels[/COLOR] [B]then[/B]
				[B]set[/B] [B]end[/B] [B]of[/B] [COLOR=#4f8f00]allLabels[/COLOR] [B]to[/B] [COLOR=#4f8f00]newLabel[/COLOR]
			[B]end[/B] [B]if[/B]
		[B]end[/B] [B]if[/B]
		
		[B]repeat[/B] [B]with[/B] [COLOR=#4f8f00]aPerson[/COLOR] [B]in[/B] [COLOR=#4f8f00]thePeople[/COLOR]
			[B]repeat[/B] [B]with[/B] [COLOR=#4f8f00]aEmail[/COLOR] [B]in[/B] [COLOR=#0433ff][I]email[/I][/COLOR] [B]of[/B] [COLOR=#4f8f00]aPerson[/COLOR]
				[B]if[/B] [COLOR=#812fdc]label[/COLOR] [B]of[/B] [COLOR=#4f8f00]aEmail[/COLOR] [B]is[/B] [COLOR=#4f8f00]oldLabel[/COLOR] [B]then[/B]
					[B]set[/B] [COLOR=#812fdc]label[/COLOR] [B]of[/B] [COLOR=#4f8f00]aEmail[/COLOR] [B]to[/B] [COLOR=#4f8f00]newLabel[/COLOR]
					[B]set[/B] [COLOR=#4f8f00]theCount[/COLOR] [B]to[/B] [COLOR=#4f8f00]theCount[/COLOR] + 1
				[B]end[/B] [B]if[/B]
			[B]end[/B] [B]repeat[/B]
		[B]end[/B] [B]repeat[/B]
[COLOR=#0433FF][COLOR=#000000]		[/COLOR][B]save[/B][/COLOR]
		[COLOR=#012fbe][B]display dialog[/B][/COLOR] ([COLOR=#4f8f00]theCount[/COLOR] & " E-Mail-Adressen wurden bearbeitet!" [B]as[/B] [COLOR=#0433ff][I]string[/I][/COLOR])
	[B]end[/B] [B]try[/B]
[B]end[/B] [B]tell[/B]