<?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: Action to run script on multiple selective documents in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253812#M206942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It depends on what format your documents are in, but you might want to take a look at the PDF Toolkit add-on for Alfresco, which can split, combine and insert PDF-based content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jared.ottleys.net/alfresco/alfresco-pdf-toolkit" rel="nofollow noopener noreferrer"&gt;http://jared.ottleys.net/alfresco/alfresco-pdf-toolkit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if your original documents are not in PDF format, the repository can easily enough create a PDF rendition for most standard document types, which you could then use as a starting point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe Jared has yet got round to adding hooks into Share to call through to the repository actions that the add-on defines, but you should be able to do that yourself and you may find you need to anyway if your action also needs to do some initial work, e.g. format conversion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Apr 2012 11:24:03 GMT</pubDate>
    <dc:creator>wabson</dc:creator>
    <dc:date>2012-04-10T11:24:03Z</dc:date>
    <item>
      <title>Action to run script on multiple selective documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253807#M206937</link>
      <description>Hello,Im wanting to setup a function/action in my alfresco to be able to grab upto 4 documents in the document library and run a script that will create a new document of the documents combined and then resave them in the document library.Does this sound possible to anyone? and can anyone give me so</description>
      <pubDate>Wed, 04 Apr 2012 05:37:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253807#M206937</guid>
      <dc:creator>ajbarnesy</dc:creator>
      <dc:date>2012-04-04T05:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Action to run script on multiple selective documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253808#M206938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi please take a look at the following blog post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://blogs.alfresco.com/wp/mikeh/2011/09/26/share-document-library-extensions-in-v4-0/" rel="nofollow noopener noreferrer"&gt;http://blogs.alfresco.com/wp/mikeh/2011/09/26/share-document-library-extensions-in-v4-0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;…and the following link to more Share related info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=43694" rel="nofollow noopener noreferrer"&gt;https://forums.alfresco.com/en/viewtopic.php?f=48&amp;amp;t=43694&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers &amp;amp; good luck, Erik&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2012 05:46:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253808#M206938</guid>
      <dc:creator>erikwinlof</dc:creator>
      <dc:date>2012-04-04T05:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Action to run script on multiple selective documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253809#M206939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I read through some of the documentation on creating a custom action. Im struggling a little bit with it, and i cant really see how to make an action only for the selected items menu. The action will only be used for multiple documents, not just one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 00:08:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253809#M206939</guid>
      <dc:creator>ajbarnesy</dc:creator>
      <dc:date>2012-04-05T00:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Action to run script on multiple selective documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253810#M206940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't help you with the actual act of combining the documents, but if you want to add a new multi-select action to the Doc Lib then the place to do that is in toolbar.get.config.xml which in 4.0 looks like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;toolbar&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;!– The create content menu can be configured in share-documentlibrary-config.xml –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;actionSets&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actionSet id="default"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type="action-link" id="onActionCopyTo" label="menu.selected-items.copy" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type="action-link" id="onActionMoveTo" permission="Delete" label="menu.selected-items.move" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type="action-link" id="onActionDelete" permission="Delete" label="menu.selected-items.delete" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type="action-link" id="onActionAssignWorkflow" asset="document" label="menu.selected-items.assign-workflow" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action type="action-link" id="onActionManagePermissions" permission="ChangePermissions" label="menu.selected-items.manage-permissions" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actionSet&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/actionSets&amp;gt;&lt;BR /&gt;&amp;lt;/toolbar&amp;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;/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;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The syntax here is similar to the single document level actions, but note that you don't have access to server side evaluators since the evaluation is all done in the client when the user actually selects the items. In your case you may find the &lt;/SPAN&gt;&lt;EM&gt;asset="document"&lt;/EM&gt;&lt;SPAN&gt; option useful to avoid the user being able to select a folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The javascript actions all live in &lt;/SPAN&gt;&lt;EM&gt;actions.js&lt;/EM&gt;&lt;SPAN&gt;, so take a look there for how other functions work - the javascript handler you specify in the &lt;/SPAN&gt;&lt;EM&gt;id&lt;/EM&gt;&lt;SPAN&gt; attribute will receive a array containing the details of the selected content. You'll then be able to trigger an AJAX call to pass the nodeRefs of the selected items to a (Java backed?) webscript to do the file combining magic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;David.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2012 08:18:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253810#M206940</guid>
      <dc:creator>davidcognite</dc:creator>
      <dc:date>2012-04-05T08:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Action to run script on multiple selective documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253811#M206941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi David,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That looks mighty helpful thank you, thought it seems you definetly know what im after, would you be able to explain the function of &lt;/SPAN&gt;&lt;EM&gt;asset="document"&lt;/EM&gt;&lt;SPAN&gt;? Assign Workflow has asset="document" but you can still select folders with that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and also where do i find the actions.js file? i cant seem to see it anywhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I havent yet looked into creating the file using the data from the other files, but from what ive researched, it may need to be in PHP&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 05:13:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253811#M206941</guid>
      <dc:creator>ajbarnesy</dc:creator>
      <dc:date>2012-04-10T05:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Action to run script on multiple selective documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253812#M206942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It depends on what format your documents are in, but you might want to take a look at the PDF Toolkit add-on for Alfresco, which can split, combine and insert PDF-based content.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jared.ottleys.net/alfresco/alfresco-pdf-toolkit" rel="nofollow noopener noreferrer"&gt;http://jared.ottleys.net/alfresco/alfresco-pdf-toolkit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Even if your original documents are not in PDF format, the repository can easily enough create a PDF rendition for most standard document types, which you could then use as a starting point.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't believe Jared has yet got round to adding hooks into Share to call through to the repository actions that the add-on defines, but you should be able to do that yourself and you may find you need to anyway if your action also needs to do some initial work, e.g. format conversion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Will&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 11:24:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253812#M206942</guid>
      <dc:creator>wabson</dc:creator>
      <dc:date>2012-04-10T11:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Action to run script on multiple selective documents</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253813#M206943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It depends on what format your documents are in, but you might want to take a look at the PDF Toolkit add-on for Alfresco, which can split, combine and insert PDF-based content.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://jared.ottleys.net/alfresco/alfresco-pdf-toolkit" rel="nofollow noopener noreferrer"&gt;http://jared.ottleys.net/alfresco/alfresco-pdf-toolkit&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Even if your original documents are not in PDF format, the repository can easily enough create a PDF rendition for most standard document types, which you could then use as a starting point.&lt;BR /&gt;&lt;BR /&gt;I don't believe Jared has yet got round to adding hooks into Share to call through to the repository actions that the add-on defines, but you should be able to do that yourself and you may find you need to anyway if your action also needs to do some initial work, e.g. format conversion.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks man, that looks interesting, i didnt know about the PDF toolkit. the files ill be using will be mainly excel, csv and microsoft profject though, dunno how that will handle.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 02:41:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/action-to-run-script-on-multiple-selective-documents/m-p/253813#M206943</guid>
      <dc:creator>ajbarnesy</dc:creator>
      <dc:date>2012-04-11T02:41:52Z</dc:date>
    </item>
  </channel>
</rss>

