Hi,
If your have a script in the form of a text file, you can load it into the
F-Script workspace either "manually" (doing a simple copy/paste from your
file's content to the F-Script window) or programmatically, using the
standard Cocoa methods for file access. For instance, you can load the
content of your file into an NSString and then convert it to a F-Script
block using the "blockFromString:" method implemented by the System class.
Example:
myBlock := sys blockFromString:(NSString stringWithContentsOfFile:'myfile')
Note that the script in your file must follow the syntax of F-Script blocks
(e.g. begin with "[" and end with "]")
Best,
Phil
----- Original Message -----
From: "Ruhi Bloodworth" <ru...@co...>
To: <f-s...@li...>
Sent: Wednesday, March 13, 2002 3:46 AM
Subject: [F-Script-talk] Loading a file into the workspace
> Hi,
> I'm new to f script and I was wondering how to use a script I have in a
> file within the workspace.
>
> Regards,
> Ruhi
>
> _______________________________________________
> F-Script-talk mailing list
> F-S...@li...
> https://lists.sourceforge.net/lists/listinfo/f-script-talk
|