Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Create a keyboard shortcut for the maximize button' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a keyboard shortcut for the maximize button
Authored by: FattyMoBookyButt on Jun 06, '07 06:35:59AM
I'm trying to run this from the Scripts drop-down in my menu bar. Is there a way to select the triggering app? Like last used app, or last accessed by User?
tell application "System Events"
    set frontApp to (name of first application process whose frontmost is true) as string
    display dialog "frontApp: " & frontApp
end tell
This will returns "System Events" if you run the script directly...which is boo.

[ Reply to This | # ]