Re: 'System Events.app' won't get processes in Classic under 10.2
Re: 'System Events.app' won't get processes in Classic under 10.2
- Subject: Re: 'System Events.app' won't get processes in Classic under 10.2
- From: Jay Young <email@hidden>
- Date: Thu, 3 Oct 2002 22:50:19 -0500
Hi Harald,
Take a look at a message Kai Edwards posted on 10/1/2002. It's Subject
Title is:
Re: Substituting missing Classic terms - a bridge to OS X (was Setting
and getting a file's icon in OS X?)
He gives some excellent suggestions (as well as some code) that can
help with using the 'Finder' and/or 'System Events' in Classic Mode
with Classic Scripts which works with OS 10.2.1.
Jay
On Thursday, October 3, 2002, at 04:06 PM, Harald E Brandt wrote:
With 10.1.5, I was recommended by Chris Nebel to use 'System
Events.app' to get processes in a Classic script app. It worked fine.
The reason to use System Events was due to a bug he said: "It'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."
Now, with X 10.2.1, that is broken!!!
Despite it upgrades Classic AS to 1.8.3!
My classic script app can no longer get processes from 'System
Events.app', and worst of all, it can still not get it by telling
Finder directly!! Worst bug combination!. Is there any remedy that
works on all systems?
Example:
set SystemEvents to (((path to startup disk) as string) &
"System:Library:CoreServices:System Events.app")
tell application SystemEvents to get every process
The error it issues is:
"System Events got an error: Application isn't running"
And: tell application "Finder" to get every process
doesn't work either, despite that was a bug in the earlier release,
and which Chris said would be eliminated by upgrading. Now everything
is broken with 10.2
What the hell shall I do?
PS: My script app is intended for the range 8.6 over to Classic under
10.2. For 8.6 and 9.x, I let Finder tell me the process thing, having
it in a try block and in the error block I try System Events. That
worked fine up until (and including) 10.1.5, but is broken in 10.2.1
(probably broken already in 10.2, but currently I only have 10.2.1 to
test on.)
__________________________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.
_______________________________________________
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.