IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#51052 - 03/05/15 02:43 PM ppimage mask
Luc Offline
OL Toddler

Registered: 02/26/15
Posts: 37
Loc: Montreal
I'm trying to create a process that captures a file from a folder.
Using Image I want to create PDF using a string in the file name ex. Harling_OIIQ_LIST1.TXT
I would like to use OIIQ that is in between "_" , because OIIQ is the name of my PTK document
I would always use what is in between _ _ to call PTK documents what ever the name is.
this is how i want to associate a document to a list
how can this be done?

Thanks

Top
#51081 - 03/09/15 01:15 PM Re: ppimage mask [Re: Luc]
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
Hi Luc,

You would need to use a script. A small script right before the PlanetPress Image output, to extract the OIIQ from the file's name. Here's an example:

Code:
dim s

s = Watch.GetJobFilename
s = mid(s, InStr(s, "_")+1, 1000)
s = mid(s, 1, InStr(s, "_")-1)

Watch.SetJobInfo 9, s



Note that before this script, you will need to make sure the current job file has the original name, so you might need to do a Rename to %o. The script will extract the part between two _ characters, and will put it into job info 9. Feel free to use another job info if you want. You can then use this job info to call a dynamic .ptk name.

Hope that helps!

Regards,
Raphaël Lalonde Lefebvre

Top