{"identifier":36226,"topic":"Commands","name":"edit script","text":"<code>edit <\/code>[<code>the<\/code>]<code> script of <i>object<\/i><\/code> <br><br>\n\n The<code> edit script <\/code>command opens the script of an object with the HyperCard script editor.   <br><br>\n\n When run as a statement in a handler, <code>edit script <\/code>suspends execution of the handler until the user closes the script editor or activates the card window. <br>\n<br>\nNote: Even though HyperCard itself is an object (it can receive messages), it does <u>not<\/u> have a script. The following statement yields an error: <code><pre>\nedit the script of HyperCard\n<\/pre><\/code>\nFor this command to work, the <code>userLevel <\/code>property must be set to 5. <br>\n","related":{"80353":"script","80403":"scriptEditor"},"examples":"edit the script of this card\nedit script of background 2\nedit script of card button 1 of card 1\nedit script of last background part\n\nedit script of stack \"Home\"\nedit script of this stack","demo":"on openScriptWindow\n   set the script of bkgnd field \"Demo Script\" to\u00ac\n   \"-- Click the close box to close this script window!\"\n   <b>edit<\/b> script of bkgnd field \"Demo Script\"\n end openScriptWindow\n ","debug":{"9":["edit [the] script of"],"10":["Note: Even though Hy"]}}