Re: more info for person in Now Up-to-Date event
Re: more info for person in Now Up-to-Date event
- Subject: Re: more info for person in Now Up-to-Date event
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 18 Apr 2001 15:40:59 -0400
on 4/18/01 5:07 AM, Daniel Komrska jr. at email@hidden wrote:
>
I need more information for person attached in some Now Up-to-Date event.
>
>
How can I find attached person in "mother" Now Contact file?
>
>
I know, that I can get from Now Up-to-Date "ContactLink" for this
>
person, but what shut I do with (for example) <data LNK-00002723>?
Earlier today I said you can't use the ContactLink field "to go in the
opposite direction, finding a Now Contact person who is already linked to a
known Now Up-to-Date person, because you can't extract the Now Contact
unique id from the Now Up-to-Date ContactLink (unless perhaps you use Ed
Lai's Programmers Tool osax, which I haven't tried)."
I have now tried the Programmer's Tool osax, and it works. The latest
version at this writing is 1.0a10. It may be downloaded from the osax folder
of Ed Lai's iDisk if you go to Apple's iTools web site at
itools.mac.com/WebObjects/Tools.woa, click on "iDisk", type "lai" into the
"Open Public Folder" field and click the "Open Public Folder" button. Ed
Lai's Public Folder will be mounted on your desktop, and you can drag the
Programmer's Tool scripting addition from there onto your desktop.
Use its 'cast' command to convert the contactlink field to an integer, then
use that integer as the unique id of the linked person in Now Contact.
tell application "Now Up-to-Date"
tell event 1 of calendar 1 of document 1
get contactlink of person 1
cast result to integer -- requires Ed Lai's Programmer's Tool
end tell
set NCpersonID to result
end tell
tell application "Now Contact"
set NCpersonRef to person id NCpersonID
end tell
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes