天兒真好
這可能不是最快的方法 - 但我看到你還在等待答案 - 所以這裏的東西讓你開始。在查找器中選擇所有的MOV文件並在腳本編輯器中運行。
set theTemplate to "Macintosh HD:Users:[user name]:[folder:location]:TEMPLATE.THM"
tell application "Finder"
set theFiles to selection
repeat with thisFile in theFiles
set thisName to name of thisFile
set theFolder to container of thisFile
set newFile to duplicate theTemplate to theFolder
set text item delimiters of AppleScript to "."
set thisName to text item 1 of thisName
set text item delimiters of AppleScript to ""
set newName to (thisName & ".THM")
set name of newFile to newName
end repeat
end tell
去的模板路徑的最簡單的方法是在Finder中選擇它並運行此:
tell application "Finder"
set theFile to selection as string
end tell
這將使路徑在結果窗口 - 只是將其複製到上面腳本的第一行。
希望幫助
米