有时我会使用PdaNet来使用我的iPhone进行连锁。 OSX的桌面客户端不像Windows的桌面客户端那么丰富。其中一个主要区别是OSX不允许在插入后立即自动连接到iPhone。
您是否知道使用Applescript单击菜单栏上的PdaNet图标,然后选择并单击其上的“连接”选项?
以下是'PdaNetMac'应用程序的菜单栏图标:
我查看了以下问题,但我是一名Apple新手,不知道如何在菜单栏上搜索PdaNet的图标:
我已确认已启用“为辅助设备启用访问权限”。
根据上面的第二个问题,我目前正在尝试这样做:
ignoring application responses
tell application "System Events" to tell process "PdaNet"
click menu bar item 1 of menu bar 2
end tell
end ignoring
do shell script "killall System\\ Events"
delay 0.1
tell application "System Events" to tell process "PdaNet"
tell menu bar item 1 of menu bar 2
click menu item "Connect" of menu 1
end tell
end tell
有趣的是,当我将PdaNet
更改为Flux
时,上述脚本对我很有用。
谢谢!