我升级到了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