crystalidea / macs-fan-control

Control fans on Apple computers
https://crystalidea.com/macs-fan-control
835 stars 96 forks source link

AppleScript support (begging / please please please) #644

Open joethemonk opened 1 year ago

joethemonk commented 1 year ago

If any tool were ever to be ideally suited to being able to be controlled by scripts, Macs Fan Control is it! It shouldn't be too hard to do - just add enough for us to set a preset we've already defined. Just look up how to add Dictionary support for AppleScript and it should be fairly easy.

It would simply let us just do something just like this in AppleScript:

tell application "Macs Fan Control" set preset to "high fans - video call" end tell

That one command would be the 80/20, and you could stop there! It'd be so helpful!

savetheclocktower commented 1 year ago

I'd also be satisfied if this could be done via the command line — pass the exact name of a preset. If the app is not running, it'd use that preset upon launch; if it's already running, it'd switch to that preset.

AppleScript is definitely preferable, but maybe the command-line support is easier to implement.

dannystewart commented 1 year ago

I'd love this as well and couldn't believe it wasn't already a feature. Fan control is a natural function for automation, and some way to do that via external triggers would be tremendously valuable and appreciated. AppleScript or command line would work fine, and it wouldn't have to do anything other than call an already existing preset.

ekami66 commented 5 months ago

The ability to control Macs Fan Control via AppleScript to use presets (and of course Full blast and automatic settings) would be very appreciated.

joethemonk commented 5 months ago

Bump!