0
我试图让我的Applescript代码具有管理员权限。然而,我发现谷歌搜索的唯一解决方案是:Applescript管理员权限但不*运行shell脚本
do shell script "command" user name "me" password "mypassword" with administrator privileges
我没有运行shell命令..我使用纯粹的AppleScript。我正在做的代码是:
on run {input, parameters} -- copy
repeat with aFile in input
tell application "Finder"
if name extension of aFile is "component" then
copy aFile to "/Library/Audio/Plug-ins/Components"
else if name extension of aFile is "vst" then
copy aFile to "/Library/Audio/Plug-ins/VST"
end if
end tell
end repeat
end run
有没有办法在使用纯Applescript时获得管理员权限?