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


Click here to return to the 'Schedule iCal meetings from Address Book' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Schedule iCal meetings from Address Book
Authored by: joeholmes on Feb 12, '04 01:42:39PM

This is fantastic -- but one more question: how can I attach the script to a field that will appear in ALL of my address book entries? That is --

Some of my address book entries have ONLY an email address. Others have a phone and work address, but no email (like my doctor, the kids' school, etc.)

What field can I specify in that very first section of the script to make sure the script will trigger from every address in my address book? I tried substituting "name" and "last name" for "email" but neither worked...

Thanks!

-=-Joe



[ Reply to This | # ]
Schedule iCal meetings from Address Book
Authored by: blalor on Feb 12, '04 05:03:47PM
This is fantastic -- but one more question: how can I attach the script to a field that will appear in ALL of my address book entries? That is --
[...]
What field can I specify in that very first section of the script to make sure the script will trigger from every address in my address book? I tried substituting "name" and "last name" for "email" but neither worked...
First, the script requires the email address for the attendee, so I'm not sure how you'd get around that. To answer your question, however, would require someone to answer who understands that on action property bit. I don't. :-)

[ Reply to This | # ]
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 | # ]