• 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
Running a script in both OS 9 and 10
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Running a script in both OS 9 and 10


  • Subject: Running a script in both OS 9 and 10
  • From: Rob Stavis <email@hidden>
  • Date: Mon, 26 Jan 2004 18:31:08 -0500

I'm working on an AppleScript that can be used on both OS 9 and OS 10 boxes. Using the system attribute sysv, I can figure out the OS. At one point in the script, I want to determine if an application is running, and if the OS is 10, I use System Events to determine the application processes, whereas in OS 9, I use the Finder. (I thought that the legacy suite of the Finder would support getting application processes using the Finder in OS 10, but I can't get that to happen.)

On an OS 9 box, the app System Events doesn't exist, so on the first run I'm presented with a dialog asking me to identify the application System Events. The response wouldn't matter since this piece of the script doesn't get called in OS 9, but the script would be changed and could not then be used an OS 10 machine. Plus, it's very confusing for the user.

Can you see a work-around for this problem (aside from having 2 different versions of the script)?

Thanks,
Rob Stavis
_______________________________________________
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: Running a script in both OS 9 and 10
      • From: Graff <email@hidden>
    • Re: Running a script in both OS 9 and 10
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Need help with an Apple Script Error Code
  • Next by Date: Re: UI Element Inspector
  • Previous by thread: GUI - radio button "Clock"
  • Next by thread: Re: Running a script in both OS 9 and 10
  • Index(es):
    • Date
    • Thread