Page 1 of 1

strange result say applescript

Posted: Sat Apr 13, 2013 6:11 pm
by jmburnod
Hi All,

I get mistake with an applescript

Code: Select all

--- btn say
on mouseUp
      put "say " & quote & "hallo world hallo world hallo world hallo world hallo world hallo world" & quote & "without waiting until completion" into tSay
      do tSay as applescript
      if the result is not "" then answer the result
end mouseUp	

-- btn stop say
on mouseUp
   put "say " & quote & "" & quote & " with stopping current speech" into tSay -- just empty
   do tSay as applescript
   if the result is not "" then answer the result
end mouseUp
works fine in one stack but not in an other.
Same script, same Mac.

If i set the lockmessages to true it works for say but not for stop of course.
If not nothing happen and the result is empty

Ideas are welcome
Best regards
Jean-Marc