Re: [Gimp-developer] [SCM] text file management
f On 1/10/06, Sven Neumann [EMAIL PROTECTED] wrote: Hi, Fab Psycho [EMAIL PROTECTED] writes: I'd like to write in a text file from a scm plugin.I didn't see any relevant fx in gimp function browser... Someone could give me a sample source for file opening, writing and closing ? From the SIOD reference: (fopen path mode) Opens the file and returns a file stream. (fwrite data stream) Write the data, a string or byte-array to the stream. Or data can also be a list of a string or byte-array and a numerical length. (fclose stream) Closes the open file stream. Hmm, interesting. I couldn't get this to work with script-fu under 1.2, but it seems to work fine under 2.2. Rockwalrus ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [SCM] text file management
Nathan Summers ([EMAIL PROTECTED]) wrote: On 1/10/06, Sven Neumann [EMAIL PROTECTED] wrote: (fopen path mode) (fwrite data stream) (fclose stream) Hmm, interesting. I couldn't get this to work with script-fu under 1.2, but it seems to work fine under 2.2. Well, it certainly worked 7 years ago: http://www.home.unix-ag.org/simon/gimp/hotspots.html :-) Bye, Simon -- [EMAIL PROTECTED] http://simon.budig.de/ ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [SCM] text file management
On 1/9/06, Fab Psycho [EMAIL PROTECTED] wrote: Hi, I'd like to write in a text file from a scm plugin.I didn't see any relevant fx in gimp function browser... Someone could give me a sample source for file opening, writing and closing ? Script-Fu isn't capible of doing this. If you haven't checked out tiny-fu, you probably should. Rockwalrus ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
Re: [Gimp-developer] [SCM] text file management
Hi, Fab Psycho [EMAIL PROTECTED] writes: I'd like to write in a text file from a scm plugin.I didn't see any relevant fx in gimp function browser... Someone could give me a sample source for file opening, writing and closing ? From the SIOD reference: (fopen path mode) Opens the file and returns a file stream. (fwrite data stream) Write the data, a string or byte-array to the stream. Or data can also be a list of a string or byte-array and a numerical length. (fclose stream) Closes the open file stream. Sven ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer
[Gimp-developer] [SCM] text file management
Hi, I'd like to write in a text file from a scm plugin.I didn't see any relevant fx in gimp function browser... Someone could give me a sample source for file opening, writing and closing ? Best regards, Fabian ___ Gimp-developer mailing list Gimp-developer@lists.XCF.Berkeley.EDU https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer