{"id":445,"date":"2018-09-14T18:36:20","date_gmt":"2018-09-14T23:36:20","guid":{"rendered":"http:\/\/www.offtherichterdesign.com\/Blog\/?p=445"},"modified":"2018-12-12T15:43:14","modified_gmt":"2018-12-12T21:43:14","slug":"force-files-to-open-with-microsoft-applications-when-sharing-links-using-uri-schemes","status":"publish","type":"post","link":"https:\/\/offtherichterdesign.com\/Blog\/force-files-to-open-with-microsoft-applications-when-sharing-links-using-uri-schemes\/","title":{"rendered":"Force Files to Open with Microsoft Apps When Sharing Links Using URI Schemes"},"content":{"rendered":"<p>URI schemes allow for office productivity applications to be invoked with various commands. Each application is given a different named scheme but all schemes follow the same rules for how the URI is formed (URI Schema).<\/p>\n<h3>Full schema<\/h3>\n<p><strong>&lt; scheme-name &gt;:&lt; command-name &gt;&#8221;|&#8221;&lt; command-argument-descriptor &gt; &#8220;|&#8221;&lt; command-argument &gt;<\/strong><\/p>\n<p>The scheme syntax includes the following:<\/p>\n<p>1. &lt; scheme-name &gt;: This refers to the type of application that should be invoked. For instance, the ms-word: scheme name is registered by Microsoft Word.<\/p>\n<p>2. &#8220;:&#8221; separator<\/p>\n<p>3. &lt; command-name &gt;: This describes the actions that the application should perform. For instance, opening a document for viewing. The list of command names is described in section 1.5.<\/p>\n<p>4. &#8220;|&#8221; (vertical bar) separator<\/p>\n<p>5. &lt; command-argument-descriptor &gt;: This element gives more information about what the command argument is about.<\/p>\n<p>6. &#8220;|&#8221; (vertical bar) separator<\/p>\n<p>7. &lt; command-argument &gt;: The arguments vary depending on the command. One common argument is the URI to a document, typically using the http or https scheme. Note that within &lt; command-argument &gt; segments the RFC 3986 reserved characters &#8220;:&#8221; and &#8220;\/&#8221; are part of the argument data, not delimiters, and are therefore included unescaped.<\/p>\n<h3>Abbreviated schema<\/h3>\n<p>An abbreviated form of the office URI schemes allows for a more compact request to launch a specified Office application to open the resource located at a given URI. This abbreviated form implies the &lt; command-name &gt; &#8220;ofv&#8221; and the &lt; command-argument-descriptor &gt; &#8220;u&#8221;. No further commands or command arguments are allowed in this schema.<\/p>\n<p><strong>&lt; scheme-name &gt;:&lt; command-argument &gt;<\/strong><\/p>\n<p>1. &lt; scheme-name &gt;: the type of application that should be invoked. For instance ms-word: for Microsoft Word.<\/p>\n<p>2. &lt; command-argument &gt;: URI for the resource the application should open. Currently only URIs based on the http or https scheme are supported.<\/p>\n<h3>Examples of Use<\/h3>\n<p><strong>Microsoft Excel File<\/strong><br \/>\nSharepoint&#8217;s default shared link is:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/sharepoint.com\/shared\/YOUR_EXCEL_DOCUMENT.xlsx?Web=1\r\n<\/pre>\n<p>change to:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nms-excel:ofe|u|https:\/\/sharepoint.com\/shared\/YOUR_EXCEL_DOCUMENT.xlsx\r\n<\/pre>\n<p><strong>Microsoft Word File<\/strong><br \/>\nSharepoint&#8217;s default shared link is:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nhttps:\/\/sharepoint.com\/shared\/YOUR_WORD_DOCUMENT.docx\r\n<\/pre>\n<p>Change to:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\nms-word:ofe|u|https:\/\/sharepoint.com\/shared\/YOUR_WORD_DOCUMENT.docx\r\n<\/pre>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>URI schemes allow for office productivity applications to be invoked with various commands. Each application is given a different named scheme but all schemes follow the same rules for how the URI is formed (URI Schema). Full schema &lt; scheme-name &gt;:&lt; command-name &gt;&#8221;|&#8221;&lt; command-argument-descriptor &gt; &#8220;|&#8221;&lt; command-argument &gt; The scheme syntax includes the following: 1&#8230;.<\/p>\n<p class=\"more-link\"><a href=\"https:\/\/offtherichterdesign.com\/Blog\/force-files-to-open-with-microsoft-applications-when-sharing-links-using-uri-schemes\/\" class=\"themebutton3\">Read More<\/a><\/p>\n<p><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,106],"tags":[31,96,89,95,93,94,97],"class_list":["post-445","post","type-post","status-publish","format-standard","hentry","category-coding-with-coffee","category-html","tag-html","tag-link","tag-microsoft","tag-microsoft-applications","tag-uri-schema","tag-uri-schemes","tag-url"],"_links":{"self":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts\/445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/comments?post=445"}],"version-history":[{"count":1,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts\/445\/revisions"}],"predecessor-version":[{"id":568,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/posts\/445\/revisions\/568"}],"wp:attachment":[{"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/media?parent=445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/categories?post=445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/offtherichterdesign.com\/Blog\/wp-json\/wp\/v2\/tags?post=445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}