Add Tags with Macros
September 30, 2016
An update is available for Onetastic that adds the ability to add tags with Macros. With this update tags are first class objects
in Macro language. Previously only the first tag in a paragraph was available with tagName property
and any additional tags were not available. A new tags property
is now added to access all tags in a given paragraph. Also InsertObject function
can now add tags to paragraphs as well as images and embedded files when they are directly under a page.
New macros are added to Macroland, demonstrating how to add tags in Macro language.
Search & Tag
Search & Tag macro
allows finding paragraphs with given search term and automatically applying the desired tag to it.
23 tags are available from the list and the macro can be executed against the current selection, current page, section, notebook or all notebooks. Additionally it can be used to inserted completed (checked) tag or complete (check) existing tags instead of adding new tags.
Sample - Insert Tags
Sample - Insert Tags macro
is a sample macro that shows how to use tags. It inserts all available tag symbols onto a new page. Following symbols can be used with tags. This information can also be found in the Tag object documentation
Several bug fixes are also included in this update:
- Fixed Invalid XML errors in various scenarios
- Added version info on Settings menu under separate Macros tab - it was only available from the Home tab in the last update
- Fixed an issue where inserting new page via Macros navigates the wrong OneNote window
- Fixed macro errors when modifying Paragraph.text property
Finally a small update is simultaneously available for OneCalendar that fixes an issue where the page previews will be very small.