I wanted to share my tiny little script that automates the process of opening a specific command in the help:
Code: Select all
"Script Help"
//copied the list from scripting-commands help page (except for gpc, which needs to be changed to function as an alias)
$cmds = "abs, ageclasses, asc, assert, attrstamp, backupto, beep, box, br, break, button, catalogexecute, catalogload, catalogreport, ceil, charview, chr, colorfilter, columnlayout, compare, confirm, continue, controlatpos, controlposition, copier, copy, copyas, copydata, copyitem, copytext, copyto, ctbicon, ctbname, ctbstate, datediff, datepicker, delete, dlog, download, echo, editconf, end, eval, exists, exit, extracttext, extratag, favs, filesequal, filesize, filetype, filter, flattenfolder, floor, focus, folderreport, foldersize, format, formatbytes, formatdate, formatlist, fresh, freshhere, get, getkey, getpathcomponent, gpc|getpathcomponent, getsectionlist, gettoken, gettokenindex, ghost, global, goto, hash, hashlist, hexdump, hextodec, highlight, html, id3tag, incr, input, inputfile, inputfolder, inputselect, internetflags, isset, isunicode, itematpos, lax, listfolder, listpane, load, loadlayout, loadsearch, loadsettings, loadtree, logon, makecoffee, md5, moveas, moveto, msg, new, now, obfuscate, open, openwith, paperfolder, pasteto, patchimage, perm, popupcontextmenu, popupmainmenu, popupmenu, popupnested, property, quickfileview, quicksearch, quote, rand, readfile, readonly, readonlyhere, readpv, readurl, readurlutf8, recase, refreshlist, regexmatches, regexreplace, releaseglobals, rename, renameitem, replace, replacelist, report, resolvepath, return, rotate, round, rtfm, run, runq, runret, savesettings, savethumb, searchtemplate, sel, selectitems, self, selfilter, seltab, set, setcolumns, seticons, setkey, setlayout, setting, settingp, shellopen, showhash, showintree, slog, sortby, sortbylist, sound, status, step, strlen, strpos, strrepeat, strreverse, sub, substr, swapnames, sync, syncselect, tab, tabset, tag, tagexport, tagitems, taglist, tagload, text, thumbscacherename, thumbsconf, timestamp, toolbar, trayballoon, trim, unset, unstep, update, urldecode, urlencode, utf8decode, utf8encode, wait, wipe, writefile, writepv, zip_add, zip_extract, zip_list2";
$cmd = inputselect("Select Command", $cmds, ", ", 32 /*autoselect*/ +64 /*listdata has fields*/ +1024 /*focus filter box*/);
rtfm 'idh_scripting_comref.htm#idh_sc_'.$cmd;
With the filter-box and first item autoselected this is extremly elegant, as you just need to type the beginning of the command and hit enter as soon as the right command is selected.