Tag: script
-
JavaScript: convert String to Hex code
JavaScript is a powerful programming language that is widely used in web development. One of the common tasks in JavaScript programming is converting a string to a hexadecimal code. This can be done easily using a built-in function in JavaScript called charCodeAt(). In this article, we will discuss how to convert a string to a […]
-
Part- 3 Illustrator Scripting Looping the shape within layer
Illustrator is a powerful design tool that is widely used by graphic designers and artists around the world. One of the key features of Illustrator is the ability to automate repetitive tasks through scripting. This can save designers a significant amount of time and effort, allowing them to focus on more creative aspects of their […]
-
Part- 2 Illustrator Scripting Creating folder using Javascript
Below is the code that will create a folder using javascript in illustrator script. Suppose there is dir variable selected by user. (as shown here) For MAC OS path= dir.fsName;new Folder(path+”/White”).create(); For WINDOWS OS path= dir.fsName;new Folder(path+”\\White”).create(); For different operating system in full path above is the code to create folder correctly. see the difference […]
-
Part- 1 Illustrator Scripting opening files in path selected
Below is the script to loop through opened files as user select the folder var dir = Folder.selectDialog(“Select location of files?”); var files = dir.getFiles(“*.ai”); // .eps IS THE EXTENSION OF FILES TO READ dir=dir.fsName; Below is the script a that can be used to loop through files from the selected folder above for(var f […]