Re: Please explain this!? More....
Re: Please explain this!? More....
- Subject: Re: Please explain this!? More....
- From: Harald E Brandt <email@hidden>
- Date: Mon, 26 Nov 2001 00:38:51 +0100
+--> Christopher Nebel wrote 01-11-23:
>
AppleScript eliminates the need for an explicit "map" or "apply" operator by doing it implicitly in "every" constructs..........
>
>
This allows you to do some very powerful operations very easily, but it has the side effect of making simple decomposition impossible.
>
>
There are admittedly some hinky bits about this -- AppleScript doesn't follow this rule consistently for built-in types (i.e., lists, records and strings),
+-
The principle of being able to do various operations on collections is something I strongly like and advocate! (Although one can argue about the syntax for it and the usefulness (read: time to debug) of trying to be "English like" versus more "mathematical like").
However, the limitation to application commands results in that my scripts tend to look almost like: Telling Finder in the beginning of the script and having 'end tell' at the end!
Not very efficient, since operations take MUCH longer time if they have to pass the Finder. So, it would have been MUCH more useful if I could have the Standard Additions 'list folder' to return full references instead of just string names, and use such things in filter for identifying files etc. I could use that, in combination with 'info for' in my filter constructs, instead of using Finder. It would me MUCH faster!
In addition, the class 'file information' of Standard Additions would need to be smarter, e.g including the path to original targets of aliases. I take for granted this has been debated a lot already. An improvement would be very welcome, but it will unfortunately not make it easier for scripts that must be portable to also older computers.
For these reasons, it would be good if future much improved Standard Additions were made so that they can easily be used/installed into old computers, running e.g 8.6.
With the Best Regards,
and....
+--
>
What I've described is the correct way, however, and we're working on ironing out the wrinkles.
+-
....thanks for your continued education on this list! Really!!
______heb________________________________________________________________
Harald E Brandt email@hidden PGP/MIME aware
http://heb.bragit.com