cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

How do I have export default to folder that I opened in?

I have a .jmp file, make some changes, and then wish to export to a .csv file.

 

When I do so, the save as folder defaults to (I think) the last folder that I'd saved to. I'd like it to default to the folder containing the jmp file that I opened. I'd also be happy for it to default, more generally, to the last folder that a file was opened from, rather than the last folder a file was saved to.

 

Is it possible to set this preference somewhere? I've looked, but haven't found.

 

I'm on a mac, and using JMP 16 and JMP 17.

 

Thanks!

1 REPLY 1
Thierry_S
Super User

Re: How do I have export default to folder that I opened in?

Hi,

I am not 100% sure that this will work on a Mac, but on a Windows system, it works well.

  1. Define your data table (Open (), Pick (), Data Table ())
  2. Capture the path and name with the data table: path = dt << Get Path; dt_name = dt << Get Name;
  3. Use the path to define the target folder: dt_csv << Save (Substitute (lc_path, dt_name || ".jmp", "CSV_TABLE_NAME") );
Names Default from Here (1);

dt = data table ("Original_table");
dt_name = dt << Get Name;
dt_path = dt << Get Path;

// DO SOMETHING YIELDING the NEW dt_csv//

dt_csv << Save (Substitute (dt_path, dt_name || ".jmp", "NEW NAME));

Note: the exact syntax may need to be modified to match the output of the Mac OS file system.

 

Best,

TS

Thierry R. Sornasse

Recommended Articles