AW: how to copy a folder from preferences under lion?
Tiemo Hollmann TB
toolbook at kestner.de
Wed Aug 10 12:19:53 EDT 2011
I also tried to just copy the files (cp), which works with standard files,
but not with a hidden file (dotFilename).
> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Tiemo Hollmann TB
> Gesendet: Mittwoch, 10. August 2011 13:12
> An: 'How to use LiveCode'
> Betreff: how to copy a folder from preferences under lion?
> My software had a folder and files in /library/Preferences/ where now
> Lion the user has no permissions any more
> I want to build a migration tool for my customers to move the folder and
> files from /library/Preferences/ to the new location at
> I tried: get shell("sudo mv" oldPathAndFolder newPathAndFolder) and same
> with ditto. Executing this command just nothing happens, the result
> I tried it with AppleScript:
> Tell "Finder"
> do shell script "mv /oldPath/AndFolder/ /newPath/AndFolder/"
> end tell
> it returns an execution error, when trying to copy from preferences.
> from user folders runs fine.
> Trying: do shell script "mv /oldPath/AndFolder/ /newPath/AndFolder/ with
> administrator rights" returns a compiler error
> Why can I move my folder from preferences with the terminal using "sudo
> but not from within LC? What am I doing wrong? Or is Jans proposal to
> a separate executable and elevate the rights the only way to get
> permissions? (no idea yet how to do that, therefore not tested it yet)
> Thanks for any help
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
More information about the Use-livecode