keith martin <[EMAIL PROTECTED]> wrote:
>Using 'by' and 'delimiter' still only makes true 'linguistical' sense for
>me when written: 'item 2 [of container 1] delimited by myDel'. Saying 'by
>delimiter myDel' isn't *too* bad, but... <sigh>
>
>Let me start again... What would a complete line of script look like? Which
>is better? How do they abbreviate?
>
> put item 2 by delimiter "/" of field 1
> put item 1 by del "/" of fld 1
> put item 1 del "/" of fld 1
>or
> put item 2 of field 1 delimited by "/"
> put item 2 of fld 1 by del "/"
> put item 2 of fld 1 del "/"
>or even
> put item 2 of field 1 using delimiter "/"
> put item 2 of fld 1 using del "/"
> put item 2 of fld 1 del "/"
>
>Oh, I don't know. This is all getting a little cloudy and 'woods for trees'.
Personally, I favor "using", possibly with an optional "delimiter" (but not "del" --
it sounds too much like "delete" and doesn't need an abbreviation if it's optional
anyway). But it should be part of the item chunk itself, like so:
put item 2 using "/" of field 1
put item 2 using delimiter "/" of field 1
put item 1 using "." of last item using "/" of fullpath into filename
I also particularly like Ruediger zu Dohna's suggestion (in fact I was about to offer
the same idea), which is very compact and quite readable:
put "/"-item 2 of field 1
put "."-item 1 of last "/"-item of fullpath into filename
That's my "vote".
Doug Simons
Thoughtful Software