OneNoteExporter icon indicating copy to clipboard operation
OneNoteExporter copied to clipboard

Add support to MacOs

Open CsBigDataHub opened this issue 3 years ago • 7 comments

Please provide support to MacOs

CsBigDataHub avatar Jan 10 '22 14:01 CsBigDataHub

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.

alopezrivera avatar Jun 17 '22 17:06 alopezrivera

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 avatar Jul 05 '22 21:07 alopezrivera

@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

CsBigDataHub avatar Sep 21 '22 13:09 CsBigDataHub

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

CsBigDataHub avatar Sep 21 '22 13:09 CsBigDataHub

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.

alopezrivera avatar Sep 22 '22 10:09 alopezrivera

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.

CsBigDataHub avatar Oct 02 '22 21:10 CsBigDataHub

image

No dll files in the application.

CsBigDataHub avatar Nov 16 '22 16:11 CsBigDataHub