Skip navigation
Currently Being Moderated

Script to convert text file to text layer.

Aug 21, 2011 2:53 PM

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?

 
Replies
  • John Hawkinson
    5,512 posts
    Jun 25, 2009
    Currently Being Moderated
    Aug 21, 2011 3:48 PM   in reply to Nictra_Savios

    This is the cross-application scripting forum, but your question doesn't sound cross-application, so there is probably a better place for it.

     

    I cannot tell, from your question, what application you are attempting to script. That makes all the difference in the world. (Knowing the version would be nice, too...)

     
    |
    Mark as:
  • John Hawkinson
    5,512 posts
    Jun 25, 2009
    Currently Being Moderated
    Aug 23, 2011 8:05 PM   in reply to Nictra_Savios

    Sorry for the delay. I suspect you may not get much moderator attention, you are probably best off posting in the Photoshop scripting forum.

    Scripting for all the Creative Suite applications is not at all the same. They are all different, though there are certainly similarities.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points