var myDoc = app.activeDocument;
var myDocumentName = myDoc.name;
var my1stVar = myDocumentName.substr(0, 3);
var my2ndVar = myDocumentName.substr(3, 7);
var myFirstVar, mySecondVar;
var myDocument = app.activeDocument;
myFirstVar = myDocument.name.substr (0, 3);
mySecondVar = myDocument.name.substr (3, 7); // or replace 7 with "myDocument.name.length-1" for the rest of the file name);
Message was edited by: Thomas B. Nielsen - seeing that you asked for a specific amount of leters for the second var also. (But Kasyan allready did reply)
Thanks, will try this!
And thanks to you. . .will try this too!