alopezrivera / OneNoteExporter

Export your OneNote note collection to Obsidian, Logseq, Org Mode or any other plain text note-taking app!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support to MacOs

CsBigDataHub opened this issue · comments

Please provide support to MacOs

Unfortunately I don't have an Apple machine, so it's rather difficult for me to take care of this. I'll get back to it if I have the chance in the future.

It seems PowerShell 7 is cross-platform. If you @CsBigDataHub or anybody else can test owo using it and report any issues it would be appreciated :)

Thanks in advance!

@alopezrivera , Sorry for the delay.

After replacing pandoc.exe to pandoc, this is the error thrown -

Write-Error: /Users/mymac/GitRepos/my-projects/owo/owo.ps1:100
Line |
 100 |      owo @params
     |      ~~~~~~~~~~~
     | Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path '/assembly/GAC_MSIL/Microsoft.Office.Interop.OneNote/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.OneNote.dll' because
     | it does not exist."

Write-Error: /Users/mymac/GitRepos/my-projects/owo/owo.ps1:100
Line |
 100 |      owo @params
     |      ~~~~~~~~~~~
     | at New-OneNoteConnection, /Users/mymac/GitRepos/my-projects/owo/src/OneNote/OneNote-Connect.psm1: line 16 at owo, /Users/mymac/GitRepos/my-projects/owo/owo.ps1: line 29 at
     | <ScriptBlock>, /Users/mymac/GitRepos/my-projects/owo/owo.ps1: line 100 at <ScriptBlock>, <No file>: line 1

I guess the script is looking for onenote.dll, I am not sure if this path below works!
/Applications/Microsoft OneNote.app/Contents/MacOS/Microsoft OneNote

Looks like this could work if we can get modify scripts to detect the OS and run the commands like pandoc and onenote accordingly.

So if I understand correctly, you do see the onenote dll under /Applications/Microsoft OneNote.app/Contents/MacOS/Microsoft OneNote, right?

If that is the case you could run a quick test by replacing the dll path in line 16 of OneNote-Connect.psm1 for yours.

If that works we're almost there.

So if I understand correctly, you do see the onenote dll under /Applications/Microsoft OneNote.app/Contents/MacOS/Microsoft OneNote, right?

I am not sure, I'll have to look.

If that is the case you could run a quick test by replacing the dll path in line 16 of OneNote-Connect.psm1 for yours.

Thanks will test tomorrow.

image

No dll files in the application.