<?xml version='1.0' ?>
<klip>
  <identity>
    <title>
       API - Items.globalaction
    </title>
  </identity>

   <locations>
      <icon>
         http://www.klipfolio.com/static/klips/klipfolio/sample_icon.png
      </icon>
      <banner>
         http://www.klipfolio.com/static/klips/klipfolio/sample_banner.png   
      </banner>
   </locations>

   <style>
      item {
         type: item;
         definition: all;   
      }

      screenshot {
         itemcol: 1;
         noterow: 1;
         
         type: image;
         notelabel: false;
      }

      product {
         itemcol: 2;
         noterow: 2;
         notelabel: false;
      }
   </style>
  
<klipscript>
<![CDATA[

function onRefresh() {

        var success = Engines.Data.process(Prefs.contentsource);
	
  	setItemActions();

	return success;
}

// Add custom menu options
function setItemActions() {

	// Add menu option under Klip Menu
	Items.globalactions = [ "Global Menu Option", doThese ];
}

function doThese() {
	trace( "### Global Menu Option" + "\r\n");
}

]]>
</klipscript>
  
  
</klip>
