i want to list quarkxpress-files from a choosen folder (with subfolders!) in a tableview.
How can i modify the script, so that the complete Posix Path from the file is show in the tableview?
And i have another problem: Is there a faster way to list quarkfiles from a folder with subfolders in a tableview, because my script is very slow by big folders with many files?
Many thank for your help!
And sorry for my bad english:( I hope you understand what i mean!
-------Here I load the QuarkFiles from a folder with subfolders!-------------------------------
set the_images to the name of files in the entire contents of folder the_folder whose file type is “XDOC” as string
-------Here I load the QuarkFiles to the table view!---------------------------------------------
repeat with this_image in the_images
set this_image to (POSIX file (this_image))
set the_row to make new data row at end of data rows
tell the_row
set contents of data cell 1 to this_image
end tell
First, delete the “dropper.plst” file in you preferences folder. Now, open up the “dropper” project in Xcode, change the file_types to {“XDOC”} and the file_extensions to {“QXD”, “QXP”}. Add a button in the main window of the NIB, add an AppleScript name for it (say, “choose_folder”) and link this button to the clicked action in the “dropper.applescript” file. Save and close the NIB. Now, back in the AppleScript, add two lines in the “on clicked the_object” handler:
else if object_name = "choose_folder" then
my load_table({choose folder})
That’s it. Build and run. When run, click the “choose_folder” button you added and it will add QuarkXPress documents found in that folder to your table. Everything you need is right in the project.
I’ve revised the project itself to add the “choose_folder” button as well as a “reveal_file” button that will reveal the selected path in the Finder (you can also double-click on a path in the file table to reveal it). Again, it’s located at: