<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Storing preferences in a variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471880#M71634</link>
    <description>&lt;P&gt;Thanks for your swift reply. Had actually just realized it myself and rushed to delete the post, but too late :)&lt;/img&gt; What confused me was that the variable returned an empty value, but using show(x), I could see that the variable contained a script that returns the empty value I was viewing. Maybe it will help somebody else getting confused about this in the future!&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2022 21:38:48 GMT</pubDate>
    <dc:creator>thomasz</dc:creator>
    <dc:date>2022-03-21T21:38:48Z</dc:date>
    <item>
      <title>Storing preferences in a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471817#M71630</link>
      <description>&lt;P&gt;In a script, I would like to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Store current preferences in a variable to be able to later restore them&lt;/P&gt;&lt;P&gt;2. Modify some preferences&lt;/P&gt;&lt;P&gt;... do some stuff in the script, like importing an Excel file that requires specific preferences set to work ...&lt;/P&gt;&lt;P&gt;3. Restore the original preferences&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do the above in JMP? I know how to modify preferences, but I cannot find a way to store current preferences to be able to restore them.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:13:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471817#M71630</guid>
      <dc:creator>thomasz</dc:creator>
      <dc:date>2023-06-09T18:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Storing preferences in a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471835#M71631</link>
      <description>&lt;P&gt;If you add an assignment to the Get Prferences() function, it will assign the preference expression to the variable&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
x=Get Preferences( );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Examples of retrieving and saving preferences are found in the Scripting Index.&lt;/P&gt;
&lt;P&gt;You can either manipulate the expression or convert it to a character string and manipulate it using the string functions.&amp;nbsp; Then as you apply it, you just convert it back to an expression and then apply it.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 21:32:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471835#M71631</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-03-21T21:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Storing preferences in a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471842#M71632</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/3341"&gt;@thomasz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;There is a &lt;LI-MESSAGE title="Preferences Manager (with import/export)" uid="85117" url="https://community.jmp.com/t5/JMP-Add-Ins/Preferences-Manager-with-import-export/m-p/85117#U85117" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&amp;nbsp;add-in that performs these tasks already.&lt;/P&gt;
&lt;P&gt;Have a look and try it out to see if it will meet your needs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cheers,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 21:33:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471842#M71632</guid>
      <dc:creator>stan_koprowski</dc:creator>
      <dc:date>2022-03-21T21:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Storing preferences in a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471880#M71634</link>
      <description>&lt;P&gt;Thanks for your swift reply. Had actually just realized it myself and rushed to delete the post, but too late :)&lt;/img&gt; What confused me was that the variable returned an empty value, but using show(x), I could see that the variable contained a script that returns the empty value I was viewing. Maybe it will help somebody else getting confused about this in the future!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 21:38:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471880#M71634</guid>
      <dc:creator>thomasz</dc:creator>
      <dc:date>2022-03-21T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Storing preferences in a variable</title>
      <link>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471894#M71637</link>
      <description>&lt;P&gt;If this is in a script/tool that someone else besides you might be using, I would strongly suggest saving them into a file which won't be accidentally overwritten.&lt;/P&gt;
&lt;P&gt;I have seen quite a few scripts/tools which modify users preferences with the idea of returning them. But if there is an error and there is no proper error handling... if you re-run the script, your preferences are basically gone as the variable will be overwritten with the modified preferences.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 05:54:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Storing-preferences-in-a-variable/m-p/471894#M71637</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-03-22T05:54:43Z</dc:date>
    </item>
  </channel>
</rss>

