Used with several commands, usually to specify a default setting or send a callback when the operation of the command is complete.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
with
# Examples
open socket to "www.example.net" with message "mySocketOpened"
ask file "Please name the file:" with the short name of me
click at 100,100 with shiftKey
# Description
* accept, load, open socket, read from socket, write to socket: specifies a callback. * answer : specifies names of buttons. * answer color, answer file, answer folder, ask, ask file, ask password: specifies a default setting. * click, drag, type : specifies keys to be pressed. * export, import : specifies a mask file to use. * hide, show, unlock screen, visual effect: specifies a visual effect or sound effect. * combine, split : specifies delimiters to use for array entries. * create stack: specifies a group name to include in the new stack. * filter : specifies the wildcard. * intersect, union : specifies which array to use. * launch : specifies the application to use when opening a document with an application. * open printing: specifies whether to show the Print dialog box. * replace : specifies the replacement string. * reply, request : includes an AppleEvent keyword. * send to program: specifies whether to wait for a response. * wait : allows messages to be sent during the wait.
# Tags
# See
- **keyword:** default, without, using, string - **message:** appleEvent - **command:** combine, click, answer color, unlock screen, open printing, answer, type, show, visual effect, replace, wait, ask file, hide, [[]], import, answer folder, answer file, group, open socket, split, drag, ask, load, send to program, create stack, reply, union, request, export, write to socket, filter, launch, read from socket, intersect, ask password - **object:** button - **glossary:** delimiter, mask, callback, wildcard, message, keyword, array, command, dialog box