How to translate a rev path to an absolut unix path?

Tiemo Hollmann TB toolbook at kestner.de
Sat May 1 08:50:26 EDT 2010


Hello,

 

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

Tiemo

 

 




More information about the use-livecode mailing list