• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why does this crash in 9.2.2?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does this crash in 9.2.2?


  • Subject: Why does this crash in 9.2.2?
  • From: Marty Fleckenstein <email@hidden>
  • Date: Wed, 19 Jun 2002 15:15:48 -0700 (PDT)

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 differences 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 differences?

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.

  • Follow-Ups:
    • Re: Why does this crash in 9.2.2?
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Adobe Illustrator Scripting
  • Next by Date: Re: Mouting a server in OSX
  • Previous by thread: Re: Mouting a server in OSX
  • Next by thread: Re: Why does this crash in 9.2.2?
  • Index(es):
    • Date
    • Thread