Access the File System with Macros

February 02, 2025

An update to Onetastic brings the ability to access the file system via Macros. This can be useful to import files programmatically into OneNote as well as process contents of local files to modify your OneNote notebooks. You can also automate exporting information from OneNote to files on disk.

Access to file system is provided via File System Functions summarized below. See the documentation for each function for more information.

Checking if a file or folder exists

Asking the user to pick files and folders

Creating and deleting files and folders

Reading and writing files

Enumerating contents of a folder and known folders

Obtaining the size of a file

Comments

Name
Comment
Onetastic ★ - 2025-10-28
DEsser: Check out the Import CSV macro which does what you are looking for. You can find it at https://getonetastic.com/macro/import-csv
DEsser - 2025-10-28
Hello,

How can I read a file line by line using "Filesystem_ReadFromFile" and store the contents in an array of variables? Is that even possible?

Example:
Month, Day, Birthday
1,13,Chris
2,12,Dieter
DEsser - 2025-04-19
Hello, this was written using a translation program.

I created a table for a OneNote page using a macro. Is it now possible to insert the "Tasks" category—that is, the checkbox—into a cell of the table using a macro command?
Thank you in advance for your support.
Regards,
Dieter

Other Posts

Show all posts