Of course you can link the newlisp executable with your code, but then you lose one of the advantages of scripting languages: ability to modify your code and run it immediately. Linking is too similar to compilation. :-( My solution is to link the newlisp executable with this one-liner:BTW, screensavers are not only to save your screens! It is just a handy way to do something useful when your computer is idle.
Code: Select all
(load (replace {\.[^\\.]*$} (main-args 0) ".lsp" 0))
BTW, "ushaper" is not just a random name, it is my small script to shape uTorrent client bandwith: give it more when you are away, get it back when you return to you computer. Source is here. ;-)