[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] include files



Or use String:load, which is just this:

load {
^thisProcess.interpreter.executeFile(this);
}

S.

On 22 Dec 2007, at 19:28, William Brent wrote:

not sure if i'm doing something wrong, but "~/header.rtf".executeFile gives me this:

ERROR: Message 'executeFile' not understood.
RECEIVER:
Instance of String {    (0D1388D0, gc=58, fmt=07, flg=10, set=02)
etc....

i've double checked the path, so i know the file should be reachable.  and i'm using the latest source for SC.  does it need something else to convert a raw string to a valid path?




On Dec 22, 2007 10:43 AM, Scott Wilson <i@xxxxxxxxxxxxxx> wrote:
"~/header.rtf".executeFile;

S.


On 22 Dec 2007, at 18:36, William Brent wrote:

hello again,

i'm looking for a convenient way to include separate files (with variables that are long lists of numbers, etc) so my main code is easier to navigate and read.  i've been using ~global variables in a separate document and opening them with Document.open before running my main code.  and i have /*RUN*/ at the top of those files so they're immediately evaluated.  but this isn't perfect.

in other words, i wish "~/header.rtf".include existed...

any tips on a more standard approach?


thanks as always.
william



--
William Brent

"Great minds flock together"
Conflations: conversational idiom for the 21st century

www.conflations.com
_______________________________________________
sc-users mailing list


_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users




--
William Brent

"Great minds flock together"
Conflations: conversational idiom for the 21st century

www.conflations.com
_______________________________________________
sc-users mailing list