Re: Where is the Missing Link?
Re: Where is the Missing Link?
- Subject: Re: Where is the Missing Link?
- From: Lourens Smak <email@hidden>
- Date: Tue, 25 Sep 2001 22:15:43 +0200
>
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.
You can do it even faster... finder can do it (apart from making the
empty text file)
I've seen many times people don't realize that cmd-c with files selected
copies the filenames to the clipboard:
cmd-a (select all in the window)
cmd- -> (arrow key)
cmd-a (again)
cmd-c
switch to empty textfile
cmd-v
5 seconds from start to finish...
Think about what you do with a script, and without a script... :-)
(but as a trainig excercise a script for this is pretty good of course)
;-)
Lourens.