這個腳本工作正常,直到按鈕的命令,有人可以告訴我爲什麼我didesent工作?applescript圖標問題(button_pressed是不定義)
它說: 「button_pressed不definded」
display dialog "bla" with icon alias ((path to me) & "Contents:Resources:my.icns" as string) buttons {"blu", "bli", "blaa"} default button 3
if the button_pressed is "blu" then
-- action for 1st button goes here
say "blu"
else if the button_pressed is "bli" then
-- action for 2nd button goes here
say "bli"
else
-- action for 3rd button goes here
say "bla"
end if