Conditional statements in Applescript?
I am a complete neophyte with Applescript. I am using Midipipe, and trying to set up some conditionals to alter Midi note numbers开发者_StackOverflow社区.
I have two Midi inputs and basically I just need a series of:
If (input one == (a program change variable)){ input two + 1} else blah blah blah...
I need to know how to format it and compile it to run in Midipipe so that it outputs the condition. Thanks so much!
The basic statements for conditionals in AppleScript are:
if variable = value then
-- do something
else if variable = othervalue then
-- do something
else
-- do something
end if
obs: "--" are comments lines
精彩评论