Re: Address Book: Reference frontmost/current person
Re: Address Book: Reference frontmost/current person
- Subject: Re: Address Book: Reference frontmost/current person
- From: Simon Forster <email@hidden>
- Date: Tue, 25 Oct 2005 16:48:19 +0100
A very simple question which is stumping me at the moment - how
does once reference the current person (or record) in Address Book
On 25 Oct 2005, at 13:30, has wrote:
Address Book 3.1.2+ has a 'selection' property on its application
object. That what you're after?
On 25 Oct 2005, at 15:12, Michelle Steiner wrote:
As has suggested, "selection" should do it. Keep in mind that it
returns a list (well, actually it's a property that looks like a
list; you have to use "get the selection" to get a list) because
there can be more than one person selected. If more than one
person is selected, the first one is the one displayed in the
address book. Fortunately, this is also the one that is returned
by "item 1".
Thanks to both of you. Actually, I had discovered this and posted to
the list...
...ah. No. I had replied to myself. Curses to how this list server is
set up.
Anyway, I have subsequently found that Address Book 4.0.2 on Mac OS X
seems to have a bug whereby a recently added address is not available
until you have clicked out of edit mode. A bug because under 3.1.2,
this works as one would expect - all be it with a "save addressbook"
step.
As something of an aside, am I the only one that is finding
AppleScript on 10.4.x to be buggy as hell? One project had to have
its entire focus changed due to System Events constantly crashing
when using folder actions and now I've got to a stage where I assume
the OS is at fault, not me (a naive position to take which I
discarded after about 3 to 6 months of scripting. BTW, I've only
changed to this approach when using AppleScript on 10.4.x, everything
else, it's still me that's wrong until categorically proven otherwise).
I do hope that 10.4.3 fixes some of these issues.
Simon Forster
_____________________________________________________
LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
Tel: +44 (0)70 9230 5244 Fax: +44 (0)70 9230 5247
_____________________________________________________
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden