It would be great to support switching proxy modes and TUN mode via AppleScript.
Alternatively, extending the ClashMac CLI to provide these capabilities would also work.
This would make it much easier to automate mode switching and integrate ClashMac with tools such as Hammerspoon, Keyboard Maestro, Raycast, and other macOS automation workflows.
tell application "ClashX Meta" to toggleProxy
tell application "ClashX Meta" to TunMode
tell application "ClashX Meta" to proxyMode "global"
or
/usr/local/bin/clashmac toggle proxy
/usr/local/bin/clashmac toggle tun
/usr/local/bin/clashmac mode global
It would be great to support switching proxy modes and TUN mode via AppleScript.
Alternatively, extending the ClashMac CLI to provide these capabilities would also work.
This would make it much easier to automate mode switching and integrate ClashMac with tools such as Hammerspoon, Keyboard Maestro, Raycast, and other macOS automation workflows.
tell application "ClashX Meta" to toggleProxy
tell application "ClashX Meta" to TunMode
tell application "ClashX Meta" to proxyMode "global"
or
/usr/local/bin/clashmac toggle proxy
/usr/local/bin/clashmac toggle tun
/usr/local/bin/clashmac mode global