<doc>
	<legacy_id>1916</legacy_id>
	<name>edit</name>
	<type>command</type>

	<syntax>
		<example>edit [the] script of <i>object</i> [at line,column]</example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Opens the <property tag="script">script</property> of an <glossary tag="object">object</glossary> in the <glossary tag="development environment">development environment</glossary>.</summary>

	<examples>
<example>edit the script of this card</example>
<example>edit the script of button 1</example>
<example><p>edit the script of player "Show Me"</p></example>
	</examples>

	<history>
		<introduced version="1.0">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
	</platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
	</classes>

	<security>
	</security>


	<classification>
		<category>Writing LiveCode</category>
	</classification>

	<references>
		<function tag="licensed">licensed function</function>
		<property tag="script">script property</property>
		<property tag="editScripts">editScripts property</property>
		<property tag="userLevel">userLevel property</property>
		<message tag="editScript">editScript message</message>
	</references>

	<description>Use the <b>edit</b> <glossary tag="command">command</glossary> in the <glossary tag="development environment">development environment</glossary> to open the LiveCode <glossary tag="script editor">script editor</glossary> with the <property tag="script">script</property> of the specified <glossary tag="object">object</glossary>.<p></p><p><b>Parameters:</b></p><p>The <i>object</i> is any object reference.</p><p>Usint the optional at syntax will pass the subsequent items to the editScript handler as a second parameter. By convention the first two parameters should be a line number and a column character offset from the start of the line.</p><p></p><p><b>Comments:</b></p><p>The <b>edit</b> <glossary tag="command">command</glossary> is equivalent to selecting the object and choosing Object menu then Object Script.</p><p></p><p></p><important>. If the script editor is not open, the <b>edit</b> command opens a window that shows the script.</important></description>
</doc>