我让这个脚本在 Finder 中作为应用程序工作,但我想在存档完成时收到警报。知道我该怎么做吗?
tell application "Finder"
set theItems to selection
repeat with _a from 1 to (count of theItems)
set theItem to (item _a of theItems) as alias
set itemPath to quoted form of POSIX path of theItem
set fileName to name of theItem
set theFolder to POSIX path of (container of theItem as alias)
set zipFile to quoted form of (theFolder & fileName & ".tgz")
do shell script "tar czvf " & zipFile & " " & itemPath
end repeat
结束告诉
非常感谢埃里克