Display the Name and Bounds of Every Finder Window. Macro

Display the Name and Bounds of Every Finder Window. Macro (v10.2)

Content of this page ( updated 20230127 15:59 UTC):

  • 1_. For ONE Finder window
  • 2a. For ALL Finder windows - (KM with AppleScript)
  • 2b. For ALL Finder (and other apps') windows - (KM without AppleScript)

AppleScript and KM measure window bounds differently.

KM uses Width and Height whereas AS uses Distance from the Left and Distance from the top.

Usage: Anytime you need to position 1 or more Finder windows on your screen, first set the relevant windows where you want them - then run the macro and you'll get the AppleScript bounds.

Should you need the window position for a KM macro where you use f ex "Move and Resize Window" you could use this macro:

1. For ONE Finder window

2a. For ALL Finder windows - (KM with AppleScript)

The Macro - thanks to Chris S @ccstone

Get Bounds of all Finder Windows_AS vs.1 Macro (v10.2)

Get Bounds of all Finder Windows_AS vs.1.kmmacros (10 KB)

2b. For ALL Finder (and other apps') windows - (KM without AppleScript)

use the Window Discovery Tool at Window Information Tools - Macro Library - Keyboard Maestro Discourse

Hey there, when posting macros in this category, it’s helpful to provide information about what they do, and how they work. Also, in this case, since the macro was essentially written by Chris Stone, it’s good etiquette to include attribution. :wink:

Feel free to update your post with some more details.

-Chris

1 Like

Thank you for clarifying.

Where do I write what the macro is doing, in a comment field?

include attribution

Right! Before the script starts there is a (not clear) attribution to --Chris.

Maybe you can link to a good example for doing this correctly, this is the 1st time I uploaded a macro and there are a bunch more to come… :slight_smile:

/

with best regards, Omar KN, Stockholm, Sweden

1 Like

Always glad to help!

While it’s good practice to include it in the macro itself, (I and others use comments at the top of the macro), in this case I was referring to your post. Just add some text at the top (before the macro download link and screenshot) that has this info. :wink:

Here is a great macro that the same Chris Stone (@ccstone) wrote to simplify uploading your macros to the forum. I have been using it for well over a year and it has been very helpful. ↓

KMF: Automating Sharing Macros or Actions to the Forum - Macro Library - Keyboard Maestro Discourse

-Chris from Ohio

Hey Omar,

See this:

It is a good example of an attribution – and it will automatically create an attribution for you.

When I'm presenting someone else's work or something heavily influenced by someone else's work I'll do something like this:

············································································································
Author	 :  Christopher Stone { Heavy Lifting by Shane Stanley }
Created	 :  2023/01/24 15:07
Modified :  2023/01/24 15:07
Task	 :
URLs	 :  
Tags	 :  @yourForumHandle, @KMForum, @Other-Tags
KmVer	 :  Keyboard Maestro 10.2 on macOS 10.14.6
MacroVr	 :  
············································································································

Or this:

············································································································
Author	 :  Christopher Stone <scriptmeister@thestoneforge.com>
		 :   building upon work by Shane Stanley
Created	 :  2023/01/24 15:07
Modified :  2023/01/24 15:07
Task	 :
URLs	 :  
Tags	 :  @yourForumHandle, @KMForum, @Other-Tags
KmVer	 :  Keyboard Maestro 10.2 on macOS 10.14.6
MacroVr	 :  
············································································································

Comment dialogs support clickable RTF hyperlinks, and I prefer to use them rather than plain text.

-Chris

1 Like

Thanks for linking to this Chris. I wanted to (because I just started using it a couple days ago and love it) but for some reason wasn’t able to find it on the forum.

1 Like