MTASCでシンタックスチェック
MTASC
http://www.mtasc.org/#download
インストール
$ unzip ~/download/mtasc-1.12-osx.zip $ sudo mv ~/download/mtasc-1.12-osx /usr/local/. $ sudo ln -s /usr/local/mtasc-1.12-osx /usr/local/mtasc $ vi ~/.bashrc $ source ~/.bashrc $ mtasc -h
mi用のシンタックスチェックスクリプト
property MTASC : "/usr/local/mtasc/mtasc" on run main() end run on main() tell application "mi" set theFile to (file of document 1) as string set theFullPath to (POSIX path of theFile) end tell set theSyntaxOk to true try set theCmd to MTASC & " -swf /tmp/check.swf -header 200:200:24 -main " set theRes to do shell script (theCmd & space & theFullPath) on error theCaption dispMes(theCaption) set theSyntaxOk to false end try if (theSyntaxOk) then dispMes("syntax ok!") end if end main on dispMes(theMessage) display dialog (theMessage) buttons {"OK"} default button "OK" giving up after 20 end dispMes