i’m a moderately experienced applescripter, and i’m currently building an application to simplify the adding of address book contacts.
what i need to do is create a new card (that part i’ve already got), and define the street address, state, city, country, and zip code. i have all of the other information working correctly, such as email addresses and phone numbers, but this stuff just isn’t working.
HELP!!!
thanks
-renaissanceboy
:):):):):):):):):):):):):)
tell application "Address Book"
set myCard to make new person with properties {first name:"John", last name:"Smith"}
tell myCard
make new address at end of addresses with properties {street:"8 My Street", city:"London", state:"Middlesex", zip:"X1 1XX", country:"England", country code:"UK", label:"Work"}
end tell
save addressbook
end tell
-- Also, but not needed - to open the card in Adddress Book
tell application "Address Book"
set myID to id of myCard
end tell
open location "addressbook://" & myID
I’d like a an email script that goes a bit further. First, I’m very, very new to scripting. I used Claris Emailer until about a year ago. One thing it allowed me to do was control a newsletter mailing list. If, for example, someone sent me an email with the subject “SUBSCRIBE”, it would add their name to a predetermined mailing group and send a confirmation email. If they sent an email with the subject “UNSUBSCRIBE”, it would search the specified groups looking for that address, and remove it from the group and also send a confirmation. In OS X Mail I have to do this manually, is there a script to do these, or can someone assist me in writing one?
Model: iMac 2Ghz
Browser: Safari 412.2
Operating System: Mac OS X (10.4)
I’m using the FrontBase Applescript engine to query the database and receive the data in an arrary
i’m able to add contacts to Address Book in a repeat and assign them to a specific group
but i am not able to assign the phone number (business phone) to the created person
another thing, how do i find out if the person already exists in Address Book,
so replacing information instead of adding another contact ?
Thanks,
Geert
Model: PowerBook G4
AppleScript: of 10.3.9
Browser: Safari 312.3
Operating System: Mac OS X (10.4)