1

我想将难看的文件名(作为我糟糕的编程的副产品)更改为“Booklet xxx.pdf kopie.pdf”到“xxx.pdf”。Automator 将其更改为>“xxx.pdf”(文件名前面有非常烦人的空格...

这是我能想到的……</p>

    tell application "Finder"
    set allFiles to selection
    search of (name of every item of allFiles) for "Booklet "
try
    if file exists then delete "Booklet " of name
end try
    search of (name of every item of allFiles) for ".pdf kopie"
try
    if file exists then delete ".pdf kopie" of name
end try
    end tell

非常感谢!

4

1 回答 1

2
于 2013-10-13T20:23:39.987 回答