Textdriven Posted May 13, 2024 Posted May 13, 2024 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?
Stephen_C Posted May 13, 2024 Posted May 13, 2024 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
Textdriven Posted May 13, 2024 Author Posted May 13, 2024 Good question. Mac os Stickies app is all that is coming to mind.
Textdriven Posted May 13, 2024 Author Posted May 13, 2024 I'm dumb. Sorry i just connect the hotkey to the automation and it works on the active window. Silly me. Stephen_C 1
Textdriven Posted May 15, 2024 Author Posted May 15, 2024 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?
vitor Posted May 15, 2024 Posted May 15, 2024 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.
Textdriven Posted May 16, 2024 Author Posted May 16, 2024 (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, 2024 by Textdriven
Textdriven Posted May 16, 2024 Author Posted May 16, 2024 Actually it seems to just be a bit random. Sometimes it works perfectly other times it does it to the main window behind 🤷♂️
Textdriven Posted May 17, 2024 Author Posted May 17, 2024 Solved. It was the HazeOver app dimming the background and somehow messing things.
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