• 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
Safari Moving Focus to the URL List in Bookmarks and History Windows after a Search
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari Moving Focus to the URL List in Bookmarks and History Windows after a Search


  • Subject: Safari Moving Focus to the URL List in Bookmarks and History Windows after a Search
  • From: Christopher Stone <email@hidden>
  • Date: Fri, 24 Mar 2017 16:59:28 -0500

Hey Folks,

I wonder what “genius” decided it wasn't necessary to allow the user to tab out of the search field in Safari's Bookmarks and History windows (after running a search).

Or perhaps this is just a bug that hasn't been fixed for a long time now.

You're dead in the water, until you reach for the mouse and click in the list area of the window.

It's fixed in the Safari Technology Preview, but I'm not going to wait for that to trickle down.

Given Cmd-Shift-F as a keyboard shortcut via FastScripts in Safari.

--
Best Regards,
Chris

------------------------------------------------------------------------------
# Auth: Christopher Stone
# dCre: 2017/03/23 17:52
# dMod: 2017/03/23 18:01
# Appl: Safari & System Events
# Task: Move focus to the URL list in bookmark and history windows after a search.
# Libs: None
# Osax: None
# Tags: @Applescript, @Script, @System_Events, @Move, @Focus, @URL, @List, @Bookmark, @History, @Window, @Search
------------------------------------------------------------------------------

tell application "Safari"
    set frontDocName to name of front document
end tell

if frontDocName = "Searching Bookmarks" or frontDocName = "Searching History" then
    tell application "System Events"
        tell application process "Safari"
            tell (first window whose subrole is "AXStandardWindow")
                tell splitter group 1
                    tell tab group 1
                        tell group 1
                            tell group 1
                                tell scroll area 1
                                    tell outline 1
                                        set focused to true
                                    end tell
                                end tell
                            end tell
                        end tell
                    end tell
                end tell
            end tell
        end tell
    end tell
else
    beep
end if

------------------------------------------------------------------------------

 _______________________________________________
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

  • Prev by Date: Re: Lists to XML ?
  • Next by Date: Re: Lists to XML ?
  • Previous by thread: Detect when an app is crashed
  • Next by thread: Error saving mail attachment
  • Index(es):
    • Date
    • Thread