<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Programmatic shortcuts manipulation &#8211; part 1	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=programmatic-shortcuts-manipulation-part-1</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Mon, 20 Jul 2020 21:20:24 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Harry		</title>
		<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-508768</link>

		<dc:creator><![CDATA[Harry]]></dc:creator>
		<pubDate>Mon, 20 Jul 2020 21:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6146#comment-508768</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-364814&quot;&gt;Andi&lt;/a&gt;.

Andi, you are such a tease! There are questions dotted around the web (including on this page) of people asking how to change the Quick-Access Toolbar programmatically, and getting no answer, and here you are saying that you&#039;ve (sort of) done it! Saying it &quot;works very unreliably&quot; implies that it has worked for you at least once; maybe the change didn&#039;t stick, maybe sometimes you get the dreaded red text at the command line and sometimes not - but it sounds like you were at least on the right path. I know that this is a massive long-shot given your post is almost five years old - but, if my post triggers an email to you - please could you tell us how you were updating the Quick-Access Toolbar?

I know that versions after &lt;b&gt;2018a&lt;/b&gt; now use &lt;i&gt;favourites&lt;/i&gt;. Adding &lt;i&gt;favourites&lt;/i&gt; to the Quick-Access Toolbar programatically is easy, using the .setIsOnQuickToolBar method of the com.mathworks.mlwidgets.favoritecommands.FavoriteCommandProperties class. However, I am still interested in how to programatically get &lt;i&gt;shortcuts&lt;/i&gt; onto the Quick-Access Toolbar in &lt;b&gt;2017b&lt;/b&gt; and earlier. Thus far, I have a partial solution by editing the &lt;b&gt;MATLABQuickAccess.xml&lt;/b&gt; file (thanks to Yair and this page for the inspiration for that idea...), but that file is only read at startup so you have to ask the user to restart MATLAB to see your changes, which is less than ideal. And if they don’t restart straight away, they could do things in MATLAB that undo the changes you’ve made to the xml file.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-364814">Andi</a>.</p>
<p>Andi, you are such a tease! There are questions dotted around the web (including on this page) of people asking how to change the Quick-Access Toolbar programmatically, and getting no answer, and here you are saying that you&#8217;ve (sort of) done it! Saying it &#8220;works very unreliably&#8221; implies that it has worked for you at least once; maybe the change didn&#8217;t stick, maybe sometimes you get the dreaded red text at the command line and sometimes not &#8211; but it sounds like you were at least on the right path. I know that this is a massive long-shot given your post is almost five years old &#8211; but, if my post triggers an email to you &#8211; please could you tell us how you were updating the Quick-Access Toolbar?</p>
<p>I know that versions after <b>2018a</b> now use <i>favourites</i>. Adding <i>favourites</i> to the Quick-Access Toolbar programatically is easy, using the .setIsOnQuickToolBar method of the com.mathworks.mlwidgets.favoritecommands.FavoriteCommandProperties class. However, I am still interested in how to programatically get <i>shortcuts</i> onto the Quick-Access Toolbar in <b>2017b</b> and earlier. Thus far, I have a partial solution by editing the <b>MATLABQuickAccess.xml</b> file (thanks to Yair and this page for the inspiration for that idea&#8230;), but that file is only read at startup so you have to ask the user to restart MATLAB to see your changes, which is less than ideal. And if they don’t restart straight away, they could do things in MATLAB that undo the changes you’ve made to the xml file.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mike		</title>
		<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-508751</link>

		<dc:creator><![CDATA[Mike]]></dc:creator>
		<pubDate>Fri, 03 Jul 2020 18:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6146#comment-508751</guid>

					<description><![CDATA[Yair,

It may be July 2020 but at my company we are still using R2013b!  This article was instrumental in helping me to accomplish my work.

Thanks!
Mike]]></description>
			<content:encoded><![CDATA[<p>Yair,</p>
<p>It may be July 2020 but at my company we are still using R2013b!  This article was instrumental in helping me to accomplish my work.</p>
<p>Thanks!<br />
Mike</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: michel bertrand		</title>
		<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-468249</link>

		<dc:creator><![CDATA[michel bertrand]]></dc:creator>
		<pubDate>Sun, 17 Mar 2019 18:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6146#comment-468249</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-452797&quot;&gt;Julien&lt;/a&gt;.

There is a solution to create categories and get favorites, code, etc posted on nov 27.
I am playing with these ideas, and in the process of re-writing the Matlab code I wrote and maintained for more than ten years (following a Yair&#039;suggestions, also many years ago)  to save shortcuts when exiting Matlab so as to be able to restore those as they were on a specific day when exiting Matlab; a kind of laymen  time machine for shortcuts.

I found scUtils still &quot;works&quot; in Matlab2018b, but it appears to  process  something which is distinct from the Favorites that were created when I first launched Maltab2018. 
My first launching of Matlab2018b a few weeks ago followed a Matlab session ending under Matlab 2017b. On its first opening, Matlab2018b did some clean up on shortcuts it found and created their Favorites counterpart using the same name and the same code. 
In my current usage of 2018b, scUtils can still see the old shortcuts and  it will give shortcut names and code line  exactly the same as those appearing under Favorites, provided  those Favorites haven’t been modified with the favorite editor;  after a favorite is edited,  rerunning scUtils will show the original code, unchanged.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-452797">Julien</a>.</p>
<p>There is a solution to create categories and get favorites, code, etc posted on nov 27.<br />
I am playing with these ideas, and in the process of re-writing the Matlab code I wrote and maintained for more than ten years (following a Yair&#8217;suggestions, also many years ago)  to save shortcuts when exiting Matlab so as to be able to restore those as they were on a specific day when exiting Matlab; a kind of laymen  time machine for shortcuts.</p>
<p>I found scUtils still &#8220;works&#8221; in Matlab2018b, but it appears to  process  something which is distinct from the Favorites that were created when I first launched Maltab2018.<br />
My first launching of Matlab2018b a few weeks ago followed a Matlab session ending under Matlab 2017b. On its first opening, Matlab2018b did some clean up on shortcuts it found and created their Favorites counterpart using the same name and the same code.<br />
In my current usage of 2018b, scUtils can still see the old shortcuts and  it will give shortcut names and code line  exactly the same as those appearing under Favorites, provided  those Favorites haven’t been modified with the favorite editor;  after a favorite is edited,  rerunning scUtils will show the original code, unchanged.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Julien		</title>
		<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-452797</link>

		<dc:creator><![CDATA[Julien]]></dc:creator>
		<pubDate>Thu, 22 Nov 2018 17:29:34 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6146#comment-452797</guid>

					<description><![CDATA[Thanks a lot for these tips, it works very well on Matlab 2016b.
It seems since the R2018a, shortcuts have disappeared to be replaced by favorites commands... do you have any idea on how to manipulate favorites programatically ?

I saw this on Matlab Central : https://www.mathworks.com/matlabcentral/answers/411846-how-to-create-favorites-by-code-command-window
But there is no solution.]]></description>
			<content:encoded><![CDATA[<p>Thanks a lot for these tips, it works very well on Matlab 2016b.<br />
It seems since the R2018a, shortcuts have disappeared to be replaced by favorites commands&#8230; do you have any idea on how to manipulate favorites programatically ?</p>
<p>I saw this on Matlab Central : <a href="https://www.mathworks.com/matlabcentral/answers/411846-how-to-create-favorites-by-code-command-window" rel="nofollow ugc">https://www.mathworks.com/matlabcentral/answers/411846-how-to-create-favorites-by-code-command-window</a><br />
But there is no solution.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Thierry		</title>
		<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-367033</link>

		<dc:creator><![CDATA[Thierry]]></dc:creator>
		<pubDate>Thu, 07 Jan 2016 13:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6146#comment-367033</guid>

					<description><![CDATA[Hi Yair.
Thanks for this post!
Do you know a way to programmatically assign the created shortcut to the Quick Access Toolbar?
(This way the shortcuts are also visible on the MATLAB Editor.)
Many thanks.]]></description>
			<content:encoded><![CDATA[<p>Hi Yair.<br />
Thanks for this post!<br />
Do you know a way to programmatically assign the created shortcut to the Quick Access Toolbar?<br />
(This way the shortcuts are also visible on the MATLAB Editor.)<br />
Many thanks.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-364830</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 24 Dec 2015 07:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6146#comment-364830</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-364814&quot;&gt;Andi&lt;/a&gt;.

@Andi - I am not sure what exactly is not working for you in R2015a - it works well for me up to and including R2016a. Try to add a short &lt;i&gt;&lt;b&gt;pause&lt;/b&gt;()&lt;/i&gt; before you update the shortcuts on startup, maybe this will help. If you would like me to look at your specific issue for a small consulting fee, then email me.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-364814">Andi</a>.</p>
<p>@Andi &#8211; I am not sure what exactly is not working for you in R2015a &#8211; it works well for me up to and including R2016a. Try to add a short <i><b>pause</b>()</i> before you update the shortcuts on startup, maybe this will help. If you would like me to look at your specific issue for a small consulting fee, then email me.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andi		</title>
		<link>https://undocumentedmatlab.com/articles/programmatic-shortcuts-manipulation-part-1#comment-364814</link>

		<dc:creator><![CDATA[Andi]]></dc:creator>
		<pubDate>Thu, 24 Dec 2015 01:33:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=6146#comment-364814</guid>

					<description><![CDATA[Yair

Thank you for addressing the shortcut customization in MatLab. 

The code to update the shortcuts during a session, which is discussed in your article, works very well in MatLab 2012a. However, it does not work reliably in MatLab 2015a, even though I tried to adapt it.

I have addressed this issue with Mathworks. The response was that they do not support this functionality.

I have also done some work, where I have tried to update the quick access toolbar, but again found, that is works very unreliably.

I am very interested in solutions for both issues, which work in MatLab 2015a.

Thanks, Andi]]></description>
			<content:encoded><![CDATA[<p>Yair</p>
<p>Thank you for addressing the shortcut customization in MatLab. </p>
<p>The code to update the shortcuts during a session, which is discussed in your article, works very well in MatLab 2012a. However, it does not work reliably in MatLab 2015a, even though I tried to adapt it.</p>
<p>I have addressed this issue with Mathworks. The response was that they do not support this functionality.</p>
<p>I have also done some work, where I have tried to update the quick access toolbar, but again found, that is works very unreliably.</p>
<p>I am very interested in solutions for both issues, which work in MatLab 2015a.</p>
<p>Thanks, Andi</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
