I am trying to set up a script that will select multiple files in the Finder as referenced by fields across multiple records in Filemaker, so that I can move them all together to a new location. In this case the files are image files, so I’m trying to do what QuarkXpress would call a collect for output.
I have managed to do it such that Filemaker initiates the action using the clipboard to determine which file I want to select and then moving that file individually before moving onto the next Filemaker record. The looping is done by a Filemaker script then the slection and moving is done like this:
tell application “Filemaker Pro”
activate
set clip_data to cell “cell1”
end tell
tell application “Finder”
activate
copy file clip_data of folder “folderfrom” of startup disk to folder “folderto” of startup disk
end tell
This works OK but is slow. What I 'd like to do is to use the clipboard to reference and select each individual file and then go and move them all at once. I presume that this could be done with a list such you have file1,file2,file3 etc where file1 is the value from a field in 1 filemaker record, and file2 is the value from the next etc, but am not sure how to do this or how to make the process open ended so that it doesn’t matter how many files there are to move. Can anyone give me some pointers?
Thanks in advance
Rufus