Hi Tiemo,
Here's an AppleScript snippet that shows how to lock and unlock files.
set myFile to choose file
tell application "Finder"
set the locked of myFile to not the locked of myFile
return the locked of myFile
end tell
It is easy to adjust the script to always set the lock of a particular
file to true or to check whether it is currently locked etc.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
We have updated TwistAWord. Download TwistAWord 1.1 at http://www.twistaword.net
Op 30 apr 2010, om 14:23 heeft Tiemo Hollmann TB het volgende
geschreven:
Hello,
still not very familiar with the Mac and its specialities I need
some help
with zipping with ditto.
I have a locked file in my App bundle. After zipping and unzipping
the whole
bundle (in an update process) the locked file isn't locked anymore.
The ditto parameters I am using for zipping are:
Ditto -c -k --sequesterRsrc
Can anybody shed some light on this, how I can preserve the locked
file
being locked?
Thanks for any hints
Tiemo
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution