在 Finder [MacBook Pro M2] 中创建文件

问题描述 投票:0回答:1

有没有办法在应用程序之外,但在取景器中创建文件?最好使用上下文菜单。

我发现的都是关于 AppleScript 的提及,但它隐藏在付费墙后面......

macos applescript contextmenu finder
1个回答
0
投票

这里有人给了你-1,因为你的问题不准确。我假设您想使用 Finder创建一个新的空文件以进一步用一些内容填充它。这是它的完成方式。

tell application "Finder"
    make new file at desktop with properties {name:"emptyFile.html"}
end tell

注意:您可以改为指定任何其他扩展名(如“.txt”)。

© www.soinside.com 2019 - 2024. All rights reserved.