我正在尝试编写一个将在App中重命名文件的脚本。这样,如果更新发生,它将纠正问题。我有以下内容,但我不确定它是多么正确:
on idle
tell application "Finder"
set msgbox to "/Applications/VideoHost.app/Contents/Resources/MsgBox.nib" exists
end tell
if msgbox = true then
tell application "Finder"
set the name of file "/Applications/VideoHost.app/Contents/Resources/MsgBox.nib" to
"/Applications/VideoHost.app/Contents/Resources/No_MsgBox.nib"
end tell
end if
return 60
end idle
我会将此添加到我的启动项目中,然后选择“运行后保持打开状态”选项
答案 0 :(得分:0)
试试这个..
{{1}}