Textdriven Posted May 13 Share Posted May 13 I know how to run an automation task to resize a window to the left 50% but how can i make sure it does it on the currently active app? Link to comment
Stephen_C Posted May 13 Share Posted May 13 Just thinking through this a little… What window might be on top other than the active app when you want to resize 50% to the left? (I'm sure there are many possibilities but I'm trying to work out the possibilities!) Stephen Link to comment
Textdriven Posted May 13 Author Share Posted May 13 Good question. Mac os Stickies app is all that is coming to mind. Link to comment
Textdriven Posted May 13 Author Share Posted May 13 I'm dumb. Sorry i just connect the hotkey to the automation and it works on the active window. Silly me. Stephen_C 1 Link to comment
Textdriven Posted May 15 Author Share Posted May 15 Actually for some reason this doesn't work for the Web Browser Arc. When i have "Little Arc window" as the currently active window my automation moves the main app window that is in the background and not the mini arc window that is in the foreground and selected. Any ideas when it doesn't choose the currently selected window? Link to comment
vitor Posted May 15 Share Posted May 15 That’s probably not a standard window, and the code specifically only works with those because otherwise it could try to move things that you don’t want. For example, Safari’s Status Bar is a window as far as the system is concerned, but you’d never want to move that. Yet it’s not a standard window, so easy to ignore. Arc makes several weird decisions. Its AppleScript support, for example, is incomplete and doesn't properly distinguish windows or index tabs. Link to comment
Textdriven Posted May 16 Author Share Posted May 16 (edited) Oddly it is now working. Perhaps i needed to reboot Arc 🤷♂️ Or maybe you updated the automation logic 🙇 In which case i'm very grateful. Edited May 16 by Textdriven Link to comment
Textdriven Posted May 16 Author Share Posted May 16 Actually it seems to just be a bit random. Sometimes it works perfectly other times it does it to the main window behind 🤷♂️ Link to comment
Textdriven Posted May 17 Author Share Posted May 17 Solved. It was the HazeOver app dimming the background and somehow messing things. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now