Running a script in both OS 9 and 10
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.