Se hace con applescript
Instrucciones detalladas
https://discussions.apple.com/thread/2285262?start=0&tstart=0
https://gist.github.com/echoz/1426818
Script
tell application "Address Book"
Instrucciones detalladas
https://discussions.apple.com/thread/2285262?start=0&tstart=0
https://gist.github.com/echoz/1426818
Script
tell application "Address Book"
set prefix to "+65"repeat with p in (get people)repeat with n in (get p's phones)set num to ReplaceText(n's value, " ", "") of meif (count num) is 8 thenset n's value to prefix & numend ifend repeatsave pend repeatsaveend tellon ReplaceText(theString, fString, rString)set current_Delimiters to text item delimiters of AppleScriptset AppleScript's text item delimiters to fStringset sList to every text item of theStringset AppleScript's text item delimiters to rStringset newString to sList as stringset AppleScript's text item delimiters to current_Delimitersreturn newStringend ReplaceText
No hay comentarios:
Publicar un comentario