GeekAndDad / Applescript_SearchInSafari

AppleScript to search the content of all non-minimized Safari windows/tabs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Search In Safari AppleScript

An AppleScript to search Safari tabs in all windows - except windows minimized to the Dock

Installation

  • I put the script file into ~/Library/Scripts/Applications/Safari
    (note that you can put aliases to files here so you can download the repot to some logical place you keep repos or applescripts and then make an alias of to that file in the Safari Scripts folder location noted).

  • Then I enable "Show Script menu in menu bar" in the Script Editor > Preferences…

Alternatively, or in addition, setup Alfred or similar with a hot key to invoke it.

TODO:

  • Put up a dialog if nothing is found (just does nothing currently)
  • See if there's a way to include the minimized windows

Notes

  • Only tested on macOS 12.4 and Safari 15.5

License

Copyright © 2022 Geek & Dad, LLC All rights Reserved. Free to use for Personal, Non-Commercial use.

About

AppleScript to search the content of all non-minimized Safari windows/tabs


Languages

Language:AppleScript 100.0%