更新到 Mojave 后,我无法再使用之前使用的自动机服务,并出现以下警报。
- 在安全和隐私中,我已经检查了 AppleScript Editor。
您是否发现我的代码有任何问题,或者这是最新 macOS 的问题?
脚本
on run {input, parameters}
set pathList to {}
repeat with itemNum from 1 to count of input
tell application "System Events"
copy POSIX path of (container of (item itemNum of input)) to end of pathList
end tell
end repeat
return pathList
end run