Skip 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.

Script "Insert File" into container

Featured Replies

Hi! I want to script inserting file into a container. I use the "set field" script step, specifying the container as the target and this as the data "filemac:/paht/to/my/file/myfilename.txt"

The icon of the file appears in the container field as though I added it thru the insert file menu, however when I click on the file icon in the container, i get the following error message:

"The file (filename) could not be found and is required to complete this operation".

If I add the file manually from the same directory, it works.

What am I doing wrong?

Thanks

Manuel

  • Author

Never mind, I got it, wasn't putting the HD name in the file path, was using unix file path.

Manuel

  • Author

Ok, I do have a problem, this script step insert only the file reference into the container, how do I script this so the file is embedded in the container?

Manuel

Use Insert File[] instead of Set Field[]. As the path, specify a variable set in advance to a value of your path.

Edited by Guest

  • Author

Thanks, I got it working, now another question, when I insert the file, the container displays the file icon, is there any way for me to extract the icon image from the container? I use IWP and the container only displays the file name as a URL, I would like to also display the file's icon in a background container.

Thanks

I don't think extracting the icon is possible. Perhaps you could prepare a "library" of icons and select the icon to display according to the file's extension?

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

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.