JSLでjmpファイルのディレクトリを抽出するこんにちは、みんな、
私は(単語や文字の操作を使用して)複雑な方法でやりたいことを何とかできましたが、これを行うにはもっと簡単な方法があるはずだと感じています。 JSLのファイル選択機能を使用して選択したファイルのディレクトリを抽出し、次回はそのディレクトリから開始するようにします。 助言がありますか??
ありがとう、イヴ
スクリプティングRe:JSLでjmpファイルのディレクトリを抽出するScripting IndexのFilesin 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