小编Tok*_*tok的帖子

AppleScript - 系统事件错误:禁用辅助设备访问

我遇到AppleScript和System Events的问题.

我在"系统偏好设置"的"通用访问"偏好设置面板中选中了"为辅助设备启用访问权限".

当我尝试:

arch -i386 osascript -e'告诉应用程序"系统事件"以获取每个进程的每个窗口的位置'

我有这个错误:

系统事件出错:禁用辅助设备访问.(-25211)

你有什么主意吗 ?

非常感谢

macos applescript

8
推荐指数
2
解决办法
2万
查看次数

Mac - 列出终端中打开的窗口

我想列出终端中打开的窗口,以获得xwininfo -root -treeX11的x,y,宽度和高度.

我试过了:

osacript -e tell application "Microsoft Word" to get the bounds of the front window
Run Code Online (Sandbox Code Playgroud)

但它并不适用于所有应用程序而您无法指定子项(如果您有两个Word文档,则返回第一个打开的文档).

macos applescript osascript

3
推荐指数
1
解决办法
5645
查看次数

Paypal API GetVerifiedStatus返回不允许用户执行此操作

HY,

我想使用PayPal API的GetVerifiedStatus.

所以我创建了我的应用程序,并且我有一个应用程序ID.

在沙盒中,一切正常,服务返回我的客户的状态.

但是当我打一个电话时我有这个错误:

"不允许用户执行此操作"

你有解决方案吗?

谢谢!

要求:

Array
(
    [emailAddress] => myCustomer@email.com
    [matchCriteria] => NONE
)
Run Code Online (Sandbox Code Playgroud)

回应:

stdClass Object
(
    [responseEnvelope] => stdClass Object
        (
            [timestamp] => 2013-10-29T06:47:26.456-07:00
            [ack] => Failure
            [correlationId] => 21820ac9a046c
            [build] => 7784095
        )

    [error] => Array
        (
            [0] => stdClass Object
                (
                    [errorId] => 550001
                    [domain] => PLATFORM
                    [subdomain] => Application
                    [severity] => Error
                    [category] => Application
                    [message] => User is not allowed to perform this action
                )

        )
Run Code Online (Sandbox Code Playgroud)

)

(Paypal …

paypal paypal-adaptive-payments

0
推荐指数
1
解决办法
1089
查看次数