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):

Video

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.

Comments

Name
Comment
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".
Enjoy!
Philippe J. Bruno - 2018-07-12
Hi JBM,
To double space, I simply go to Home tab > Paragraph Alignment > Paragraph Spacing Options… From there, I set the "Line spacing at least" setting to double the font size I use (generally Calibri 11 points, so I enter 22). From that point on, you'll get the effect of double spacing. When you are done with a paragraph, make sure to hit Enter to continue double spacing with the next paragraph. Otherwise, if you hit the Down Arrow key, you will revert back to single line spacing for the next paragraph.
CJE - 2018-07-11
Omer,
Thanks for the plethora of useful macros that you've had a hand in! Is there a macro that will get all the text in multiple pages and output all that text into separate text documents (one doc per OneNote page)? I've been looking around with no luck yet.
Thanks!

--CJE

Other Posts

Show all posts