blah Posted January 21, 2008 Posted January 21, 2008 Is it possible to script "import document" using a given path saved in a field, instead of having a dialog? I have to import multiple files where the file path is known and the files change frequently. Thanks matt
Colin Keefe Posted January 21, 2008 Posted January 21, 2008 Assuming you're talking about Import Records...you can pass a file path dynamically by using a variable in the Specify File dialog; e.g. Set Variable[$filepath; myfilepath] Import Records [$filepath] The import order however is hardcoded, so this'll only work if the import order is the same for each file imported.
blah Posted January 21, 2008 Author Posted January 21, 2008 Wow, that should work perfectly. Thanks Matt
blah Posted January 21, 2008 Author Posted January 21, 2008 (edited) When using the set variable call, I get an error message saying that FM cannot find the file and the error message quotes an abbreviated path. I checked the saved path and it is correct. What could be the cause of this error? An example of the path format is: "filewin:c:documentsandsettingsmattnewprofile.xls" the error message reference says cannot find the file: "c:documentsandsettingsmattnewprofile.xls" Thanks for your help. matt Edited January 21, 2008 by Guest
blah Posted January 21, 2008 Author Posted January 21, 2008 Thanks to trial and error, I figured out the problem: the file path format must use "/" instead of "". how that happens or why is besides me.
Recommended Posts
This topic is 6152 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