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


Click here to return to the 'Brute force solution' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Brute force solution
Authored by: paulrob on Feb 13, '04 04:35:50AM

I apologise if I'm describing anything obvious to you, but if you open Applescript Editor, and select "Open Dictionary ..." from the "File" menu, and select iCal (the first iCal in the list), you can look at all the commands and classes that you can access from Applescript for iCal.

When the dictionary window comes up select "Address Book Script Suite" and then "Commands" and then click on "action property". The names appearing on the right are all you can use to action your script. You will see that this doesn't include the name! Bit annoying!

But ...

You can have more than one plugin script. Assuming that you know at least one of the following about everybody in your address book (email, address, or telephone number), you could copy the script three times, changing the return value of the action property handler to "email", "address" and "phone" respectively. For each person at least one of the above scripts would work. Obviously, if you know somebody via their AIM, you could create a fourth script and so on.

This is not the "aesthetic" solution, but at least it works better than my attempt to get the action property to return multiple values!



[ Reply to This | # ]