forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfrontScripts.xml
More file actions
executable file
·70 lines (55 loc) · 2.62 KB
/
Copy pathfrontScripts.xml
File metadata and controls
executable file
·70 lines (55 loc) · 2.62 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<doc>
<legacy_id>2012</legacy_id>
<name>frontScripts</name>
<type>function</type>
<syntax>
<example>the frontScripts</example>
<example>frontScripts()</example>
</syntax>
<synonyms>
</synonyms>
<summary><glossary tag="return">Returns</glossary> a list of <glossary tag="object">objects</glossary> that have been inserted into the <glossary tag="message path">message path</glossary> before the target <glossary tag="object">object</glossary>.</summary>
<examples>
<example>the frontScripts</example>
<example>if myID is not among the lines of the frontScripts then insertMe</example>
</examples>
<history>
<introduced version="1.0">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
<changed version=""></changed>
<experimental version=""></experimental>
<nonexperimental version=""></nonexperimental>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
<category>Objects & Messages</category>
<category>Standalone Applications</category>
</classification>
<references>
<command tag="remove script">remove script command</command>
</references>
<description>
<overview>Use the <b>frontScripts</b> function to find out which scripts receive messages and function calls before the target object.</overview>
<parameters>
</parameters>
<value>The <b>frontScripts</b> function returns a list of the long ID property of all objects that have been inserted into the front, one ID per line.</value>
<comments>A script inserted into the front with the <command tag="insert script">insert script</command> command receives messages before all objects in the message path.<p></p><p>This includes messages sent with the <command tag="send">send</command> command, so if you send a message to an object, the objects in the <b>frontScripts</b> receive that message before the target object does. If the scripts in the <b>frontScripts</b> do not use the <control_st tag="pass">pass</control_st> control structure to pass on the message to the next object, the target object never receives the message.</p><p></p><p>If more than one object is in the <b>frontScripts</b>, their order in the message path is the same as their order in the list. For example, the first object in the <b>frontScripts</b> receives messages before the second object. This order is the reverse of the order in which the objects were added with the <command tag="insert script">insert script</command> command.</p></comments>
</description>
</doc>