MINGKYME 블로그

간단한 apple script

변수 선언

set num to 1
set str to "string"

set num to num + 1 # 2
display dialog "number is " & num

if 문

if true then
	display dialog "if"
end if

for 문

repeat 5 times
	display dialog "Hi"
end repeat

set charList to {"a", "b", "c"}
repeat with i from 1 to count of charList
	set char to item i of charList
	display dialog char
end repeat