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.

Easy way to use FM to download any file (e.g., PDF) and save it externally

Featured Replies

There are probably other ways to do this, but you can use two Troi plug-ins, URL and File, to achieve this functionality very easily.  Downside of course is that you have to buy the plug-ins.

 

The URL plugin is used to download the PDF file into a variable.  The File plugin is then used to save the variable as a file.  Although File thinks it's a text file, by simply adding ".pdf" it's saved as a PDF.  I read somewhere that variables can have up to 300 million characters or so, which means that this trick will work for any file up to around 300 megabytes in size.  And of course, it's not limited to PDFs.

Here's an example, which downloads a patent in PDF form from Google, and saves it to my hard drive.  Note that the other nice things about using Troi URL for this, as opposed to dropping into AppleScript and BASH/Curl, for instance, is that URL follows redirection of links.  The link in the example redirects to some storage server at Google -- if you used BASH/Curl, the redirection won't be followed.
 

Set Variable [ $thepatent; Value:TURL_Get("-NoDialog"; "http://www.google.com/patents/US8289390.pdf") ]

Set Variable [ $result; Value:TrFile_CreateFile(""; "Macintosh HD:Users:Mike:Sample.pdf") & TrFile_SetDefaultFileSpec(""; "Macintosh HD:Users:Mike:Sample.pdf") & TrFile_SetContents(""; $thepatent) ]
  • Author

Sorry about that!

Have you also tried using 'Insert from URL' script step to download a file into a container, and then use 'Export Field Contents' to save it? No plugins required :-)

  • Author

I have not! I had this plug-in purchased and installed already for a different project, so I ended up using it.

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.