要使用Automator复制修改日期到文件创建日期,可以按照以下步骤操作:
现在,您可以在Finder中选择一个或多个文件,然后右键单击并选择“服务”菜单中的“复制修改日期到文件创建日期”选项。所选文件的修改日期将被复制到相应的文件创建日期。
这是一个使用AppleScript代码的自定义Automator操作的示例:
on run {input, parameters}
repeat with thisFile in input
tell application "Finder"
set modificationDate to modification date of thisFile
set creationDate to creation date of thisFile
set creationDate to modificationDate as string
set creation date of thisFile to creationDate
end tell
end repeat
return input
end run
要创建此操作,请按照以下步骤操作:
现在,您可以双击应用程序图标,然后选择一个或多个文件。所选文件的修改日期将被复制到相应的文件创建日期。