Applescript Filemaker 10间歇性客户端错误-1728
全部, 在我们的一个Filemaker Server 10数据库应用程序上,客户端用户在运行附加到按钮的脚本时遇到间歇性错误-1728: 未知错误:-1728 根据我从用户那里了解到的情况,-1728错误发生在“show layout”命令之前。(见下文)。我怀疑在错误发生之前执行的“set theInventoryID”命令:Applescript Filemaker 10间歇性客户端错误-1728,applescript,filemaker,Applescript,Filemaker,全部, 在我们的一个Filemaker Server 10数据库应用程序上,客户端用户在运行附加到按钮的脚本时遇到间歇性错误-1728: 未知错误:-1728 根据我从用户那里了解到的情况,-1728错误发生在“show layout”命令之前。(见下文)。我怀疑在错误发生之前执行的“set theInventoryID”命令: set theDatabaseName to "F&B POs" set theCellName to "Product ID" tell applicati
set theDatabaseName to "F&B POs"
set theCellName to "Product ID"
tell application "FileMaker Pro"
set theInventoryID to contents of cell "ID" of current record
tell database theDatabaseName
-- -1728 error happens here!!
show layout "Inventory - All Quantities"
show every record
...
在FM中,防弹的最佳实践是什么
什么样的
tell application "FileMaker Pro"
try
set theInventoryID to contents of cell "ID" of current record
on error
display dialog ("Make sure all inventory ids are valid")
end try
tell database theDatabaseName
-- -1728 error happens here
show layout "Inventory - All Quantities"
show every record
...
谢谢 这是一个AppleScript错误“无法获取(某些内容)”。确保所有布局和字段都存在。此外,如果AppleScript是从FileMaker中运行的,则它不需要告诉应用程序“FileMaker Pro”/end tell
块,因为它已经告诉了应用程序