I apologize for not having responded to the last several posts, but it seems there is some clarification needed:
• My need is indeed to solve an issue with an AppleScript, but, at present, there does not appear to be a direct solution in AppleScript when using an Intel MAC to run the script.
• What I need to do in the AppleScript is to identify certain keys that are being held down -- when these keys are being held down, the script does one thing whereas if they are not being held down it does another. In general, it would appear that the keys held down must be "Command" and at least one other key (otherwise the "other" key may act on a window unrelated to the script which, for whatever reason, has been focussed on). So, "Command/Q" could work, whereas "Q" by itself might simply insert a string of Q's in the wrong place.
• For scripts run on a PPC MAC there is in fact a Scripting Addition called "keys pressed," included in Jon's Commands, which works perfectly for this -- but it isn't a Universal Binary and doesn't work on Intel MACS. The author told me has no plans to offer a Universal Binary version. In response to a post on the AppleScript Forum, it was suggested that I write my own Scripting Addition for Intel MACs; but it would appear that the programming skills needed to do this are beyond me at this time.
I hope the above is clear with respect to WHY I need this and WHAT the issues are.
• Since AppleScript can interact in significant ways with Terminal, I've turned to this forum to see if there is any way --using Terminal -- to identify keys that are being held down. I may be wrong, but it would seem to me that the system must have a
unique reaction to
any single key being held down. One of those keys must be "Command" (as the script must continue to work properly on PPC MACs), and I think the "other" key can be just about anything.
In summary, and as an example, my question is this: Is there anything I can enter on the Terminal command line that will output code which indicates that the "Command" and "Q" keys are depressed; +those actual key names need not appear in the output, as long as there is code that I can interpret as those names+. I'll worry about getting the proper information into the AppleScript.
Hope this is clear.
Message was edited by: Noaks