为了使其正常工作,您的前 Finder 窗口需要打开到您希望在其中创建新文件的 Google Drive 文件夹。
1. 打开 Automator.app 并创建一个新的“快速操作”文件

2. 将“运行 AppleScript”动作添加到您的工作流程中,并将以下 AppleScript 代码粘贴到您的新“运行 AppleScript”动作中。
property tempNameExtension : ".txt"
property finalNameExtension : ".gdoc"
property newFileName : missing value
tell application "Finder" to set finderWindowName to name of Finder window 1
activate
set newFileName to text returned of (display dialog ¬
"Please Choose A Name For Your New File" default answer ¬
"New_File_Name" buttons {"Cancel", "Create New File"} ¬
default button 2 cancel button 1 with title "Please Choose A Name For Your New File")
do shell script "echo ' ' > " & quoted form of finderWindowName & "/" & quoted form of newFileName & tempNameExtension
delay 15 -- Allows Time To Sync Temp File To Google Drive
do shell script "mv " & quoted form of finderWindowName & "/" & quoted form of newFileName & tempNameExtension & " " & quoted form of finderWindowName & "/" & quoted form of newFileName & finalNameExtension

3. 保存并命名您的新文件。我保存并命名了我的文件“Auto Google.workflow”
4. 打开系统偏好设置并导航到键盘/快捷方式/服务。向下滚动所有服务,直到找到您创建的新快速操作,然后为其分配新的键盘快捷键。

简而言之,此 Automator 快速操作将在您的 Google Drive 文件夹中创建一个扩展名为“gdoc”的新 Google 文档文件,该文件的名称是您在弹出的对话框中插入的名称。
这是我按下新创建的键盘快捷键后该过程的简短动画。
