editScript

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
editScript <pObjectID>, <pAtItems>
Associationscard
Summary

Sent to the current card when the object's script is opened with the edit command.

Introduced6.5
OSmac, windows, linux
Platformsdesktop, server
Parameters
NameTypeDescription
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.

Example
on editScript theObject -- save current script before editing
  set the oldScript of theObject to the script of theObject
  pass editScript
end editScript
RelatedKeyword: message box
Property: script
Command: edit
Glossary: object, handler, current card, message, command, development environment
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.