Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Introducing JavaScript Where Does JavaScript Go?

What did the instructor mean with javascript OS automation, at the beginning of the video? thanks

So at the beginning of the video the instructor told, that javascript can be used for even os automation. The only thing I know where your could automatize things is obviously node.js and Gulp. Are they what he meant or there is really something for operating system automation in javascript. ?

Thanks

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Sandor Deli! Yes, JavaScript can be used to automate tasks in operating systems. That being said, macOS is the only one I know of off the top of my head. There could potentially be others. It uses something called JXA which stands for JavaScript for Automation. You can find some documentation from Apple about it here. I also came across an interesting article about a sample case that was done which you might consider looking at here.

So yes, it is possible to automate certain tasks in at least macOS but potentially more and possibly an expanding number.

Hope this helps! :sparkles:

Thanks a million Jennfer=) Would you have an article or a google keyword for linux/windows automation? Thanks a lot.

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Sandor Deli when I search for "Windows automation javascript", I was lead to this open-source node.js project which purports to support Windows and Linux. Keep in mind that I have not tried this :smiley: Take a look here.

Thanks a lot Jennifer for your help it was really nice from you=)