
正文
AppleScript脚本学习记录《一》
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
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
--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





