Skip to content

Greg-Tichy/Safari-Windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Safari-Windows

My first Cocoa proggy on macOS Quite raw but doing what it should. it's an example of
programmatically scripting application and using NSOutlineView

The idea is to find a (hidden somewhere) Safari Window and relevant Tab. I had this idea a long time ago, due to my huge (40") screen and many spaces. The challenges:

  • find them all
  • show in hierearchicalview: Window -> tab
  • on request activate selected tab
  • quit the app

To find tabs I used Swift Scripting Framework of TONY INGRALDI which can be found on GitHub here. Helped a lot as I do not know any technology on Mac similar to COM on Windows.

Activations is done by scripting as well.

Quit by pressing a button is for me a bit tricky: ViewController has a property which is set by WindowController to a call close() of the window.

More or less 5 days to learn Xcode, to read properly Apple documentation and find out other things which whole world obviously knows but I do not.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages