Player
Documentation
AppleScript
User's Guide
Chapter 5, Verbs
One Verb Per Page
disable user input: disable mouse and/or keyboard input -- new in 1.5
Syntax
disable user input [from mouse/keyboard] [flashing icon true/false] [command period to abort true/false]
Parameters
from mouse/keyboard -- which input to disable; defaults to both (can explicitly specify both by concatenating with "&")
flashing icon true/false -- set to false to disable the image that flashes in the upper left corner ... WARNING: if mouse input is disabled, users may think the computer is frozen
command period to abort true/false -- set to false to prevent command-period from enabling user input and aborting the script ... WARNING: if you don't allow command-period, it may be quite difficult to abort a runaway script
Result
true
Examples
disable user input
disable user input from mouse -- allow only keyboard input
disable user input from keyboard -- allow only mouse input
Notes
- This verb doesn't work with USB keyboard & mouse. (Actually, it might disable USB keyboard input but no guarantees.)
- Even when keyboard input is disabled, pressing command-. (period) will abort unless you have explicitly disabled that using the optional parameter. (Depending on what the script is doing, you may have to press and hold it for a few seconds.)
- AppleScript turns things like "flashing icon false" into "without flashing icon"; you can also type it that way directly.
See Also
enable user input
enable user input
Copyright 1993-99, PreFab Software, Inc. All Rights Reserved.
This site built and maintained using Stage Three, a set of custom Frontier scripts.