Re: Keystroke question
Re: Keystroke question
- Subject: Re: Keystroke question
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 23 Nov 2015 14:03:41 -0500
On Nov 23, 2015, at 1:15 PM, Stockly, Ed < email@hidden> wrote:
OMM, this script works the same as if I hit option-f (doesn't do anything, unless there is a text cursor, then it gives me a ƒ).
If I hit command-f I get the searching this mac window.
How does your user interface respond to option-f and command-f?
The same as on your machine.
Option-f is not intercepted or interpreted by the system as a command. It just types a unicode italics f character. But if you try to type the character by executing an AppleScript script that sends a 'keystroke' Apple event, the act of launching the script usually sends any receiving active text field into the background, which makes it inactive so that the typed italics f character won't be entered. I think you can avoid sending the text field to the background by executing the script from the Scripts menu, or something like that. The OP made it clear later that he was in fact trying to type the character, but he found the alternative approach that I and others suggested to be more useful for his purposes.
|
_______________________________________________
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