• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Keystroke question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Keystroke question
      • From: Shane Stanley <email@hidden>
References: 
 >Keystroke question (From: Robert Poland <email@hidden>)
 >Re: Keystroke question (From: "Stockly, Ed" <email@hidden>)
 >Re: Keystroke question (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Keystroke question
  • Next by Date: Re: Keystroke question
  • Previous by thread: Re: Keystroke question
  • Next by thread: Re: Keystroke question
  • Index(es):
    • Date
    • Thread