Jump to content
Server Maintenance This Week. ×

Add a variable to PDF ttl using script


ljm

This topic is 5018 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I can script a save as PDF, and the script nicely overwrites the file if it isn't open, but I'd like to save the file to a version using a time stamp.

So it would be like File_andtoday.pdf

Link to comment
Share on other sites

  • 3 months later...

Try the set variable script option.

Name: $filename

Value: Substitute(Table1::field1; "/" ; "-" ) & "_" & Get(CurrentHostTimestamp) & ".pdf"

Repitition: 1

Then add a another set variable to your script (for example for a folder on your desktop)

Name: $fullpath

Value: Get ( DesktopPath ) & "Folder1/" & $filename

Then add to the script Save record as PDF. Specify the where to save as filemac:$fullpath as well as the other options like Current record or all browsed etc. If you're on Windows filewin:$fullpath should work.

Edited by Guest
Link to comment
Share on other sites

This topic is 5018 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.