04)ファイル保存choose file name

| コメント(0)
ファイル保存ダイアログを出します。alias型の値で返ってきます。このダイアログを使うのはテキスト整形したものを保存する時です。
set newFile to choose file name
display dialog newFile as string
作成したファイルに書き込むには下記を使います。
set newFile to choose file name

set file_h to open for access newFile with write permission
set eof file_h to 0
write "こんにちは" to file_h--書き込む
close access file_h--ファイルを閉じる
Comments are nofollow setting

コメントする