• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Save and restore Finder Window setup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Save and restore Finder Window setup


  • Subject: Re: Save and restore Finder Window setup
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 07 Jul 2015 13:06:07 -0500

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.
______________________________________________________________________

Hey Markus,

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

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Save and restore Finder Window setup
      • From: Yvan KOENIG <email@hidden>
References: 
 >Save and restore Finder Window setup (From: Markus Ruggiero <email@hidden>)

  • Prev by Date: Re: Mail, count of visible messages
  • Next by Date: Re: Save and restore Finder Window setup
  • Previous by thread: Save and restore Finder Window setup
  • Next by thread: Re: Save and restore Finder Window setup
  • Index(es):
    • Date
    • Thread