Re: Where is the Missing Link?.
Re: Where is the Missing Link?.
- Subject: Re: Where is the Missing Link?.
- From: Craig Treleaven <email@hidden>
- Date: Tue, 25 Sep 2001 14:38:52 -0400
At 10:32 AM -0400 9/25/01, Rachel Cogent wrote:
>
Last by 2 AM I finally became frustrated to tears at how to do this most
>
rudimentary operation in AppleScript Which 2 days ago I described in DOS
>
batch terms:
>
DIR/s>textfile
>
This command makes a directory list of all files and all files in all
>
subdirectories and writes the output to "textfile".
>
>
I must have wasted 16 hours in the last few days trying to do this operation.
>
There must be a way to do this in simple AppleScript...
I presume that "DIR /s > textfile" via AppleScript is just a learning exercise?
Many others have posted Applescripts that do what the DOS command does but taking FAR more lines to do it. I think this reflects that you need to use the right tool to do the job. Lots of disk cataloging programs exist for the Mac; many will work in a drag-n-drop mode so the effect of the DOS program can be achieved without a single line of code.
Given the Mac's rich history as a Graphical user interface versus DOS' command line heritage, it isn't surprising that something 'so simple in DOS' isn't built-in in the Mac.
BTW, am I the only one here who remembers using PAUSE, TYPE, SORT, FIND and DIR to get work done? Surely there must be folks who used the unix equivalents. It was AFTER doing these things that made the Mac seem so sweet and easy.
Craig
Craig Treleaven, Clearview Consulting
(905) 829-2054 email@hidden