Am 04.10.2010 um 05.13 schrieb Michael_google gmail_Gersten:

Spatial window mode? You mean there's something that makes Finder useful?
More info please

All that is done rapidly by Quickeys and Applescript....

First: What is "Spatial window Mode"?
Second: What is Quickeys?
Third: How do you script the positioning and settings of a finder
window when it opens?


First
You get into spatial window mode by clicking the button in the upper right corner of the toolbar. Windows in spatial mode have no toolbar, no sidebar, every folder opens in its own window. Who coined the term spatial window? I dont know, but that is the term used for this window mode.

Second
Quickeys is a macro program for Apple OS, I have that since the old OS 7 days (or was it OS 8 ?). It's my first and most important thing I use for automation. Invaluable....indispensable



Third
The scripting goes like that:

SET
your window to spatial mode
Here:
set toolbar visible of Finder window 1 to 0

GET
the number of parent folders of the actual folder.
(NOTE: this part of the script is by far the largest and therefore too long and, in my case, too specialised for my filing system to be copied here. If someone is interested in that part, he/she should probably better switch to my private email adress for communications).
Here: resulting number will be called as  "NR"

DEFINE and SET
the horizontal & vertical distances from screen edges, the left and top bounds of your top level folder of your folder hierarchy should have
Here: hor, ver

DEFINE and SET
the difference of left and top bound of a window to the left and top bounds of its parent window.
Here: dhor, dver

DEFINE and SET
the standard width and height, all of your window should have.
Here: W,  H

CALCULATE
the bounds (lb, tb, rb, bb) of your actual window
Here:
set lb to (hor + (NR * dhor))  --Left bound of your window
set tb to (ver + (NR * dver))  --Top bound of your window

set rb to (lb + W)             --right bound of your window
set bb to (tb + H)             --bottom bound of your window



This is the main action of the script:
set bounds of Finder window 1 to {lb, tb, rb, bb}

















_______________________________________________
MacOSX-talk mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-talk

Reply via email to