■
テキストファイルを選択して開く、テキストファイルを名前を付けて作成する場合。
open panelやsave panelを使う事も可能だが、ファイルの書式がPOSIXとMACで違うらしく、対処がけっこう面倒。下記が楽。
ダイヤログでファイルを開く
choose file "open file ..." set theOpenFile to result open for access theOpenFile .... close access theOpenFile
ダイアログでファイルを作成
choose file name "save file as..." set theSaveFile to result open for access theSaveFile .... close access theSaveFile
- http://www.oomori.com/applescript/00000121/00004495.html
- http://developer.apple.com/documentation/AppleScript/Reference/StudioReference/sr10_panel_suite/chapter_10_section_8.html
new file with promptは何故か使えない。