Office Add-in does not support Office URI on Mac

%3CLINGO-SUB%20id%3D%22lingo-sub-3299102%22%20slang%3D%22en-US%22%3EOffice%20Add-in%20does%20not%20support%20Office%20URI%20on%20Mac%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3299102%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice%2Fclient-developer%2Foffice-uri-schemes%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Foffice%2Fclient-developer%2Foffice-uri-schemes%3C%2FA%3E%20describes%20how%20a%20URI%20can%20be%20used%20to%20open%20documents%20from%20a%20URL%20(e.g.%2C%20OneDrive)%20in%20Office.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20expect%20this%20to%20work%20in%20an%20Office%20Add-in%20which%20it%20partly%20did%20but%20not%20on%20macOS%2C%20tested%20with%20PowerPoint%20for%20Mac%2016.61%20(22042403)%20on%20macOS%2012.3.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20it%20with%20these%20links%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%3CA%20href%3D%22ms-powerpoint%3Aofe%257Cu%257Chttp%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F6%2F4%2F5%2F6457fca2-83d4-4cfa-8a28-d247dcbdd464%252FUnit%2520Testing.pptx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EOpen%3C%2FA%3E%0A%3CINPUT%20type%3D%22button%22%20value%3D%22Test%22%20onclick%3D%22window.location.replace('ms-powerpoint%3Aofe%257Cu%257Chttp%3A%2F%2Fdownload.microsoft.com%2Fdownload%2F6%2F4%2F5%2F6457fca2-83d4-4cfa-8a28-d247dcbdd464%252FUnit%2520Testing.pptx')%3B%20return%20false%3B%22%20%2F%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThese%20work%20in%20an%20Office%20Add-in%20on%20Windows%20and%20also%20in%20Safari.%20But%20they%20have%20no%20effect%20when%20used%20in%20an%20Office%20Add-in%20on%20macOS.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3299102%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

https://docs.microsoft.com/en-us/office/client-developer/office-uri-schemes describes how a URI can be used to open documents from a URL (e.g., OneDrive) in Office.

 

I'd expect this to work in an Office Add-in which it partly did but not on macOS, tested with PowerPoint for Mac 16.61 (22042403) on macOS 12.3.

 

I tried it with these links

 

 

<a href="ms-powerpoint:ofe%7Cu%7Chttp://download.microsoft.com/download/6/4/5/6457fca2-83d4-4cfa-8a28-d247dcbdd464%2FUnit%20Testing.pptx">Open</a>
<input type="button" value="Test" onclick="window.location.replace('ms-powerpoint:ofe%7Cu%7Chttp://download.microsoft.com/download/6/4/5/6457fca2-83d4-4cfa-8a28-d247dcbdd464%2FUnit%20Testing.pptx'); return false;" />

 

 

These work in an Office Add-in on Windows and also in Safari. But they have no effect when used in an Office Add-in on macOS.

0 Replies