• 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
frontmost in Leopard vs Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

frontmost in Leopard vs Tiger


  • Subject: frontmost in Leopard vs Tiger
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 24 Jul 2008 19:35:23 -0500

I've run into a problem with a single line of code in "MyApplication".

tell application "System Events" to (name of (some process whose frontmost is true)) as text

"MyApplication" is written and compiled in Leopard as a faceless background application (LSUIElement = 1). It ought to run on Tiger, too. When run in Leopard, the line above returns the name of the application that was frontmost when "MyApplication" was launched.

There is a problem in Tiger. The line of code above returns "MyApplication", which is incorrect.
"MyApplication" does not show in the Dock or Menu bar, but the code above behaves as if it did.


Has anyone else seen this behavior?

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: frontmost in Leopard vs Tiger
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Computer Serial Number
  • Next by Date: Re: Computer Serial Number
  • Previous by thread: Re: iCal moving events to calendar not working
  • Next by thread: Re: frontmost in Leopard vs Tiger
  • Index(es):
    • Date
    • Thread