October 14, 200817 yr 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
October 14, 200817 yr Author Never mind, I got it, wasn't putting the HD name in the file path, was using unix file path. Manuel
October 14, 200817 yr 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
October 14, 200817 yr Use Insert File[] instead of Set Field[]. As the path, specify a variable set in advance to a value of your path. Edited October 14, 200817 yr by Guest
October 15, 200817 yr 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
October 16, 200817 yr 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