Thank you Fredrik71,
I did try your code and it seemed to make two Finder windows separate on the screen. Then one window was surrounded by a blue “frame” and with the arrow keys I was able to make that frame move from one window to the other. But that was not what I was looking for. I wanted the arrow keys to enable me to navigate through the hierarchy of folders within the chosen folder, and once I ran the code the arrow keys seemed confined to moving the “frame” around them.
I think KniazidisR has more of the idea I am looking for. I know and understand that view options must be set to columns. That is the way I normally set my windows anyway. But I tried this code:
tell application “Finder”
reveal (choose folder)
activate
end tell
And substituting the words “window 2” for “(choose folder)” I got an error message:
“Finder got an error: window 2 doesn’t understand the “reveal” message.” number -1708 from window 2
What I am trying to accomplish is a code that will take any two or more windows (folders) and cycle through them (a different window/folder on each running of the code), then making that window/folder active in the sense that I can then use my arrow keys to navigate the internal folders and files.
Let me put it another way. For example I might have three windows open on my Desktop: Window1, Window2 and Window3, each with a different target/path (and each in columnar view). But it should be simple, shouldn’t it, to identify the windows only by their position on the desktop: Window1 is in front, Window3 is in the back and Window2 is in the middle. I just want to be able (with a “hotkey”) to switch from window to window until I land on the one I want to navigate through. Then, and only then, would I begin using the arrow keys to navigate that window’s hierarchy of folders. The problem, as I see it, is to make the chosen window active (I hope I am using the right word) so that I don’t have to click on the window to make the arrow keys effective.
I hope that is clearer.
But to cloud the issue further, I would like to create a script that would take into account any number of open windows (within reason, of course) and be able to cycle through them as described, but always ending up with that active window being immediately accessible to arrow-key navigation within its folder structure.
There. I hope I haven’t made things worse with all my descriptions.
By the way, is there a syntax issue with “Window 1” as opposed to “Window1” or “Window_1”?
Many thanks to all who see this and consider.