• 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: Keyboard Question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard Question?


  • Subject: Re: Keyboard Question?
  • From: Richard 23 <email@hidden>
  • Date: Fri, 19 Jan 2001 01:38:13 -0800

>I'm pretty sure you could just activate the app first, something like this:
>
>tell application "Finder"
> activate
>end tell
>TypeText (ascii character 3)
>
>Except that, according to the AppleScript Scripting Additions Guide,
>although the activate command is built into the AppleScript extension, it's
>still classed as a scripting addition.
>
>Good luck moving that one outside the tell...

what's wrong with

activate application "Finder"

???

also if your script makes multiple references to the enter key I would
store the result of the Ascii Character command in a property. That way
it is called once during compile and never again.

property kEnter:Ascii Character 3


R23


  • Follow-Ups:
    • Re: Keyboard Question?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Follow-up on appletalk volume mounting
  • Next by Date: variables
  • Previous by thread: Re: Keyboard Question?
  • Next by thread: Re: Keyboard Question?
  • Index(es):
    • Date
    • Thread