방금 전에 AppleScript를 사용하기 시작했으며 10 분 전에 이상한 구문 오류가 발생했습니다. 나는 그냥 바보짓을하고 다음을 생각해 냈다 :AppleScript - 구문 오류
display dialog "Press a button!" buttons{"1","2","3"}
if the button_pressed is "1" then
display dialog "You pressed the first button!"
else if the button_pressed is "2" then
display dialog "You pressed the second button!"
else
display dialog "You pressed the last button!"
end if
심지어 실행되지 않는다. 변수가 내 프로그램에 명확하게 나타나면 그냥 button_pressed is not defined
오류가 발생합니다!
AppleScript로 10 분을 소비하고 간단한 오류가 하나 생겨 여기에 게시됩니까? 어서. 최소한 당신이하고있는 일에 약간의 노력을 기울이십시오. -1 –