Haiku HaikuHelper and OmniPro II Announcements

This seem to be similar to the issue with iTunes talked about in the thread titled "Applescript issues".  How was that resolved?
 
There is no need to use AppleScript to do speech, HaikuHelper has it built in. You can do:
Code:
helper.speak(controller, "Hello");
There are also some options for speech speed as well as speech recognition.
You could use line-out (with line-in for example) or as evanlifetv suggested, Airfoil to stream it.

PS. for easier string formatting you can use:
Code:
helper.speak(controller, "Hello {0}, {1}!".format('Sir', 'nice to meet you'));
 
I was not using it to speak.  That script was to control speakers(Airport Extreme) in Airfoil. Execution of any Applescript form HH results in the error "Application isn't running".  Any help would be greatly appreciated.
 
Thanks
 
Ah, yes, that may fail because Apple's sandboxing does not allow control of all applications. Right now just iTunes is whitelisted (along with whatever Apple whitelists). We can add Airfoil to the whitelist though.
 
jrob said:
Thanks for your response.  Is there any way to work around this?
So small confession, I actually didn't check to make sure mine were still working, I assumed they were.. I have changed the way I use airfoil, and don't actually use any of the scripts which were called during button pushes... However all of my iTunes scripts do still work. Thats probably the tweak/fix that I helped Lupinglade discover a year or so back.
 
With all that being said, I don't script near as much as I used to, and I actually travel a lot more, so I don't keep up with it so I'll just ask the questions to someone who lives in the code world. 
 
 
lupinglade said:
Ah, yes, that may fail because Apple's sandboxing does not allow control of all applications. Right now just iTunes is whitelisted (along with whatever Apple whitelists). We can add Airfoil to the whitelist though.
 So, Lupinglade, could this be solved by adding "Finder" to the entitlements, even if it was with a  temporary exception so that "users could write their own applescripts, launched from a specific directory" ???  We could then at least do something like this: 

tell application "Finder" to activate (open application file "evening_update.app")

If that wouldn't work, could you pre add some application names that would be allowed that we could use? 
 
What are our options?
 
I don't think that would work. We will add Airfoil though in the next update. Apple right now doesn't seem very welcoming to the idea of an application that can generically script control any app. Would be nice if they would just add a user confirmation for this instead...
 
Back
Top