Process whose frontmost *was* true?
Process whose frontmost *was* true?
- Subject: Process whose frontmost *was* true?
- From: Jeff Porten <email@hidden>
- Date: Mon, 24 May 2004 01:02:51 -0400
First, apologies. I'm sure I've seen this discussed before, but I
can't find it in a fulltext search of AS-Users, or in Google efforts.
If my answer is easily found by a search I forgot to try, consider the
wet noodle already applied in 30 lashes.
I have an AppleScript that I'm calling with a keystroke (via Key Xing,
a discontinued SysPrefs hot-key app), and which I want to branch into
different functions depending on what application is frontmost.
Testing works fine by manually activating an app, and telling System
Events to return the process whose frontmost is true.
But when I run the script in real usage, the frontmost app is Key Xing
Listener. And I don't see a secondmost boolean.... I've tried telling
Key Xing Listener to hide, but since it's faceless, no dice. I've also
tried a delay (on the theory that the Listener just needed a second to
get out of the way), but further lack of dice resulted.
My rummage through AS-Users found a command to tell the Finder to
return a frontmost, which looked promising until it always returned
"Finder".
My gut says I'm complexifying this -- what am I missing?
Thanks,
Jeff
_______________________________________________
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.