Home   Archive   Permalink



Using a text editor

You may already faced this issue, when you run your rebol.exe directly or from a shortcut your user.r file will be loaded and you'll be able to use your favorite functions like cls or something in your user.r file.
But it won't be loaded if you execute your script from inside a text editor (like Editplus). So when you halt the execution you won't be able to use those functions in your user.r file.
Here is the solution I've found:
    
-i --secure allow --do "do join first split-path system/options/boot %user.r" --script "$(FilePath)"
    
-i is for "no install" for view & link only.
Note that the --do "..." part. You can change it to any file you want to be loaded when you execute a file.
This is for Editplus but will mostly be same for other text editors.

posted by:   Endo       23-Jun-2010/9:10:25-7:00



I keep short filename versions of RebGUI and other modules right in the working directory of the REBOL interpreter. For RebGUI, I type "do %rg". That way, I can quickly and selectively choose code to load :)

posted by:   Nick       23-Jun-2010/10:34:51-7:00



I have lots of different scripts for different customers in different directories :) so I don't have just one working directory.
Actually I don't know why rebol.r or user.r file don't be loaded at startup. I have all env. variables like REBOL, REBOLHOME, REBOL_HOME pointing to correct dir.

posted by:   Endo       23-Jun-2010/15:00:17-7:00