在 JSL 中提取 jmp 文件的目錄大家好,
我已經設法以一種令人費解的方式(使用單詞和字符操作)做我想做的事,但我覺得必須有一種更簡單的方法來做到這一點。 我想要的只是使用 JSL 中的 Pick File 功能提取我剛剛選擇的文件的目錄,以便下次從該目錄開始。 有什麼建議??
謝謝,伊夫
腳本編寫Re: 在 JSL 中提取 jmp 文件的目錄查看腳本索引中的 Files in Directory() 函數

Re: 在 JSL 中提取 jmp 文件的目錄抱歉我按錯了按鈕!!! 不幸的是,這不是解決方案@txnelson . 這僅列出已知目錄的文件。 我想瀏覽以找到我想要的文件,一旦我選擇了它,我想保存目錄,以便下次我想瀏覽時,它從上一個目錄開始。
乾杯,伊夫
Re: 在 JSL 中提取 jmp 文件的目錄看看我下面的腳本,告訴我我是否越來越接近你想要的。
Names Default To Here( 1 );
theDirectory = "";
xx = Pick File( "Pick a File", theDirectory );
theDirectory = Substr( xx, 1, Length( xx ) - Length( Word( -1, xx, "\/" ) ) - 1 );
// now this Pick File will go to the directory that the file from the last
// Pick File was selected from
yy = Pick File( "Pick a File", theDirectory );
// If you want this Pick File to span across different scripts, then it would be a simple
// matter to save the directory in a specific namespace and get the
// directory location from a variable saved in that namespace.
// If you want to have the Pick File directory available from JMP session to JMP session
// then what I have used in the past, is to simply save the character string for the
// directory to a .txt file, using Save Text File() and Load Text File() to make the directory
// persistant