Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Hi, I have a container field that contains a PDF. As it is right now, I have to export this in order to open the file. I want to script a button over the PDF image of the doc that will auto open the document when I click on it.

I know I have to export and then open so I created a script but I'm confused about the temp file name. I just want it to go to the Windows temp file. I set up a script with Export (field name) and for the specify output file I put "filewin://%25temp%". (I didn't type 25 there but it added it automatically). I checked Auto open. It's not working. Any ideas? Thanks!

Posted (edited)

Yes, use the Get (temporarypath) function to build the path. I usually build the path in a $variable, and then just put the $variable in the Export Path.

So, Set Variable $path, Get (TemporaryPath)& "temp.pdf"

Export $path

Edited by Guest
  • Newbies
Posted

Thanks for your response. I'm not following though. Where do I use the Get function? How do I do the Set Variable (I assume you mean the script step?) I need more hand holding please :B

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