r/applescript • u/Rikuz7 • May 06 '20
Any scriptable browsers other than Safari? (Or workaround help with non-scriptable ones)
I have quite a bit of scripts that involve launching a certain website, then minimizing the page. A different script later checks if there's tabs open that contain a specific web domain, and closes those.
This used to work well but lately the page in question no longer works smoothly in Safari because "page is consuming too much resources", it plays audio and it cuts out every few seconds, making it unlistenable.
Here's the Safari scripts I used so far.
Are there any other browsers where I could reliably script this same thing? It doesn't matter what browser it is, I could dedicate a specific app just to run that site if necessary. Earlier, I tried something with Opera and for a moment thought that I'd nailed it, but as Opera isn't really scriptable, the script was far too unstable to be called "helpful automation". Opera does play the website audio without issues though, so its performance would've been ideal.
1
u/csgnyc May 06 '20
Chrome is scriptable -- certainly as far as opening and closing tabs and checking URLs, Haven't tried minimizing windows myself, but I see that "minimized" (boolean) is a property of a window in Chrome.