Jump to content

Sidecar Toggle


Recommended Posts

9 hours ago, jacobwtyler said:

Holy crap.  That java script is magic.  You guys are amazing!  Thank you for sharing.  The other script in this thread that I said was working suddenly stopped working and was giving me an error about "group 1" so I came back here and gave this javascript a try.  It looks so complicated compared to the other one but worked perfectly!  Really cool stuff.  Wish I could make stuff like that.  

 

I'm glad it it working well for you. JXA is very poorly documented by Apple and can be very confusing but, because it provides nearly direct access to the Obj-C runtime APIs, it is lightning-fast compared to traditional AppleScript. If you'd like to learn more about it, a great resource is the JXA Cookbook on GitHub. 

Link to comment
  • 1 month later...
  • 2 months later...
  • 2 weeks later...
  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...