Naming Pattern
Naming Pattern
hello, im currently trying to rename a few documents using pitstop. i created an action script so that i could use the document name as the title. the problem is that the script also attaches the .pdf extension to the title. is there any way to avoid this? hopefully from within the script and not manually because i just got done doing about 30 files and im irritated. thanks for any and all help.
Naming Pattern
Excuse my ignorance, but you have a script in Switch you're trying to get the file name of without the prefix? If so, that's called FileNameProper.
In your script:
function jobArrived( s : Switch, job : Job )
{
var fileNameProper = job.getNameProper();
}
In designer "Define text with variables":
[Job.NameProper]
In your script:
function jobArrived( s : Switch, job : Job )
{
var fileNameProper = job.getNameProper();
}
In designer "Define text with variables":
[Job.NameProper]
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Naming Pattern
gabrielp wrote: Excuse my ignorance, but you have a script in Switch you're trying to get the file name of without the prefix? If so, that's called FileNameProper.
In your script:
function jobArrived( s : Switch, job : Job )
{
var fileNameProper = job.getNameProper();
}
In designer "Define text with variables":
[Job.NameProper]
thanks for the help gabrielp! im actiually using action scripts from pitstop pro.
In your script:
function jobArrived( s : Switch, job : Job )
{
var fileNameProper = job.getNameProper();
}
In designer "Define text with variables":
[Job.NameProper]
thanks for the help gabrielp! im actiually using action scripts from pitstop pro.