ManuelD Posted October 14, 2008 Posted October 14, 2008 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
ManuelD Posted October 14, 2008 Author Posted October 14, 2008 Never mind, I got it, wasn't putting the HD name in the file path, was using unix file path. Manuel
ManuelD Posted October 14, 2008 Author Posted October 14, 2008 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
comment Posted October 14, 2008 Posted October 14, 2008 (edited) 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, 2008 by Guest
ManuelD Posted October 15, 2008 Author Posted October 15, 2008 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
comment Posted October 16, 2008 Posted October 16, 2008 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?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now