Getting Finder results into LiveCode
Dr. Hawkins
dochawk at gmail.com
Tue Jan 12 11:33:55 EST 2016
On Tue, Jan 12, 2016 at 8:00 AM, Klaus major-k <klaus at major-k.de> wrote:
> Hi Peter,
>
> > Am 12.01.2016 um 16:50 schrieb Peter M. Brigham <pmbrig at gmail.com>:
> >
> > mdls doesn't like spaces in the file path. What do I do to escape spaces
> here?
>
> Just QUOTE it:
> …
> put shell( "mdls" && QUOTE & tFilepath & QUOTE) into tFileInfo
>
using double quotes can cause variable substitution in the shell. Instead,
put shell( "mdld '" & tFilepath "'") into tFileInfo
will dom it without risking any substitution.
And backticks (`) will cause anything inside them to be evaluated as a
command
--
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
More information about the use-livecode
mailing list