forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditScript.lcdoc
More file actions
46 lines (32 loc) · 1.22 KB
/
editScript.lcdoc
File metadata and controls
46 lines (32 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Name: editScript
Type: message
Syntax: editScript <pObjectID>, <pAtItems>
Summary:
Sent to the <current card> when the <object|object's> <script> is opened
with the <edit> <command>.
Associations: card
Introduced: 6.5
OS: mac, windows, linux
Platforms: desktop, server
Example:
on editScript theObject -- save current script before editing
set the oldScript of theObject to the script of theObject
pass editScript
end editScript
Parameters:
pObjectID:
The long ID property of the object whose script is about to be opened.
pAtItems:
The pAtItems parameter may be sent if the optional edit script of object
at syntax is used. By convention the pAtItems are used to provide a line
and column that a script editor should be opened at.
Description:
Handle the <editScript> <message> if you want to intercept attempts to
edit a <script> via the <message box> or a <handler>.
The <editScript> <message> is sent when you use the <edit> command in a
<handler>. However, it is not sent when the <development environment> is
active.
References: edit (command), object (glossary), handler (glossary),
current card (glossary), message (glossary), command (glossary),
development environment (glossary), message box (keyword),
script (property)