blahsd/snwe

osascript-based interfaces are very energy inefficient

blahsd opened this issue · 5 comments

All the scripts that rely on constant polling through osascript (iTunes, Spotify, taskbar) are relatively resource heavy.

osascript can use javascript, would it reduce the load?

@CarlosEvo could you provide an example? It might be interesting

I am not a developer, this is the example I found, since you mentioned itunes on reddit

Maybe it will save some energy compared to calling on the shell to run AppleScript, but I would assume it would cost the same. Using precompiled binaries CLI tools might help, but I Do not know any.

Unfortunately the package you linked seems to be using osascript as well, so ultimately it's going to be the same load on the machine. Thanks tho, it was a good shot. I'm now trying to do that balancing of resource and responsiveness that I was talking about on reddit. If you'd like to help testing give me a shout

screenshot 2018-06-06 17 53 27

snwe w/o active task monitor now has a lower average energy impact than the desktop dropbox integration. This is a solved issue in my book.