• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: adding new groups in address book for blind users
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >adding new groups in address book for blind users (From: Yuma Antoine Decaux <email@hidden>)

  • Prev by Date: Re: Index a given folder
  • Next by Date: Re: Index a given folder
  • Previous by thread: adding new groups in address book for blind users
  • Next by thread: Move cursor with Applescript
  • Index(es):
    • Date
    • Thread