Apple Script and keys
June 17, 2002 5:39AM
edited January 2014
Is it possible to make a script in Apple Script which holds down a key on the keyboard? If so, what must I do?
Reply 1 of 1
June 17, 2002 5:21PM
You can try downloading a free scripting addition called <a href="
; target="_blank">Sigma's Additions</a>, which adds a single command:
. You can add text to a document and also select various menu items, provided they have keyboard equivalents. To use it, you would do something like:
[code]tell application "AppleWorks 6"
make new document at beginning
tell front document
type text "This is a test."
type text "a" holding down command -- select all
type text "b" holding down command -- make bold
Unfortunately, there's a twenty character limit, so entering a large amount of text is cumbersome.
Hope this helps.
[ 06-17-2002: Message edited by: DoughBoy ]</p>