Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Improve response of some AppleScripts called by Butler Apps
I have stay open AppleScript application with a number of handlers that control my Mac mini-based home theater setup. These turn on or off different components, etc. I use keyboard shortcuts through Butler (among other methods) to call these handlers with scripts like:
tell application "HTPC" to power_tv()
However, some of these routines were running slowly when called via Butler, but not when the same trigger script was run in Script Editor. I'm not sure of the details, but it has something to do with Butler's AppleScript runtime assumptions and how it waits for responses. The fix was to tell Butler not to wait for any script response:
ignoring application responses
  tell application "HTPC" to power_tv()
end ignoring
I don't think this will improve all scripts run from Butler, only those that invoke some additional AppleScript calls outside of Butler. They particularly affected scripts with exists process statements, and other System Events calls.
    •    
  • Currently 2.75 / 5
  You rated: 2 / 5 (4 votes cast)
 
[6,540 views]  

Improve response of some AppleScripts called by Butler | 0 comments | Create New Account
Click here to return to the 'Improve response of some AppleScripts called by Butler' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.