1

カスタム ファイル タイプ拡張子を持つ [名前を付けて保存] ダイアログの AppleScript コードは何ですか?

Openダイアログのコードを知っています:

set theFiles to (choose file of type {"set"} with prompt "Save As File" without multiple selections allowed) as string
4

1 に答える 1

4

保存コマンドは、標準の追加ではなく、アプリケーション自体にあります。保存コマンドに渡すパスを確立しようとしている場合は、次のようなものを使用できます。

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"
于 2013-07-08T17:30:54.893 に答える