Re: adding new groups in address book for blind users
Re: adding new groups in address book for blind users
- Subject: Re: adding new groups in address book for blind users
- From: CYB <email@hidden>
- Date: Sat, 03 Apr 2010 21:01:02 -0600
- Thread-topic: adding new groups in address book for blind users
Title: Re: adding new groups in address book for blind users
Hi,
While on the plane, i was fighting with this little script i'd like to get working as being a blind user, i can't rename groups i create, and therefore felt i had to resort to as until someone does something about the bug.
But i have a problem with a text being converted to an integer although what i record is a string???
Here goes:
tell application "Address Book"
activate
set newGroup to the text returned of (display dialog "New group's name" default answer "group name")
add group {name, newGroup}
end tell
But i get an error with this.
I'm still amateur about this, but fevereshly digesting all the documentation i can to figure it out, and i do have one hurdle which is the syntaxing and colors in the dictionaries, so sometimes something obvious to a sighted person might be baffling me in the eye, so to speak.
Can anyone help?
Thanks, and best
Yuma
Yuma Decaux
Light has no value without darkness
Skype: shainobi1
blog: www.theblindsamurai.com <http://www.theblindsamurai.com>
twitter: www.twitter.com/triple7 <http://www.twitter.com/triple7>
Tel: +85513623378
Yuma, the dictionary as usual is a little tricky, but this works ok
set newGroup to "testGroup"
tell application "Address Book"
set g to make new group at end of groups with properties {name:newGroup}
save
end tell
I recommend you to take out of the tell application block your display dialog line is safer
Cheers
Carlos Ysunza B.
Director
Ysunza/Santiago
Visual Communication • Automation
Tel. (52)55 5256-0336
email@hidden
http://www.ysunzasantiago.com
http://www.thesecretmexico.com
http://www.softrobot.com.mx
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden