I want to do something like:
on input(theString)
set thisList to {“this text”, “that text”, “the other text”}
tell application “Ircle” to set x to match theString with thisList
– the above part works. “match is in Ircle’s applescript dictionary” below is where I have problems
set theFunctions to {thisFunction(),thatFunction(),theOtherFunction()}
set doFunction to item x of theFunctions
doFunction
end input
on thisFunction()
–do some stuff
end thisFunction
on thatFunction()
–do some stuff
end thatFunction
on theOtherFunction()
–do some stuff
end theOtherFunction
is this even possible? If so how does the correct way to do it differ from what I have above?
What I have above produces and error “<> doesn’t understand the thisFunction message.”