• 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
Re: 'name of processes' in Classic Environment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Address Book
  • Next by Date: Re: Opening System Preference Panes...
  • Previous by thread: Re: a "repeat" before a "on idle"
  • Next by thread: Re: Opening System Preference Panes...
  • Index(es):
    • Date
    • Thread