Re: Keyboard Question?
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