• 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
Now Contact 4.5 question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Now Contact 4.5 question


  • Subject: Now Contact 4.5 question
  • From: Christian Boyce <email@hidden>
  • Date: Fri, 15 Oct 2004 09:59:58 -0700

Given a list view showing more than one contact, with one of those contacts selected, how do I refer to the selected contact? I want to be able to run a script that operates on the selected contact. So far, I can only operate on a contact that is opened in detail view (or on every contact in a table).

If I have a detail view window open then this works:

tell application "Now Contact"
	set thecurrentid to current id of document 1
	set x to first name of person id thecurrentid
	set y to last name of person id thecurrentid
end tell

but if I don't have a detail window open, I get an error, which is expected and documented. The question is, if I have a contact selected in the list view, is there a way to get the id of that contact? What I'm doing now is looking for the error, and if I get it I put up a dialog box saying "open one contact's detail view" but this is not satisfactory.

--

cb

_______________________________________________
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


  • Prev by Date: Re: How to find network computers
  • Next by Date: Re: How to find network computers
  • Previous by thread: Re: How to find network computers
  • Next by thread: Enhanced Find in Smile...
  • Index(es):
    • Date
    • Thread