Code Scripts to export text from Adobe Illustrator & Photoshop into Notepad.
As a graphic designer, during extensive typing work, there comes a time when you want to copy-paste a large pile of text from the layers or artboard. So you might wonder how would you:
⌨️ Keep yourself relaxed while typing?
📝 Extract out all the text within just a few clicks?
🗒️ Automatically save the extracted text in a notepad file?
To get into more details, read this medium article.
Download this repository as a ZIP
file and follow the below steps.
-
Close
Illustrator
and extract theIllustratorTextExtractor.jsx
file inside theScripts
folder.C:\Program Files\Adobe\Adobe Illustrator 2021\Presets\en_US\Scripts
-
Open up the
Test.ai
file and navigate toFile/Scripts
to execute the script.
-
Close
Photoshop
and extract thePS_Bramus.TextExportWithUTF-1.3.jsx
file inside theScripts
folder.C:\Program Files\Adobe\Adobe Photoshop 2021\Presets\Scripts
-
Open up the
Test.psd
file and navigate toFile/Scripts
to execute the script.
After a successful export, your text would pop up in Notepad. Change the text alignment from left to right to view the Urdu text correctly.
Below are some interesting facts that you can try out.
-
To change the order of the text, switch the layer order.
-
Open up multiple files & export them within a single click shown in the below image.
-
Run the scripts with other languages by changing the file encoding; refer to the below snippet.
fileOut.encoding = "UTF-16"; // Change it to UTF-8 or UTF-32