Page 1 of 1
					
				Naming Pattern
				Posted: Sun Dec 21, 2014 10:26 am
				by anon69
				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
				Posted: Mon Dec 22, 2014 4:41 pm
				by gabrielp
				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]
			 
			
					
				Naming Pattern
				Posted: Tue Dec 23, 2014 9:45 pm
				by anon69
				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.