cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
blue1994
Level III

Automatically save the file to folder

Hi, does anyone know if I select the any file from desktop,eg: CSV, after i open that file,  it can automatically save into the working folder by using JSL? 

Thanks

 

1 REPLY 1
txnelson
Super User

Re: Automatically save the file to folder

Here is a simple script that does what you want

names default to here( 1 );
// Pick the file to open
myPath = Pick File("tdisplayed text string", "path to initial folder");
dt = open(myPath);
dt << save("path to work directory.jmp);

Details on Pick File, Open and Save functions are found in the Scripting Index:

     Help==>Scripting Index

Jim

Recommended Articles