home *** CD-ROM | disk | FTP | other *** search
- set frontProcess to ""
- tell application "System Events"
- if UI elements enabled then
- set frontProcess to item 1 in (every process where frontmost = true)
- get every menu item of every menu of menu bar 1 of frontProcess
- else
- return {"", "UI Scripting off"}
- end if
- end tell
- if frontProcess ¡ "" then
- try
- with timeout of 5 seconds
- tell application (name of frontProcess)
- return ╟event [KQ]Cuts╚ -- KeyCue shortcuts
- end tell
- end timeout
- on error
- return {"", "no response"}
- end try
- else
- return {"", "no front process"}
- end if
-