frontmost in Leopard vs Tiger
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