Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Add a variable to PDF ttl using script


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

Recommended Posts

Posted

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

  • 3 months later...
Posted (edited)

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

This topic is 5285 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.