Здравствуйте, я пытаюсь заставить этот код работать, но после того, как 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, поэтому я буду искать, как использовать «мое» ключевое слово. – JulesTheGodOfMC
Измените все команды 'запускать скрипт Blob', чтобы« запустить мой Blob »,« запустить скрипт Blirb' для запуска моего Blirb »и т. Д. – foo
Оу, и научитесь использовать AppleScript для хорошего, а не зла. Честно говоря, это достаточно злобно, как есть. – foo