file size

Dick Kriesel dick.kriesel at mail.com
Tue Sep 23 03:47:30 EDT 2014


On Sep 22, 2014, at 4:33 PM, Richard Gaskin <ambassador at fourthworld.com> wrote:

> But it really should be a one-liner

OK, Richard.  Here's one.

-- given variable tFile, containing the name of a file in the default folder
-- given variable tSize, which is where to put the size of the file

     get matchText( the detailed files, ( "(?m)^\Q" & urlEncode( tFile ) & ",\E(\d*).*" ), tSize )

Too bad it's so hard to read, remember, and type.



More information about the use-livecode mailing list