在Mojave Filemaker中,通过applescript进行访问将引发特权错误

问题描述 投票:0回答:1

我有一个applescript,它从filemaker读取一个单元格。自Mojave(OS 10.14)起,它失败并显示

错误“ FileMaker Pro 18 Advanced出现错误:发生权限冲突。”号-10004

我认为这与Mojave的安全功能有关。我该如何解决?

tell application "FileMaker Pro 18 Advanced"
    tell document "test.fmp12"
        tell table "customerTable"

            set customerName to data of cell "nameOfCustomer"

        end tell
    end tell
end tell

set命令引发错误。在系统偏好设置/安全性和隐私/隐私中我授予了对Script Editor和Filemaker Pro Advanced的完整光盘访问权限

applescript privileges filemaker
1个回答
0
投票

您是否转到文件菜单/管理/安全性并编辑权限集以允许FMP文件使用Apple事件?

© www.soinside.com 2019 - 2024. All rights reserved.