アプリケーションを指定してファイルを開く


open file ≪ファイル名≫ using application file ≪アプリケーション名≫

例:
tell application "Finder"
open file "gonta_030602.rtf" of desktop ¬
using application file "TextEdit.app" of folder "Applications" of startup disk
end tell

これでデスクトップにあるgonta_030602.rtfと言うファイルが
テキストエディットで開く。

Posted: 土 - 12月 20, 2003 at 12:35 PM        


©