Quantcast
Channel: Adobe Community : Unanswered Discussions - General and cross-application scripting
Viewing all articles
Browse latest Browse all 84

Script to convert text file to text layer.

$
0
0

Alright, Totally new at this extendscript stuff, but it will be my 6th coding/scripting language if I can become profficiant in it. ( after C++, Objective-C, AppleScript, AutoHotKey and Bash... I don't count HTML/CSS)

 

So this is script number zero, I need somewhere to start, and I have a project I've been working on that I can't see another way to do it, so since I'm new at this, id like you to help me write this, I honestly have no idea, not even a clue where to start (Time for 'hello world!' eh?).

 

Anyway, what I would like help making is a script, that will take the 50 text files I have in a folder [ D:\Code\Examples\HelloWorld\*.txt] and make them all text layers with font: Anonymous Pro, Size 8, Color 0xFFFFFF. Alighted to the top/left at 0,0. I would like the layer name to be the Text-files name before the last period (I say last because one is named Visual Basic .NET.txt)... although first wouldn't be too bad. (So lets just say, until a period)

 

The reason I can't do this task by hand is simple, they are all 'Hello World' Examples, they are in 49 different coding languages. Each language has a seperate text file, like Bash.txt, Ada.txt, (Extendscript.txt next? .. make it an even 50 XD)

 

So, little help making this? Maybe an example?


Viewing all articles
Browse latest Browse all 84

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>