Lion problem report and fix
Josh Mellicker
josh at dvcreators.net
Thu Jul 21 17:38:27 EDT 2011
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!
More information about the use-livecode
mailing list