Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
仅当文件不存在时,如何进行一些条件操作?
我发现要求检查“如果文件存在”而不是“如果文件不存在”。
也许在预安装检查中使用苹果脚本?
在此先感谢您的帮助
这是一个例子......
set someFile to (path to desktop as text) & "sample.txt" tell application "Finder" if not (exists file someFile) then -- do something here end if end tell