• 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
'System Events.app' won't get processes in Classic under 10.2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'System Events.app' won't get processes in Classic under 10.2


  • Subject: 'System Events.app' won't get processes in Classic under 10.2
  • From: Harald E Brandt <email@hidden>
  • Date: Thu, 3 Oct 2002 23:06:02 +0200

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.

  • Follow-Ups:
    • Re: 'System Events.app' won't get processes in Classic under 10.2
      • From: Jay Young <email@hidden>
    • Re: 'System Events.app' won't get processes in Classic under 10.2
      • From: John Delacour <email@hidden>
References: 
 >Re: Xpress template to document (From: David Glass <email@hidden>)

  • Prev by Date: Re: Regex on OS X
  • Next by Date: Re: 'sort' command-alternative?
  • Previous by thread: Re: Xpress template to document
  • Next by thread: Re: 'System Events.app' won't get processes in Classic under 10.2
  • Index(es):
    • Date
    • Thread