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


Click here to return to the '10.4: Create a classification feature in Address Book' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Create a classification feature in Address Book
Authored by: Bluecoat93 on Jan 03, '06 01:40:52PM
Great idea! I did something similar, but I used the URL field and created a Custom URL type called "Category". The nice thing is, you can have multiple "Category" URLs for a single contact, allowing one entry to belong to multiple categories. Then, you simply create Smart Groups for "URL is myCategory" and your entry will show up in every category you add to it. For tagging multiple contacts, I use the following AppleScript:

display dialog "Category to set?" default answer ""
copy the result as list to {myCat, buttonPressed}

tell application "Address Book"
  set thePeople to selection
	
  repeat with aPerson in thePeople
    set bFound to false
		
    set theCats to the urls of aPerson
    repeat with aCat in theCats
      if the label of aCat is "Category" then
        set the value of aCat to myCat
        set bFound to true
      end if
    end repeat
	
    if bFound is false then
      make new url at beginning of aPerson's urls with properties {label:"Category", value:myCat}
    end if
  end repeat
end tell


[ Reply to This | # ]
10.4: Create a classification feature in Address Book
Authored by: fitzgunnar on Jan 04, '06 04:13:57AM

About the same idea as TC!! had, but URL is available in the search criteria dialog, which friends ('associated people'?) are not. If you use the URL for real urls, though, there may be clashes between category labels and actual urls, which means you have to use initial xs for the labels anyway.

An advantage with the URL field is that the values are underlined and made blue in the address card, which makes the labels easily spotted in the card. This could of course be a disadvantage too...

/MagnusG!



[ Reply to This | # ]