Tell (1st window whose value of attribute "AXMain" is true) Set frontApp to first application process whose frontmost is true I found this AppleScript, which was close to what I wanted, but I also wanted to identify the main window if a non-browser was in use: global frontApp, frontAppName, windowTitle I wanted to extract the active application, title of the main window, and the URL of that window (if the active application is a browser). Retrieving the Active Application, Window, and URL using AppleScript ![]() It’s a really powerful system but horribly documented, with very little open source code to learn from. I ended up needing to modify an AppleScript and ran into macOS’s Javascript Automation for the first time. There’s been a couple of things that have bugged me about the application, and it’s written in a couple of languages I’ve wanted to learn (Rust, Vue), so I decided to make a couple of changes as part of a learning project. ![]() I’ve been using it for a couple of months as part of my digital minimalism toolkit and it’s worked great to give me an idea of what’s taking up my time. Similar to rescue time RescueTime, but open source, with some more advanced features. I’ve been playing with ActivityWatch, a really neat open-source application to track what you are doing when you are on your computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |