Shell - argv parameter with SPACE

JB sundown at pacifier.com
Sat Jun 24 22:25:23 EDT 2017


 on mouseUp 
   set the defaultFolder to "~/Desktop"
   
   /* ADD SPACES IN ARGUMENTS BY USING QUOTE */
   --put "One" into tFILE1
  // Below I added a space in the filename before the word copy.
   put quote & "/Users/JB/Desktop/SomeFile copy.jpg" & quote into tFILE1
   put "Two" into tFILE2
   put "Three" into tFILE3
   put "Four" into tFILE4
   put shell( "./argv_c++" && tFILE1 && tFILE2 && tFILE3 && tFILE4) into pData
   put pData into fld id <YOURFIELD>
   beep 2
end mouseUp


More information about the use-livecode mailing list