Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Applescript/Address Book 10.2 bug

Applescript/Address Book 10.2 bug
Thread Tools
Fresh-Faced Recruit
Join Date: Sep 2002
Status: Offline
Reply With Quote
Sep 11, 2002, 01:58 PM
 
I think I found a bug in Address Book's Applescript support in 10.2. When getting the "birth date" of a "person" it seems to return their "organization". I came across this when writing a script to add birthdays in Address Book to iCal as events.

This script demonstrates it:

tell application "Address Book"
set every_contact to every person
set nameList to {}
repeat with eachPerson in every_contact
set nameList to nameList & birth date of eachPerson
end repeat
end tell


Notice how it's giving back company names?

I have already reported this to Apple. Has anyone else run into this? Anybody find a way around it in Applescript?

Thanks,
Mike
     
Senior User
Join Date: Mar 2000
Location: Ithaca, NY
Status: Offline
Reply With Quote
Sep 11, 2002, 03:39 PM
 
I ran across the same bug. From what I can tell, there's no way around it except to wait for Apple to fix it. I think that the problem is limited to the Address Book application, so getting the stuff from the underlying database using the AddressBook.framework APIs works, it's just the app's Applescript support that's screwed up.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2