[X Newbies] Printing a list of items

Bruce Klutchko klutch at erols.com
Tue Jun 1 17:14:32 PDT 2004


On 6/1/04 4:48 PM, "Norman Cohen" <nacohen at mac.com> wrote:

> Applescript might be able to help you here. I've attached an
> applescript that will provide the paths of everything dropped onto it
> (if you save the script as an application) ...  It
> won't do everything that you want, but it might get you started.
> 
> Norm

Your script works well, but it's only halfway to a pro quality program. It
needs to be able to open up folders within folders and report the paths
within. 

For example, if the directory is:
~/Documents/George/Program1
~/Documents/George/Program2
~/Documents/George/Billy/ProgramA

The script will return:
~/Documents/George/Program1
~/Documents/George/Program2
~/Documents/George/Billy/

That is, the third line will not point to ProgramA inside folder Billy
inside folder George.

Also, as it is presently set up, one must open the folder with the directory
inside, and select all the files & folders within to drop onto the script.
If you were to make it recursive, it should be possible to drop the
containing folder onto the script to get the directory.

Of course, this script works well and it is a great idea. I'm just
suggesting what might make it a lot more useful.

Thanks for the contribution.
-- 
Bruce
____________________________________________________
B R U C E  K.   klutch-at-erols.com




More information about the X-Newbies mailing list