<?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 Re: Javascript commands to get filename in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-commands-to-get-filename/m-p/286526#M239656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When your script runs it will have an object called document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example document name is document.name or document.properties["cm:name"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To simulate this in JS Console, navigate to your document in share, click on it to load document details and then select "Use in javascript console".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Dec 2013 13:52:50 GMT</pubDate>
    <dc:creator>rjohnson</dc:creator>
    <dc:date>2013-12-31T13:52:50Z</dc:date>
    <item>
      <title>Javascript commands to get filename</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-commands-to-get-filename/m-p/286525#M239655</link>
      <description>Hi,I would like to create a script that will be triggered when a file is dropped in the repository. I will create a rule that is going to run the script at the right time.I have installed the Javascript console to help me to create new scripts (it looks like the screenshot). I would like to know how</description>
      <pubDate>Tue, 31 Dec 2013 11:47:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-commands-to-get-filename/m-p/286525#M239655</guid>
      <dc:creator>vincent_roye</dc:creator>
      <dc:date>2013-12-31T11:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript commands to get filename</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-commands-to-get-filename/m-p/286526#M239656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When your script runs it will have an object called document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example document name is document.name or document.properties["cm:name"]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To simulate this in JS Console, navigate to your document in share, click on it to load document details and then select "Use in javascript console".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 13:52:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-commands-to-get-filename/m-p/286526#M239656</guid>
      <dc:creator>rjohnson</dc:creator>
      <dc:date>2013-12-31T13:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript commands to get filename</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-commands-to-get-filename/m-p/286527#M239657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var number = document.name.replace(".pdf","");&lt;BR /&gt;document.properties["sc:number"]=number;&lt;BR /&gt;document.save();&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 09:08:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-commands-to-get-filename/m-p/286527#M239657</guid>
      <dc:creator>vincent_roye</dc:creator>
      <dc:date>2014-01-03T09:08:25Z</dc:date>
    </item>
  </channel>
</rss>

