<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Open files from same directory for Workflow in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Open-files-from-same-directory-for-Workflow/m-p/717134#M89879</link>
    <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only just recently started working with JMP Workflows and JSL Scripts and was wondering to create something in code to achieve the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- The goal is to move a workflow (copy/paste) to a specific folder, where other files like .xlsx and .csv are located. The designed script should then open a specific .csv file from within the same folder the script or workflow is located -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for short: any ideas on how I can get the file path from the same directory the script is located in and run from? And how could I solve the idea of moving around the workflow around, keeping in mind that people will forget to delete the script after they used it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice!&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2024 20:01:35 GMT</pubDate>
    <dc:creator>Gab_K</dc:creator>
    <dc:date>2024-01-15T20:01:35Z</dc:date>
    <item>
      <title>Open files from same directory for Workflow</title>
      <link>https://community.jmp.com/t5/Discussions/Open-files-from-same-directory-for-Workflow/m-p/717134#M89879</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I only just recently started working with JMP Workflows and JSL Scripts and was wondering to create something in code to achieve the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- The goal is to move a workflow (copy/paste) to a specific folder, where other files like .xlsx and .csv are located. The designed script should then open a specific .csv file from within the same folder the script or workflow is located -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for short: any ideas on how I can get the file path from the same directory the script is located in and run from? And how could I solve the idea of moving around the workflow around, keeping in mind that people will forget to delete the script after they used it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any advice!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 20:01:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-files-from-same-directory-for-Workflow/m-p/717134#M89879</guid>
      <dc:creator>Gab_K</dc:creator>
      <dc:date>2024-01-15T20:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open files from same directory for Workflow</title>
      <link>https://community.jmp.com/t5/Discussions/Open-files-from-same-directory-for-Workflow/m-p/906582#M106495</link>
      <description>&lt;P&gt;I would also like to know if there is an easy solution to reference the current directory that the workflow is in.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I do in the meantime is use the code below. Every time the workflow runs a window opens which allows the user to select the folder the data is in, this is saved to the dir variable. I then make the dfolder and xpath variables that are used in subsequent file import steps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dir = Pick Directory( "Choose the folder for the report" );
dfolder = dir || "Test files and jmp workflow\";
xpath = dir || "Process details and tracking.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Oct 2025 17:19:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Open-files-from-same-directory-for-Workflow/m-p/906582#M106495</guid>
      <dc:creator>QuadratiCoyote</dc:creator>
      <dc:date>2025-10-08T17:19:16Z</dc:date>
    </item>
  </channel>
</rss>

