Re: AW: How to translate a rev path to an absolut unix path?
Le 1 mai 2010 à 17:47, Tiemo Hollmann TB a écrit : > Bon soir Thierry, > > your proposal seems to be half the way. Bonsoir Tiemo, So, did check with your specs. add a bundle folder in my dir, hide and lock a test file inside the bundle folder and did this : -- create a zip file keeping all specifics macos flags > ditto -c -k --sequesterRsrc SrcFolder testditto.zip -- check what is inside the zip file > unzip -l testditto.zip Archive: testditto.zip Length Date TimeName 6148 04-23-10 19:05.DS_Store 0 05-01-10 21:28__MACOSX/ 82 04-23-10 19:05 __MACOSX/._.DS_Store 0 04-18-10 07:32 .localized 13 05-01-10 15:32 f1 82 05-01-10 15:32 __MACOSX/._f1 15 05-01-10 15:32 f2 0 05-01-10 21:10tdzx.bundle/ 0 04-27-10 11:22 tdzx.bundle/Contents/ 1225 04-27-10 11:26 tdzx.bundle/Contents/Info.plist 0 04-29-10 09:17tdzx.bundle/Contents/MacOS/ 216920 04-29-10 09:17 tdzx.bundle/Contents/MacOS/tdzimgdatafilter 0 04-27-10 11:22 tdzx.bundle/Contents/Resources/ 0 04-27-10 11:22 tdzx.bundle/Contents/Resources/English.lproj/ 92 04-27-10 11:22 tdzx.bundle/Contents/Resources/English.lproj/InfoPlist.strings 13 05-01-10 21:10 tdzx.bundle/test 0 05-01-10 21:28__MACOSX/tdzx.bundle/ 82 05-01-10 21:10 __MACOSX/tdzx.bundle/._test -- You can see these __MACOSX/ files. they store the flags values. > ditto -x -k testditto.zip Z Done ! Tres belles fetes du muguet :) Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
AW: How to translate a rev path to an absolut unix path?
Bon soir Thierry, your proposal seems to be half the way. Doing it your way, ditto creates a folder as the output, containing the app and the file within the app is still locked. That looks good, beside the output is a normal folder and isn't a zip file anymore. Using the parameter Ditto -c - k -rsrcFork the output is a zip file, but the locked flag of my file within the app is gone. It seems I don't understand ditto and it's handling of files, folders and bundles. Tiemo > -Ursprüngliche Nachricht- > Von: use-revolution-boun...@lists.runrev.com [mailto:use-revolution- > boun...@lists.runrev.com] Im Auftrag von Thierry D. > Gesendet: Samstag, 1. Mai 2010 15:46 > An: How to use Revolution > Betreff: Re: How to translate a rev path to an absolut unix path? > > > Le 1 mai 2010 à 14:50, Tiemo Hollmann TB a écrit : > > > Hello, > > > > since I don't find a way how to preserve the lock status of a file, > > Hi Tiemo, > > This command did work for me on Snow Leopard : > > ditto -v -rsrcFork /source /destination > > I could keep all hidden and immutable flags ! > > HTH > > Regards, > Thierry > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to translate a rev path to an absolut unix path?
2010/5/1 Tiemo Hollmann TB : > 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 "" 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 Hi Tiemo, Have you tried to use the POSIX path in applescript? POSIX path of file "Macintosh HD:foo:myFile" HTH, Regards, -- -Zryip TheSlug- wish you the best! 8) http://www.aslugontheroad.co.cc ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: How to translate a rev path to an absolut unix path?
Le 1 mai 2010 à 14:50, Tiemo Hollmann TB a écrit : > Hello, > > since I don't find a way how to preserve the lock status of a file, Hi Tiemo, This command did work for me on Snow Leopard : ditto -v -rsrcFork /source /destination I could keep all hidden and immutable flags ! HTH Regards, Thierry ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
How to translate a rev path to an absolut unix path?
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 "" 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 ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution