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
#30631 - 12/30/09 12:57 PM Is the data file name available to Presstalk?
-nth- Offline
OL Expert

Registered: 04/01/03
Posts: 236
Loc: Lincoln, NE
I'm wondering if the original data file name is available to the Presstalk scripting engine? If so, through what function or property? I need to base a Presstalk script on the incoming data file name.

I know I could create a metadata field or use a job info to pass the file name from Watch into a form, but if I can do it directly through Presstalk, it keeps it much simpler.

Thanks,
-nth-

Top
#30632 - 01/04/10 09:23 AM Re: Is the data file name available to Presstalk?
Raphael Lalonde Lefebvre Offline
OL Expert

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

Yes, it's available in PressTalk. It's:

Code:
&current.datafilename
It returns the full path + data file name.

If you just want the file name without the path, however, you'll have to use Watch, though you could set a job info to %o and call it in your form instead of using metadata.

Hope that helps!

Regards,
Rapha

Top