カスタム ファイル タイプ拡張子を持つ [名前を付けて保存] ダイアログの AppleScript コードは何ですか?
Openダイアログのコードを知っています:
set theFiles to (choose file of type {"set"} with prompt "Save As File" without multiple selections allowed) as string
カスタム ファイル タイプ拡張子を持つ [名前を付けて保存] ダイアログの AppleScript コードは何ですか?
Openダイアログのコードを知っています:
set theFiles to (choose file of type {"set"} with prompt "Save As File" without multiple selections allowed) as string
保存コマンドは、標準の追加ではなく、アプリケーション自体にあります。保存コマンドに渡すパスを確立しようとしている場合は、次のようなものを使用できます。
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"