我遇到AppleScript和System Events的问题.
我在"系统偏好设置"的"通用访问"偏好设置面板中选中了"为辅助设备启用访问权限".
当我尝试:
arch -i386 osascript -e'告诉应用程序"系统事件"以获取每个进程的每个窗口的位置'
我有这个错误:
系统事件出错:禁用辅助设备访问.(-25211)
你有什么主意吗 ?
非常感谢
我想列出终端中打开的窗口,以获得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文档,则返回第一个打开的文档).
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)
)