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

Run scripts in Script Editor when it's not the frontmost app Apps
I was testing a script for resizing windows, and was thinking that I would like to test it for something other than Script Editor. So I brought another app with more windows to the foreground, and Command-clicked on Script Editor's Run button, which I left visible in the background. (I use Command-drag on inactive windows all the time). The script ran with the other app as frontmost.

Apple talks about Command-dragging inactive windows, but doesn't mention more uses of the Command key as trigger for interacting with inactive windows. I was able to select text and click buttons in several apps without leaving frontmost app (although it is inconsistent -- e.g. I could sort messages in Mail, but not click them). I'm sure there are hints about it here, I thought that this use might help AppleScript developers.

[robg adds: We've discussed background actions in a few prior hints, but I couldn't find any mention of clicking buttons in background windows.]
    •    
  • Currently 1.83 / 5
  You rated: 2 / 5 (6 votes cast)
 
[8,759 views]  

Run scripts in Script Editor when it's not the frontmost app | 0 comments | Create New Account
Click here to return to the 'Run scripts in Script Editor when it's not the frontmost app' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.