Copy link to clipboard
Copied
Hi,
I would need to change in After Effects the path to the output directory depending on the operating system. If the script will run on a MAC the path will be different than the path on a PC.
Is there a way to read in the javascript which operation system I am on?
Cheers!
That's very cool!
Thank you very much Mathias!
I also wanted to share how I was able to use it in my script.
//alert($.os);
if($.os.indexOf("Windows") > -1){
var strOS = "Windows";
}else if($.os.indexOf("Macintosh") > -1){
var strOS = "Mac";
}
alert(strOS);
A.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
That's very cool!
Thank you very much Mathias!
I also wanted to share how I was able to use it in my script.
//alert($.os);
if($.os.indexOf("Windows") > -1){
var strOS = "Windows";
}else if($.os.indexOf("Macintosh") > -1){
var strOS = "Mac";
}
alert(strOS);
A.