How to handle spaces in a path when using shell

Thierry Douez th.douez at gmail.com
Wed Nov 14 03:05:09 EST 2012


Hi Glen,

> put shell("/Users/lab/Desktop/tools/HardwareSimulator.sh")
> but when there are any spaces it doesn't work... the space is
> between Macintosh and HD2

This snippet works:

   get "/Volumes/Macintosh HD"
   replace space with  "\ " in IT
   put shell("ls " & IT)


change whatever to fit your needs.

Hope you get hte idea..

Thierry




More information about the use-livecode mailing list