PreFab...Player...Documentation...AppleScript...User's Guide...Chapter 5, Verbs...One Verb Per Page...

type: text and special keys


Syntax

type textOrKeys [holding modifierKeys]


Parameters

textOrKeys -- text, a special key, or a list of text and/or keys

[holding modifierKeys] -- one or more modifier keys (command, shift, option, control, caps lock), concatenated with "&"


Result

true


Examples

type "Hello World" -- plain text (including variables)
type "One" & tab & "Two" -- tab is an AppleScript constant
type letterToMom -- a bunch of text (stored in a variable)
type down arrow -- a single key
type {escape, delete, page up, F12, keypad1} -- different types of keys
type {"One", down arrow, "Two"} -- mix text and keys
type "s" holding command -- save
type up arrow holding command & option -- go to summit ("home") in MORE
type {right arrow, right arrow} holding shift -- select text


Notes



Errors

unknown key


See Also

set typing delay

| Top |


move| Prev | Home | Next |disable user input

Updated on 2/5/97 by Scott S. Lawton (ssl@prefab.com)

Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.

This site built and maintained using Stage Three, a set of custom Frontier scripts.