Guys a bit of information here please. I'm posting this to see if a macro I need is actually possible. No ideas as to hop to design it but want to see if it is feasible first
I posted the following to the Goodtask developer on his forum:
I 'live' with Goodtask permanently open on the left hand side of my screen. Usually it's open with the side panel open showing the lists on the left hand of the task list I'm working with.
A fair bit of the time I need to hide the side panel, and when I do I have to move the actual list to the left of the screen to get the screen space I need. What I'm asking is can the list move to the LH side where thee side panel was?
If that was done I could quickly toggle the side panel off / on again without having to constantly move the list windoew position on screen?
He came back with:
Thanks for the feedback. This behavior heavily relies on macOS and itβs very limited and canβt be micro-controlled.
I'm therefore wondering if a KBM macro could record the LH side position of the Goodtask App (assuming the side panel is open), execute the keyboard shortcut command to close the lists panel (βL), then move the app panel leftwards to where the left hand side was previously.
As Goodtask is a $40 app without a demo version, could you possibly post a screenshot or two, hopefully annotated, indicating what you're trying to do? I'm having trouble envisioning what you're describing.
Thanks, that helps a ton. Yes, that should be really simple to write. You just need to assign a macro triggered by the Command-L hot key (put it in a macro group only active when Goodtask is frontmost) that does this:
Either send Command-L to Goodtask, or use its menu command to hide the sidebar.
Possibly insert a Pause of a second or two to let it hide.
Use the Manipulate a Window action, and set it to move the window to the top, left location where you need it to be.
Well flip..... a bit of experimenting and it works.... I couldn't work out how to add a note into the Macro to say what it does etc. I had to play around with the pause (as you said) to get it to work perfectly.
You can click the gear icon to add a note to an action, but they're quite invisible. I just use the Comment action, and then if necessary, create a group of the comment and the related actions.
Next on your to-do list (because a macro is seldom truly finished ) is to implement the
...part of your spec -- at the moment you've hard-coded the final position.
Take a look at the "%WindowPosition"% token and see if you can use that to save the position of the window before you close the sidebar, then use those values in your "Move Front Window" action.
You'll find the "Screen Coordinates and Dot Notation" section of the Wiki's "Calculations" page helpful when it comes to splitting out the left (X) and top (Y) coordinates.
LOL indeed. I might well look at that in the future, but as I rarely move Goodtask from where it sits now, and if I do I always move it back to where it sits, it may be enough for me.
Saving variables and then reusing them maybe a bit beyond me