Now-Up-To-Date uses the default date of "Today" if it does not know what date to put the event on. I have tried coercing the variable "FMMileStoneStartDate", I have tried making it global. I have tried bringing everything into on large tell block.
What am I missing?
tell application "FileMaker Pro"
show window "Test Database"
go to layout "Test Database"
set FMMileStoneName to "Test Label"
set FMMileStoneDuration to 1
set FMMileStoneNote to "This is a note"
set FMMileStoneStartDate to get data of cell "EventDate" -- this variable checks out OK as the script runs... even in the second part below!
end tell
tell application "Now Up-To-Date"
activate
set FMEventID to make new event at category "personal" of document 0 with properties ¬
{eventtype:"Banner", name:FMMileStoneName, description:FMMileStoneNote, startdatetime:FMMileStoneStartDate} --this line doesn't work but the variable is correct at runtime
set FMEventID to make new event at category "personal" of document 0 with properties ¬
{eventtype:"Banner", name:FMMileStoneName, description:FMMileStoneNote, startdatetime:"8/2/05"} --this line woks fine
end tell
Warm regards,
Dan Hamilton
Paragon
Tamarac, FL 33319