On Jul 07, 2015, at 08:28, Markus Ruggiero < email@hidden> wrote: When that Finder window is frontmost the script should somehow register the tabs and their setup (folder, kind of view, window size and placement, etc) and store this "somewhere"
I want to be able to run a script later that presents the list of saved settings and allows me to select and restore such Finder window with all its tabs.
______________________________________________________________________
Finder scripting does not support tabs at all on OSX 10.9.5.
Discovery with System Events is not all that pleasant either...
--------------------------------------------------------------- tell application "Finder" set winName to name of front window end tell
tell application "System Events" tell application process "Finder" set uiElementList to UI elements of tab group 1 of window winName end tell end tell ---------------------------------------------------------------
On my system System Events is seeing the front window as window 2 for some reason, which is why I'm asking the Finder to identify it above.
More directly I suppose would be:
--------------------------------------------------------------- tell application "System Events" tell application process "Finder" tell (first window whose subrole is "AXStandardWindow") set uiE to UI elements set attr to attributes set attrVal to value of attributes set propsOfAXTitle to properties of attribute "AXTitle" set props to properties end tell end tell end tell ---------------------------------------------------------------
I cannot say for certain if anything has improved in Yosemite or El Capitan, but I'll be much surprised if anything has substantively changed.
I'm about to upgrade to 10.10, so I'll be more current in a few days.
-- Best Regards, Chris
|