Getting Finder results into LiveCode

Peter M. Brigham pmbrig at gmail.com
Tue Jan 12 15:16:49 EST 2016


Right, I found on a google search that single quotes are safer than double quotes.

-- Peter

Peter M. Brigham
pmbrig at gmail.com
http://home.comcast.net/~pmbrig

On Jan 12, 2016, at 11:33 AM, Dr. Hawkins wrote:

> 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
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list