04)ファイル保存choose file name

| コメント(0) | トラックバック(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--ファイルを閉じる

トラックバック(0)

トラックバックURL: http://www.adg7.com/mt/mt-tb.cgi/34

Comments are nofollow setting

コメントする

エントリー一覧

OpenID対応しています OpenIDについて
Powered by Movable Type 7.902.0
漢字イラストロジック-脳トレ京
FREE ONLINE SUDOKU