AppleScript“另存为”对话框?(AppleScript “Save As” dialog?)
具有自定义文件类型扩展名的“另存为”对话框的AppleScript代码是什么?
我知道Open对话框的代码:
set theFiles to (choose file of type {"set"} with prompt "Save As File" without multiple selections allowed) as stringWhat is the AppleScript code for a "Save As" dialog with a custom file type extension?
I know the code for Open dialog:
set theFiles to (choose file of type {"set"} with prompt "Save As File" without multiple selections allowed) as string最满意答案
保存命令可以在应用程序本身中找到,而不是在标准添加中。 如果您尝试建立传递给save命令的路径,可以使用以下内容:
set resultFile to (choose file name with prompt "Save As File" default name "My File" default location path to desktop) as text if resultFile does not end with ".txt" then set resultFile to resultFile & ".txt"Save commands are found in applications themselves, not within standard additions. If you are trying to establish a path to pass to a save command, you can use something like this:
set resultFile to (choose file name with prompt "Save As File" default name "My File" default location path to desktop) as text if resultFile does not end with ".txt" then set resultFile to resultFile & ".txt"更多推荐
发布评论