AndiM Posted February 10, 2006 Posted February 10, 2006 Hello again, I understand how to insert PDF`s into container, greating a path to that file in "insert file" and open it with FM, but is there any way to insert a whole folder of PDF`s there so that I could open the PDF files in it one after another in FM without allways greating the path to every single files? Any particular script? Help help!!
Wim Decorte Posted February 10, 2006 Posted February 10, 2006 You'll need a combination of OS scripting and FM scripting. Look at this demo I've posted to get a list of all files from a folder: http://fmforums.com/forum/showtopic.php?tid/173921/ you can easily change that to return a list of PDFs only. If you're using FM8 you can use variables in the "insert file" dialog, so you'd create a loop in your script to set the variable to the path of each PDF in the folder and do the insert. With FM7 it's more complex. You need one hard coded file reference in the "insert file" script step and you'll need more OS scripting to copy/rename each file in the folder to match that hard coded file reference and then do the import script.
Recommended Posts
This topic is 6865 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