tell命令块
tell application "Finder" display dialog "Hello World" end tell
声明变量
set theString to "Hello World" tell application "Finder" display dialog theString end tell
使用变量
--Integer Variables
set theFirstNumber to
set the theSecondNumber to --Variable Operations
set theAnswer to (theFirstNumber + theSecondNumber)
set theAnswer to (theAnswer + ) --String Variables
set theString to "3+2+1=" --Display Dialog
tell application "Finder" display dialog theString & theAnswer end tell