Just wanted to let everyone know, Lion permissions default to not allowing 
Livecode to create folders in "/Library/Application Support/" with the "create 
folder" command.

Here's how we got around it:

First, this

   put "mkdir" && quote & "/Library/Application 
Support/theNewFolderWeNeed2create" & quote into tCmd
   get shell (tCmd)
   put it

returns "Permission denied".


But this:

   put "sudo mkdir -p" && quote & "/Library/Application 
Support/theNewFolderWeNeed2create" & quote into tCmd
   get shell (tCmd)
   
creates the folder, and oddly, does not prompt for the password, at least in 
the IDE (haven't tried with a standalone yet).

Then, this:

   put "sudo chmod -Rfv 777" && quote & "/Library/Application 
Support/theNewFolderWeNeed2create" & quote into tCmd
   get shell (tCmd)

makes it so that folders and items can be freely created in the new folder by 
Livecode on Lion. So everything is back to normal a la the Leopards.


Hope this helps someone out.


And, if anyone has a better way, please post!
_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to