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.


Omer Atay - 2018-07-20
vanz99: There is no option to record macros. Macros also currently don't support the paragraph spacing options.
vanz99 - 2018-07-20
Hi all, I didn't see any documentation on how to record our own macros. I think there should be an option to Record for those of us with specific needs...if this option exists please send a link on the directions.

I do have a macro request on something I constantly do for easier web page copying... It is for paragraph Line spacing which I'm surprised not to find an option for under macro downloads.
Paragraph Spacing options...
Before: 10
After: 10
Line Spacing at least:  6

Any help is appreciated.

Philippe J. Bruno - 2018-07-16
Hi Dianna,
I saw your request and thought it was a nice little challenge. As a result, I wrote a macro that does exactly what you are looking for. See it for yourself, it is now available in Macroland under the name "Sum Hours In Page Titles of Current Section".

Other Posts

Show all posts