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


Click here to return to the '10.3: New contextual menus available in Adress Book' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: New contextual menus available in Adress Book
Authored by: ces3001 on Nov 07, '03 01:39:35AM

Is there a way to add functionality to these menus? Link them to AppleScripts? What I'd like to do is have the phone number pop-up menu dail the number on my modem, so I just have to pick up the nearby phone when the call connects.



[ Reply to This | # ]
10.3: New contextual menus available in Adress Book
Authored by: spankalee on Nov 09, '03 05:29:53PM

There is actually. 10.3 brings an additions to the Address Book API called Address Book Action Plug-ins. From the developer site (http://developer.apple.com/documentation/ReleaseNotes/AppleApplications/AddressBook.html):

This API allows developers to populate AddressBook.app's roll-over menus with custom entries.

<snip/>

Action Plug-Ins can also be written in AppleScript

This sample AppleScript based action plug-in displays a person's age

using terms from application "Address Book"
    on action property
        return "birth date"
    end action property

    on action title for p with e
        return (((year of (current date)) - (year of e)) as string) & " years old"
    end action title

    on should enable action for p with e
        return true
    end should enable action

    on perform action for p with e
        display dialog (name of p & " is " & ((year of (current date)) - (year of e)) as string) & " years old"
        return true
    end perform action
end using terms from


Action plugins are stored in ~/Library/Address Book Plug-Ins or /Library/Address Book Plug-Ins

I wish it could do more than just add contextual menus. I really want to share address books in my office via Rendezvous. It'd be nice if I could write a plug-in for this.



[ Reply to This | # ]
10.3: New contextual menus available in Adress Book
Authored by: demmons65 on Feb 11, '04 10:20:53AM
It's probably already been discovered but Address-o-Sync will sync address books via Rendezvous without .Mac. http://www.slamslash.com/address-o-sync

---
d a v e

http://www.hostwerks.com/~dave/

[ Reply to This | # ]