Re: Very basic question about Address Book app
Re: Very basic question about Address Book app
- Subject: Re: Very basic question about Address Book app
- From: David Durkee <email@hidden>
- Date: Thu, 31 Jul 2003 10:45:20 -0500
Richard,
You should probably specify which version of Address Book you are using
since the user interface has changed. The Jaguar version doesn't seem
to have any provision for displaying a person's card in a separate
window. The listing for the Open event is pretty much identical in
every application dictionary, and despite it's generic wording it is
usually only used for opening files. Since Address Book only operates
on only one file which it opens automatically, it probably doesn't even
support the open event to that extent.
Given the one-window nature of the program, I looked for a reveal or
select event, but didn't find either.
The best I can think of is something like this:
tell application "Address Book"
set aperson to person "David Durkee"
display dialog (name of aperson) & return & (value of email 1 of
aperson) & return & (value of phone 1 of aperson)
end tell
With more work, you could get it to display all of the data in the
card, although you may hit a length limit on what display dialog will
handle.
If you're using X 10.1.x, however, the answer might be entirely
different.
David
On Thursday, July 31, 2003, at 03:27 AM, Richard Rvnnbdck wrote:
Basically, want I would like to do is to open up (in a window) any
given
record (person) in the Address book. However, I don't understand what
the
syntax should be like. When I try, something like:
tell application "Address Book"
open person 1
end tell
It doesn't work, which I Expect, since the dictionary tells me that:
open: Open an object. (from Standard Suite)
open [list of alias] -- list of objects
But how do I do it? I think I have tried everything by now (except of
course, the right thing <g>)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
--
David Durkee
email@hidden
<
http://ddurkee.homeip.net/>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.