Question
can one lift a file-name without the file.extension in javascript
I suspect this matter may have come up before but I could not find a thread on it ...
Anyway: If I grab a filename for later use with
var thedoc = app.activeDocument
var docName = thedoc.name
it picks up the original file-extension too.
Is there a way to avoid this or to »substract« the extension later on?
What I want to use that for is for saving multiple flattened CMYK-files from a layered RGB-psd-file into the same folder as the psd-file and appending a letter-combination to signify what printing-conditions they were generated for.
As Im plenty ignorant in Scripting-matters any help would be appreciated.
Anyway: If I grab a filename for later use with
var thedoc = app.activeDocument
var docName = thedoc.name
it picks up the original file-extension too.
Is there a way to avoid this or to »substract« the extension later on?
What I want to use that for is for saving multiple flattened CMYK-files from a layered RGB-psd-file into the same folder as the psd-file and appending a letter-combination to signify what printing-conditions they were generated for.
As Im plenty ignorant in Scripting-matters any help would be appreciated.

