Re: Keystroke question
Re: Keystroke question
- Subject: Re: Keystroke question
- From: Steve Mills <email@hidden>
- Date: Mon, 23 Nov 2015 13:37:14 -0600
On Nov 23, 2015, at 13:03:41, Bill Cheeseman <email@hidden> wrote:
>
> 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.
Also keen in mind that any modifier keys the user might be holding when the script runs will be added to the "keystroke" command. That continually annoys me when I launch scripts via DragThing that type in my password or whatever, but I don't release the "launch that script" keys quickly enough.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
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