Multi-Select and Cut/Copy/Paste Support in Macro Editor
May 01, 2018
With today's update, you can now select multiple lines of code together in Macro Editor and then move, delete or expand/collapse them together. You can also cut or copy multiple lines of code and then paste them elsewhere in the same macro or to another macro. You can even paste copied code with syntax highlighting into Word or OneNote.
Cut/Copy/Paste of multiple lines requires a Onetastic Dev license. Here is a little demonstration of the new capabilities (no audio):
Direct Access to Page Title
Today's update also includes a few small additions to the macro language: Page.title and Page.hasTitle properties
and Title.paragraph property
Page.title property represents the title area of the page that contains the title bar, date and time. Accessing this object will create the page title if it doesn't already exist. You can use Page.hasTitle property to check whether a title already exists or not.
Title.paragraph property gives access to the single paragraph that is in the title. These properties will make it easier to set or retrieve the title of a page:
$page = GetCurrentPage()
$page.title.paragraph.text = "Hey!"
Macro Logging Deprecated
Before developer tools like Macro Debugger and Object Browser
existed, you could get a log of a macro execution through Settings
/Enable Macro Debugging
. With the introduction of powerful developer tools this feature is now deprecated and will be removed in a future update.