I upgraded to Snow Leopard over the weekend and, for the most part, everything went smoothly. However, an AppleScript that ran perfectly fine the day before no longer works. Here are the particulars:
OS 10.6.2 FMPA 8.5v2 Dialectic 1.5
This script is triggered by an incoming phone call through Dialectic which finds the callers records in a FMP db.
on handle_incoming_call_action(contact_name, contact_number, phone_or_modem_name)
tell application "FileMaker Pro Advanced" activate try
go to database "Call Log" go to layout "Data Entry" go to current record -- (this forces FMP into Browse mode)
set cell "g_Dialectic_Number" of current record to contact_number set cell "g_Dialectic_Name" of current record to contact_name
go to database "Invoices" do script "Dialectic Caller ID Lookup" -- this script finds the caller's record(s), if they exist. -- It also creates a new entry in the Call Log db.
end try end tell
end handle_incoming_call_action
Here are the problems I'm experiencing:
• go to current record -- This used to force FMP into Browse mode but no longer works in 10.6. It now opens my 'Prefs' db. • set cell -- Does not produce any errors in AppleScript Editor, but it doesn't do anything in FMP anymore • do script "Dialectic Caller ID Lookup" --> error "Object not found." number -1728
No matter which of my scripts I try to run in the 'do script' step, I get the same error message, so it's not that the script is incorrectly named or that it's not there.
Any help would be greatly appreciated.
Thanks, Marc |