Jump to content

Look for AppleScript -- add a name to Address Book


This topic is 6880 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Here is a limited attempt. I also spent quite a lot of time building an FileMaker to iCal 2-way synchronization AppleScript. It worked OK in my limited testing. But then I discovered a flaw in iCal's AppleScript implimentation. You (I anyway) could not get or set the Notes of a To Do in iCal (1.5.5). It doesn't create an error, but you get nothing. So I gave it up. Hopefully this will be fixed at some point. It can be gotten via the vCard, but that's so ugly.

AB7.zip

Link to comment
Share on other sites

  • 1 month later...

I dont have the example with me but the theory went somethng like this.

1.Export a file via scriptmaker to tab separated.

2.with apple script make a file with just the title headers (tab separated)

3.again with apple script combine 1&2.

4 Then you have to use applescript using the UI to tell address book to import the file.

5.Then delete the two txt files you created.

Not knowing much about applescript make for a steep learing curve but it worked in the end.

My example didnt need any user interaction but if a user can seelct the first text file and control the fact that it doesnt have headers (address book will ask waht fields thwy are to convert to) then steps 2& 3 could be eliminated.

Caveats

1) only works in 10.4 (cant import a text file in address book in 10.3)

2) you need enable assistive access in the system prefs/Universal access to let ui scripting to work

Edited by Guest
Link to comment
Share on other sites

This topic is 6880 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.