• 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: Trouble Getting Into AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble Getting Into AppleScript


  • Subject: Re: Trouble Getting Into AppleScript
  • From: Daniel Todd Currie <email@hidden>
  • Date: Wed, 3 Nov 2004 17:26:23 -0800

Maybe I'm doing something terribly wrong, but I've pasted this code into Script Editor, and none of the examples you offer actually work. I did change the IDs and names to my own address book record, so there's no reason that they shouldn't work.

-- DTC


On 2004 Nov 02, at 13:02, Christopher Nebel wrote:

No, this just looks like a bug in Address Book. Perversely, it has no problem setting the selection to a single person, or even some sort of range expression, but it chokes on an actual list. For example:

tell application "Address Book"
set selection to person "Chris Nebel" --> selects me.
set selection to person id "4A4726F1-A591-11D6-B9F7-0003937618D8:ABPerson" --> selects me.
set selection to every person whose last name is "Nebel" --> selects me and a bunch of my relatives.
set selection to {person "Chris Nebel"} --> Address Book got an error: NSUnknownKeyScriptError
end



--Chris Nebel AppleScript Engineering

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Tiger
  • Next by Date: [Moderator] Re: Tiger
  • Previous by thread: [Moderator] Re: Tiger
  • Next by thread: using JBuilder to code Cocoa-Java. It is possible ?
  • Index(es):
    • Date
    • Thread