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

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

Recommended Posts

Posted

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

Posted

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

Posted (edited)

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
Posted

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

Posted

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?

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