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.


Philippe J. Bruno - 2018-06-22
Hi Omer, I was manually fixing some notes, adding space after each paragraph, and I wanted to add some extra space before each Heading 1 paragraph. To make this a breeze, I wrote a nice little macro only to find out that Paragraph.spaceBefore is a read-only property! Why is that? Can you make it a read-write property in the next update?
Imagineer44 - 2018-06-21
I just paid for another year of OneTastic, and on this page I see that I won't be able to use it if I upgrade OneNote (currently using 2016). I assume MS will update OneNote whether I want it to or not (I'm using 365). What a loss!
Omer Atay - 2018-06-18
Jasmine: OneNote for Windows 10 does not support addins.

Other Posts

Show all posts