<?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 and read a TXT file stored in Alfresco in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30017#M12771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;Got the following problem to solve. The user should be able to copy a set of property values between different documents. My idea is the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a JS script which gets all the properties and their values from the selected content. It does check the content type and only works if the type is matching a certain type.&lt;/LI&gt;&lt;LI&gt;this script is launched from a document library action button called Copy Properties&lt;/LI&gt;&lt;LI&gt;the result should be a simple TXT look alike file in the user's 'My files' folder&lt;/LI&gt;&lt;LI&gt;create another script which should be launched on the target content. This should open the file created by the 1st script, read its content and update the target file properties with the values from the file. The type of the two contents should match to be able to do this. Once the properties are updated, delete the file.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have all the codes to do the 1st part and the writing of property values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I read a file stored in the 'My files' directoy and get its content?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Zsolt Putnoky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 08:44:08 GMT</pubDate>
    <dc:creator>zputnoky</dc:creator>
    <dc:date>2017-08-01T08:44:08Z</dc:date>
    <item>
      <title>Open and read a TXT file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30017#M12771</link>
      <description>Dear All,Got the following problem to solve. The user should be able to copy a set of property values between different documents. My idea is the following:create a JS script which gets all the properties and their values from the selected content. It does check the content type and only works if th</description>
      <pubDate>Tue, 01 Aug 2017 08:44:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30017#M12771</guid>
      <dc:creator>zputnoky</dc:creator>
      <dc:date>2017-08-01T08:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read a TXT file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30018#M12772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script API provides access to a node's content via the &lt;A href="http://docs.alfresco.com/5.2/references/API-JS-ScriptNode.html" rel="nofollow noopener noreferrer"&gt;ScriptNode API&lt;/A&gt;. The home folder of a user (their "My Files" location) can be retrieved by accessing the property&amp;nbsp;cm:homeFolder of the node representing the user (the person node) - that can be retrieved via the &lt;A href="http://docs.alfresco.com/5.2/references/API-JS-People.html" rel="nofollow noopener noreferrer"&gt;People API&lt;/A&gt; and "people" &lt;A href="http://docs.alfresco.com/5.2/references/API-JS-rootscoped.html" rel="nofollow noopener noreferrer"&gt;root object&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:40:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30018#M12772</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-08-01T09:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read a TXT file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30019#M12773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Managed to open the file and read the content. So far so good. Now got another issue to list all the custom properties. Going ahead slowly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:59:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30019#M12773</guid>
      <dc:creator>zputnoky</dc:creator>
      <dc:date>2017-08-01T09:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read a TXT file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30020#M12774</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the same problematic but I haven't find the function for read a txt file in ScriptNode API.&lt;/P&gt;&lt;P&gt;Can you help me please ?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:05:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30020#M12774</guid>
      <dc:creator>Kevin2</dc:creator>
      <dc:date>2020-09-21T14:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Open and read a TXT file stored in Alfresco</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30021#M12775</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;PRE&gt;var fileContent = document.content;&lt;/PRE&gt;</description>
      <pubDate>Mon, 21 Sep 2020 14:14:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/open-and-read-a-txt-file-stored-in-alfresco/m-p/30021#M12775</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2020-09-21T14:14:35Z</dc:date>
    </item>
  </channel>
</rss>

