0

I would like to read-out my locally stored Onenote book/section/page with Matlab and automatically search for specified strings. How can this be achieved? Does the Onenote API have to be interfaced or is there any easier way?

Here is what I have so far (online resources are scarce):

app=actxserver('onenote.application');
app.get(); %... to run some functions of the Onenote API?

I'm new to this and more information may be also useful for others. Here's the two references [1,2] that I found.

Related: accessing onenote in Java

user2305193
  • 2,079
  • 18
  • 39
  • please specify why you downvote. The question is broad, but there is not a lot of information to go on as far as I find. – user2305193 Nov 05 '17 at 18:49
  • update: I got around to read the *.one file as text, scanning for regions of interest. This is very hacky and bruteforce, but I'll post the answer if nothing better comes up – user2305193 Nov 05 '17 at 21:31

1 Answers1

0

If you can peform authentication in Matlab (or just paste in a token) and issue web requests, you can use the search API.

https://www.onenote.com/api/v1.0/pages?$search=...

Note that search only works with consumer accounts/notebooks that are synced to the cloud.


I am not sure how you could interface this with matlab, but if you are running on Windows you could use the interop API (this would be a local solution)

How To Write To A OneNote 2013 Page Using C# and The OneNote Interop

Jorge Aguirre
  • 2,787
  • 3
  • 20
  • 27