Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'One way to sync Address Book smart groups to iPods etc.' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
One way to sync Address Book smart groups to iPods etc.
Authored by: LarsVegas on Dec 19, '09 10:31:36AM

Great i "enhanced the script further..

tell application "Address Book"
set group_list to name of every group
repeat with anItem in group_list
set AppleScript's text item delimiters to ""
repeat 1 times
if first item of anItem is not "$" then exit repeat
set AppleScript's text item delimiters to "$"

set gruppe to text item 2 of anItem

repeat with the_person in every person in group anItem
try
add the_person to group gruppe
on error
make new group with properties {name:gruppe}
end try
end repeat
save

end repeat

end repeat
return "Done"
end tell

Should probably do some cleanup and renaming to make it more readable... maybe later :)

basically create youre smart groups with a $ as the first character.. ($MyGroup)

script handles the rest.. makes MyGroup if it doesnt exist and adds all the contacts from $MyGroup



[ Reply to This | # ]