cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • New to JMP? Join us Sept. 23-24 for the Early User Edition of Discovery Summit, tailor-made for new users. Register now for free!
  • Use World Cup data to build models, explore spatial relationships, and create informative visualizations in JMP. Register. July 17, 2 pm US Eastern Time.
  • Your voice matters! Tell us how you prefer to receive JMP updates, so we can tailor our communication to your needs. Take short survey.

Irish JMP Users Group Discussions

Choose Language Hide Translation Bar
paul_phelan
Level II

How do I Setting Preferences with a Script

If I wanted to make sure the preferences were the same on any machine prior to executing a script, to ensure the output was consistent and then set them back again, is there any way to script it.

 

I can get the preferences with Get Platform Preferences()

But it looks like Set Platform Preferences won't accept a string as an argument.

 

x = "(Association Analysis(
		Transaction Listing( 1 ),
	))";
	
Set Platform Preferences( x );
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How do I Setting Preferences with a Script

I think you can use something like the following to accomplish what you're trying to do.

//get current settings
prev = Get Platform Preferences( Association Analysis( Transaction Listing ) );

//set preference for your script
Set Platform Preferences( Association Analysis( Transaction Listing(1) ) );

//execute analysis script

//reset platform preferences to previous values
eval(prev);
Michael Crotty
Principal Statistical Writer
Manager, Statistical Documentation
JMP Development

View solution in original post

1 REPLY 1

Re: How do I Setting Preferences with a Script

I think you can use something like the following to accomplish what you're trying to do.

//get current settings
prev = Get Platform Preferences( Association Analysis( Transaction Listing ) );

//set preference for your script
Set Platform Preferences( Association Analysis( Transaction Listing(1) ) );

//execute analysis script

//reset platform preferences to previous values
eval(prev);
Michael Crotty
Principal Statistical Writer
Manager, Statistical Documentation
JMP Development