FileMaker to Now Up-to-Date
FileMaker to Now Up-to-Date
- Subject: FileMaker to Now Up-to-Date
- From: Dave Nicely <email@hidden>
- Date: Mon, 19 May 2003 12:48:17 -0700
Just wonder if anyone might be able to help with the syntax of updating
events via NUTD uniqueID? I have my script creating events from within
FileMaker and I can update an event when referenced by name. What I want to
be able to do is update via a uniqueID that assigned in FileMaker. If I can
do this then I don't have to block the user from renaming the event in
FileMaker and breaking my link to NUTD. My script so far:
tell application "Finder"
set apps_List to the name of every process
if apps_List contains "Now Up-to-Date" then
tell application "FileMaker Pro"
activate
set event_name to cell "et_event_name" of current record
set event_desc to cell "et_event_description" of current record
set event_type to cell "et_event_type" of current record
set event_id to cell "et_event_id" of current record
set event_date to cell "ct_event_date" of current record
set event_start to cell "cm_start_time" of current record
set event_end to cell "cm_end_time" of current record
tell application "Now Up-to-Date"
if exists event event_name of category 1 of document 1 then
display dialog "update event now"
else
tell category 1 of document 1
set eventSpec to make event at end with properties ,
{name:event_name} & ,
{description:event_desc} & ,
{eventtype:event_type} & ,
{uniqueid:event_id} & ,
{startdate:event_date} & ,
{starttime:event_start} & ,
{endtime:event_end}
end tell
end if
end tell
end tell
else
display dialog "Now Up-to-Date is not open and is required to
complete this action"
end if
end tell
--Dave Nicely--
Nicely Done Solutions, Inc.
http://www.nicelydone.com
mailto:email@hidden
(510) 526-3744
(510) 525-5513 Fax
_______________________________________________
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.