Show complete Path in TableView

Hi,

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! :slight_smile:


-------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

Does nobody can help me? :frowning:

You can take a look at my demo project “dropper” for some hints:

http://homepage.mac.com/jonn8/as/dist/dropper.zip

Jon

You can take a look at my demo project "dropper" for some hints: 

http://homepage.mac.com/jonn8/as/dist/dropper.zip 

Jon

I do not get ahead also with your demo-project.

I dont drop files to the table view - in my prog i want to choose a folder and then i want to list all quarkfiles in a tableview.
How can i do this?

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.

Jon

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:

http://homepage.mac.com/jonn8/as/dist/dropper.zip

(Option-click this link to download a fresh copy, not the copy that may be in your browser’s cache.)

Jon

Many thanks!!! :slight_smile:

I see you edit your demo project and add a “choose button” :-))))

I thank you very much…