Mojave に更新した後、以前使用していた automator サービスを使用できなくなりました。以下の警告が表示されます。
- セキュリティとプライバシーでは、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