cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Submit your abstract to the call for content for Discovery Summit Americas by April 23. Selected abstracts will be presented at Discovery Summit, Oct. 21- 24.
Discovery is online this week, April 16 and 18. Join us for these exciting interactive sessions.
Choose Language Hide Translation Bar
hutan2
Level I

I would like to find JSL codes to open most recent file saved in folder. Would you help? thanks

I would like to find JSL codes to open most recent file saved in folder.  Would you help? thanks

1 REPLY 1
ms
Super User (Alumni) ms
Super User (Alumni)

Re: I would like to find JSL codes to open most recent file saved in folder. Would you help? thanks

In JMP 11 there is a function Last Modification Date() that should be useful here.

For example:

mypath = Pick directory();

files=files in directory(mypath);

{t,p}={0,1};

For( i = 1, i <= N Items( files ), i++,

  ti = Last Modification Date( mypath || files[i] );

  If( ti > t, t = ti;  p = i)

);

Open(mypath||files[p]);