JSLでのjmpファイルのディレクトリの抽出こんにちは、みんな、
私は複雑な方法 (単語と文字の操作を使用) でやりたいことをなんとかできましたが、これをもっと簡単に行う方法があるはずだと感じています。 私が望むのは、JSL の Pick File 機能を使用して選択したファイルのディレクトリを抽出し、次回からはそのディレクトリから開始できるようにすることだけです。 助言がありますか??
ありがとう、イブ
高度な統計モデリング自動化とスクリプト作成データアクセス品質およびプロセスエンジニアリング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
Re: JSLでのjmpファイルのディレクトリの解凍ごめんなさい、ボタンを押し間違えてしまいました! 残念ながら、これは解決策ではありません@txnelson 。 これは、既知のディレクトリのファイルのみをリストします。 必要なファイルを参照して見つけたいのですが、ファイルを選択したら、そのディレクトリを保存して、次回参照するときに前のディレクトリから開始できるようにしたいと考えています。
乾杯、イブ
Re: JSLでのjmpファイルのディレクトリの解凍スクリプト索引の Files in Directory() 関数を確認してください。
