newEPS

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
newEPS
Summary

Sent to a new EPS object right after it's created.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
on newEPS -- warn the user if not supported
  if the platform is "MacOS" or the platform is "Win32" then
    answer "EPS objects are not supported on this system." with "Sorry"
  end if
end newEPS
RelatedProperty: script
Command: copy, clone, paste
Glossary: object, trap, EPS, message, tool, message path
Control Structure: pass
Description

Handle the newEPS message if you want to create additional objects, switch tools, or do other tasks when a new EPS object is created.

Normally, the newEPS message is handled at a higher level of the message path, since the newly-created EPS object does not yet have a script unless the templateEPS contains one.

The actual creation is not triggered by the newEPS message, so trapping the message and not allowing it to pass does not prevent the EPS object from being created.

Tagsobjects