Re: Where is the Missing Link?.
Re: Where is the Missing Link?.
- Subject: Re: Where is the Missing Link?.
- From: Paul Skinner <email@hidden>
- Date: Tue, 25 Sep 2001 15:04:35 -0400
on 9/25/01 1:16 PM, Paul Berkowitz wrote:
>
On 9/25/01 9:06 AM, "Paul Skinner" <email@hidden> wrote:
>
>
> I think this may do what you want without adding any OSAX to your
>
> system. Not that that would be a bad thing.
>
>
I can't imagine that Rachel has any objection to adding an OSAX. She wants
>
simplicity. She wants to do in as few lines as possible, with minimal
>
learning curve, what she can do with one line in DOS. She does not want a
>
100-line mammoth which she can't yet understand. Given her personal
>
conditions, she is hardly likely to be working for a big company with IT
>
overlords who forbid scripting additions. Without that consideration,
>
objections to OSAXen strike me as pure superstition, or maybe more like
>
religious proscriptions of some zealot sect. Rachel just wants to get a job
>
done. Emmanuel's 'catalog' sounds like just the ticket.
I agree, kinda, I'll let her say what she wanted. Being a dad, I assume
after someone asks for help multiple times, they want you to do it. And
being a dad, I try to do it, but give an example they can learn from. When
it's possible.
I assume Rachel is trying to learn AppleScript as well as list the
directory. She probably would like something like this...
set AppleScript's text item delimiters to return
tell application "Finder"
write ((entire contents of (choose folder)) as text) to (make new file
at desktop)
end tell
This actually does exactly the same thing that my final post does (well
not grouped as well : ) when it works. All the rest of the script that I
posted was necessary because of bugs or lack of built in functionality in
AppleScript. Meaning 'entire contents' and 'asciisort'.
I hope that Rachel can use one of the solutions she got and take them
apart if she wants to find out how they tick.
As for your further comments on AppleScript
>
Let's wait a year until OS X is firmly in place and AppleScript for OS X
>
with it, and until more important things like whose filters for lists and
>
records have been added to the language. Then perhaps a revision of the
>
whole language plus a re-thinking of the Help guides might be in order?
AMEN.
--
Paul Skinner
PowerBook G3 Series / 9.1 US / 320 MB / 400 MHz / CarbonLib 1.4 / AS 1.6