---Chris Burke wrote: > Alex Rufon wrote: ... > > So now my problem is that the addon files are not part of > the Project > > Manager's library list so I can't just add it there. Adding the > > following to one to one of the script files ... > > At some stage, the addons need to be added to the PM Library list. In > the meantime, just add the script to the source, i.e. in the > source tab, > click Add, navigate to the addon and add it.
It will be nice when addons are properly added to the PM Library list (see Library Request on wiki for one idea of how). In the meantime I add addons that I use frequently to the PM Library list as follows: * Edit ~config/startup.ijs (Edit|Configure|Startup|Open) * Add desired addons to PUBLIC_j_ like this: buildpublic_j_ 0 : 0 dirtrees ~addons/general/dirtrees/dirtrees dirutils ~addons/general/dirutils/dirutils md5 ~addons/convert/misc/md5 inifiles ~addons/general/inifiles/inifiles sqlite ~addons/data/sqlite/sqlite sqlitedef ~addons/data/sqlite/def platimg ~addons/media/platimg/platimg tara ~addons/tables/tara/tara zip ~addons/arc/zip/zfiles ziptrees ~addons/arc/ziptrees/ziptrees csv ~addons/tables/csv/csv ) * Finished. Because of the syntax that PM uses when it includes an entry from the PM Library list in your project, script_z_ '~addons/general/dirutils/dirutils.ijs' script_z_ '~addons/arc/zip/zfiles.ijs' there will be no problem running the built script on other user's machines who haven't made the same config change as you (as long as they have the addon installed). Another bonus is that you can then refer to these addons in the session as you would other defined library scripts. Eg. load 'tara' open 'zip' Note-To-Self: other users may/will not have the same addons defined as me - something to keep in mind when I post to the forum! In that situation it is safer to use the full JAL format. Eg. load 'tables/tara' open 'arc/zip/zfiles' ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
