AppleScript call function in IF statement
Your If statement isn't checking out.
Change &quot;is equal to&quot; to &quot;contains&quot;, it should catch it.
if selectedoption contains &quot;demo one&quot; then
    notification()
end if