Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to MacOs #1

Open
CsBigDataHub opened this issue Jan 10, 2022 · 7 comments
Open

Add support to MacOs #1

CsBigDataHub opened this issue Jan 10, 2022 · 7 comments
Labels
help wanted Extra attention is needed test

Comments

@CsBigDataHub
Copy link

Please provide support to MacOs

@alopezrivera
Copy link
Owner

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 alopezrivera closed this as not planned Won't fix, can't repro, duplicate, stale Jun 17, 2022
@alopezrivera alopezrivera added help wanted Extra attention is needed test labels Jul 5, 2022
@alopezrivera
Copy link
Owner

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 alopezrivera reopened this Jul 5, 2022
@CsBigDataHub
Copy link
Author

CsBigDataHub commented Sep 21, 2022

@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
Copy link
Author

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

@alopezrivera
Copy link
Owner

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.

@CsBigDataHub
Copy link
Author

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
Copy link
Author

image

No dll files in the application.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed test
Projects
None yet
Development

No branches or pull requests

2 participants