I was reading a 'hack', posted at ResExcllence, that explained how to protect an Extensions Manager Set using ResEdit.
Protect An Extension Manager Set
Instead of using ResEdit, I wrote a script that does the same thing. Please test it and give me some feedback.
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>(*This droplet will change a Read-only Extensions Manager Set to an Editable Extensions Manager Set and vice versa.*)
on open these_items
tell application <font color = red>"Finder"</font>
try
repeat with current_file in these_items
set item_info to info for current_file
if (file creator of item_info = <font color = red>"7INI"</font>) then
if (file type of item_info = <font color = red>"RSET"</font>) then
set the file type of current_file to <font color = red>"ESET"</font>
else if (file type of item_info = <font color = red>"ESET"</font>) then
set the file type of current_file to <font color = red>"RSET"</font>
end if
else
display dialog <font color = red>"The item, \"</font>" & (name of item_info) & �
<font color = red>"\"</font> is not an Extensions Manager Set. Nothing will be done to this file." buttons �
{<font color = red>"OK"</font>} default button <font color = blue>1</font> with icon <font color = blue>1</font>
end if
end repeat
end try
end tell
end open</font>[/code]
Also, does this post belong in the Classic Mac OS Forum?
Thanks