Why does this crash in 9.2.2?
Why does this crash in 9.2.2?
- Subject: Why does this crash in 9.2.2?
- From: <email@hidden>
- Date: Wed, 19 Jun 2002 02:18:01 -0500
I'd like to get your comments on this script. I've been told that it will
crash the Finder in OS 9.2.2. (I haven't run into any problems using it in
9.1)
-Can any one tell me what statement causes the problems for 9.2.2?
-Where can I get some information about the subtle differences between
scripting for OS 9.1 and 9.2.2?
-Once I learn the subtle differences9 between scripting for OS 9.1 and
9.2.2, can I apply them to OS X or do I have to learn some more subtle
differences9?
TIA,
Speckledstone
(*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 "Finder"
try
repeat with current_file in these_items
set item_info to info for current_file
if (file creator of item_info = "7INI") then
if (file type of item_info = "RSET") then
set the file type of current_file to "ESET"
else if (file type of item_info = "ESET") then
set the file type of current_file to "RSET"
end if
else
display dialog "The item, \"" & (name of item_info) & ,
"\" is not an Extensions Manager Set. Nothing will
be done to this file." buttons ,
{"OK"} default button 1 with icon 1
end if
end repeat
end try
end tell
end open
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.