Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Replace rather than Append

Featured Replies

Hi,

 

I only found one post, but not very helpful.  I'm exporting my pdfs to the temporary folder.

 

Everything is great except when I export again.

 

Since I'm using the same NAME the append just adds to the existing .pdf within the temporary folder - Yikes!!!

 

I was hoping once the script was finished that was it, but after remembering where the Temp Folder is ... HOW can I REPLACE the pdf file I put there instead of append it.

 

All I can think of at this moment is either push the pdf into a container; since the pdf won't change that often.  Or, set a global fields to empty and each time the user runs that script they will create the same file pdf but with a .1, .2, .3 et cetera.

 

I was hoping for a better way.  I really like the Temporary Folder.  Is there a way to replace the existing .pdf file ??

 

Thank you.

 

Tom

You just don't use Append to PDF. Post the script.

  • Author

Hi,

 

I have no idea what you mean by "Post the script"

 

Sorry, can you explain further, I would be grateful.

 

Thank you.

 

Tom :-)

You can copy and paste a script. 

 

Select the script to be copy Menu Bar >> Scripts >> Manage Script Tasks >> Print Icon, Then select the option in the print dialog box, "Open PDF in Preview" and then select all Copy and then Paste it to a Reply here.

 

Lee

If you don't use Append any identically named file will automatically replace the original.

  • Author

Lee,

 

I am sorry, Yes ... I can post the script.

 

I though that was the answer.

 

Please standby :-) 

 

Tom

Your script shows you always using  

 

[ Restore; Append; No dialog ]    

 

As Rick said: to start a fresh file; don't use append.

 

The following steps in the script can continue to use append.

Append has some other pitfalls too. In printing out pay slips for two different groups of employees I would save "Slips.pdf" to the Temp folder. Since summaries were involved, a script would find the correct slip with the correct date and append each slip to the original PDF. Fine, right? But when I ran the same routine on a second group in the same session the script would print out both sets. Of course, since I hadn't quit FM, the file "Slips.pdf" was still in the Temp folder so the second group was appended to the first. After I figured it out the solution was simple. Each iteration of the script would save the file as Slips& a number generated by the random function &pdf. I forget the exact syntax.

  • Author

Hi,

 

I see my error.  I used append on the first Save pdf step.  

 

Yes, makes sense.

 

Thank you.

 

Tom :-)

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.