How to translate a rev path to an absolut unix path?
zryip.theslug at gmail.com
Sat May 1 09:46:51 EDT 2010
2010/5/1 Tiemo Hollmann TB <toolbook at kestner.de>:
> since I don't find a way how to preserve the lock status of a file, when
> zipping, I am now trying to follow Marks plan B, but am shipwrecking without
> Mac experience.
> I have the rev path of my file like: "/foo/myfile" in myFile. I have an
> oneliner applescript "set the locked of myFile to true". I stored the
> applescript in a field and wanted to replace a placeholder for the filename
> like "<filename>" in the applescript by the revfile path myFile. Now I
> replaced slash with colon, so that I get :foo:myFile.
> But applescript doesn't likes it. Probably because applescript needs an
> absolute path like Macintosh HD:foo:myFile. How do I achive that, without
> knowing the name of the users HD?
> Add: What user rights does a user needs to change the locked attribute by
> applescript? Or what happens, if a user, without full rights, runs my prog
> with this applescript?
> Thanks for any help
Have you tried to use the POSIX path in applescript?
POSIX path of file "Macintosh HD:foo:myFile"
-Zryip TheSlug- wish you the best! 8)
More information about the Use-livecode