这是一个测试文件test.applescript
:
display dialog "foo" buttons {"OK"} cancel button 1 default button 1
下午 4:05 我将其编译为test.app
:
osacompile -o test.app test.applescript
下午 4:07,我test.applescript
通过将 替换foo
为进行编辑bar
,然后再次编译它,覆盖现有test.app
文件。(它已成功覆盖。如果我运行它,对话框会显示“bar”,而不是“foo”。)
display dialog "bar" buttons {"OK"} cancel button 1 default button 1
osacompile -o test.app test.applescript
但尽管如此,date modified
的值test.app
仍然是下午 4:05。这是为什么?这怎么可能呢?
输出stat -x
:
File: "test.app"
Size: 96 FileType: Directory
Mode: (0755/drwxr-xr-x) Uid: ( 501/ john) Gid: ( 20/ staff)
Device: 1,17 Inode: 79429067 Links: 3
Access: Sun Mar 23 16:05:52 2025
Modify: Sun Mar 23 16:05:52 2025
Change: Sun Mar 23 17:20:48 2025
Birth: Sun Mar 23 16:05:52 2025