Upload photoshop scripts, download photoshop scripts, discussion and support of photoshop scripts

Moderator: PS-Moderators


Postby Paul MR » Fri Apr 15, 2011 11:22 pm

Sometimes it's handy to have documentation accessible from within ESTK.
This script adds a new Menu in ExtendScript Toolkit with a list of all chm, pdf and txt files in the specified folder.
Once a selection is made that document is opened.

Code: Select all
//Place script in relevant folder....
//C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit CS3\Required
//C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit CS4\Required
//C:\Program Files\Adobe\Adobe Utilities - CS5\ExtendScript Toolkit CS5\Required
try {
ESTKdocs ={};
ESTKdocs.menus = {};
var menuItems=[];
//Folder where all your documents/helpfiles are:-
var docFolder = Folder('/c/programData/adobe/help');
var fileList = docFolder.getFiles(/\.(chm|pdf|txt)$/i);
   ESTKdocs.menus.extras = new MenuElement( "menu", "Docs", "at the end of menubar", "ESTKdocs" );
 for(var a in fileList){
menuItems[a] = new MenuElement( "command", decodeURI(fileList[a].name.replace(/\.[^\.]+$/, '')), "at the end of ESTKdocs", "ESTKdocs/"+a );
menuItems[a].onSelect = function() {
var count = Number(\d+$/));
}catch(e){alert(e +" - "+e.line);}
Paul MR
Posts: 1472
Joined: Wed Oct 18, 2006 2:44 pm
Location: Bradford,UK

Return to Photoshop Scripts

Who is online

Users browsing this forum: No registered users and 1 guest