Executing the Shortcut command produces a function call.
By using commands from the Layout Constructors package a nested function call can be produced which represents a worksheet.
That XML representation of a worksheet can be inserted directly.
My Shortcut
The previous example's call to the InsertContent command inserted a component with identity "Shortcut0", which still exists in this worksheet. Inserting additional content whose input contains another component with that same identity "Shortcut0" incurs a substitution of the input identity in order to avoid a conflict with the identity of the existing component.
The return value of the following call to InsertContent is a table which can be used to reference the substituted identity of the inserted component.
New Shortcut
The next example generates and inserts a shortcut for launching help on the int command.
Help for int
The following examples insert components with custom images.
New Shortcut
New Shortcut
New Shortcut