strange result say applescript

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

strange result say applescript

Post by jmburnod » Sat Apr 13, 2013 6:11 pm

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
https://alternatic.ch

Post Reply