Re: 'name of processes' in Classic Environment
Re: 'name of processes' in Classic Environment
- Subject: Re: 'name of processes' in Classic Environment
- From: Harald E Brandt <email@hidden>
- Date: Sun, 1 Sep 2002 15:00:56 +0200
+--> Christopher Nebel wrote 02-08-31:
On Saturday, August 31, 2002, at 02:04 AM, Harald E Brandt wrote:
How can I get a classic compiled script application running in
Classic Environment in OS X to get 'name of processes' without
getting an error, which currently is:
"system version is too old to run the installed scripting system"
That's a bug in older versions of AppleScript -- they don't work
correctly with the delegation mechanism the Finder uses to pass
things off to System Events. Upgrade your classic environment to
AppleScript 1.8.3 and it should be fine.
+--
Problem is that the script application is for distribution! People
will dislike If I "suddenly" demand them to upgrade Classic. And
Software Update doesn't upgrade AppleScript in Classic Environment if
OS X is running! So in practice, it won't work in OS X even though
they have upgraded to 10.1.5. I would have to require them to either
upgrade to 10.2 or have them manually update something they do not
understand (AppleScript). And the whole thing must work in 8.6 and
9.x since a very important classic app is involved. Tricky...
However, since you mentioned that System Events is the app that
really should receive it, I found the following solution to work as a
classic script app in 8.6, 9, and Classic under 10.1.5 with Classic
AppleScript 1.6:
try
tell application "Finder" to get name of processes
on error
set SystemEvents to "System Events"
tell application SystemEvents to get name of every process
end try
--do something with the result...
--Harald
__________________________BragIt___________________________
Harald E Brandt email@hidden
http://bragit.com
_______________________________________________
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.