Common writable folders

Jim Ault JimAultWins at yahoo.com
Thu Jan 18 16:56:14 EST 2007


On 1/18/07 1:46 PM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:

> Ken Ray wrote:
> 
>> you needt to escape the backslash because AppleScript uses that
>> for its own purposes. Try this:
>> 
>>   put "chmod 777 /Library/Application\\ Support/myfolder/" into tShellCmd
>>   put "do shell script" &&quote& tShellCmd &quote&& "with administrator
>> privileges" into tCmd
>>   do tCmd as applescript
>>   put the result
> 
> That seems to work too, good to know. But see my other note, I got it to
> work without any backslash at all.


The reason for this is that there are two layers of escaping needed.
 1) Applescript uses the \ character to escape things in any string;

 and 2) the shell itself uses \ to escape things.





More information about the use-livecode mailing list