你好,我試圖讓這個代碼工作,但Blurb執行後它說它不知道Blob。所以我認爲我只需要把Blob放在開頭,但Blob不知道Blurb等等。 如果所有答案都正確,則命令爲Blob,Blurb,Blirb,Blorb,Blarb並完成。我該如何做這項工作? (applescript)
script finish
set dialogResult to display dialog ¬
"Can you escape?" buttons "Cool!"
end script
script Blarb
set dialogResult to display dialog ¬
"Can you escape?" buttons {"No", "Yes"}
if button returned of dialogResult = "Yes" then
run script Blob
end if
end script
script Blorb
set dialogResult to display dialog ¬
"Can you escape?" buttons {"No", "Yes"}
if button returned of dialogResult = "No" then
run script Blob
else if button returned of dialogResult = "Yes" then
run script Blarb
end if
end script
script Blirb
set dialogResult to display dialog ¬
"Can you escape?" buttons {"No", "Yes"}
if button returned of dialogResult = "No" then
run script Blob
else if button returned of dialogResult = "Yes" then
run script Blorb
end if
end script
script Blurb
set dialogResult to display dialog ¬
"Can you escape?" buttons {"No", "Yes"}
if button returned of dialogResult = "Yes" then
run script Blob
else if button returned of dialogResult = "No" then
run script Blirb
end if
end script
script Blob
set Variable to "No"
repeat while Variable = "No"
set dialogResult to display dialog ¬
"Can you escape" buttons {"No", "Yes"}
set Variable to button returned of dialogResult
if button returned of dialogResult = "Yes" then
run script Blurb
end if
end repeat
end script
run script Blob --Order if all answers are correct is Blob, Blurb, Blirb, Blorb, Blarb, and finish.
好吧,對不起,我是applescript的noob,所以我會搜索如何使用「我的」關鍵字。 – JulesTheGodOfMC
將所有'運行腳本Blob'命令更改爲'運行我的Blob','運行腳本Blirb'以'運行我的Blirb'等 – foo
哦,並學會使用AppleScript for Good,而不是Evil。老實說,這已經足夠邪惡了。 – foo