RSS/Atom feed Twitter
Site is read-only, email is disabled

[SCM] text file management

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

[SCM] text file management Fab Psycho 09 Jan 20:45
  [SCM] text file management Nathan Summers 10 Jan 18:15
  [SCM] text file management Sven Neumann 10 Jan 21:57
   [SCM] text file management Nathan Summers 11 Jan 16:25
    [SCM] text file management Simon Budig 11 Jan 17:36
     [SCM] text file management Nathan Summers 11 Jan 20:45
Fab Psycho
2006-01-09 20:45:56 UTC (over 18 years ago)

[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

Nathan Summers
2006-01-10 18:15:23 UTC (over 18 years ago)

[SCM] text file management

On 1/9/06, Fab Psycho 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

Sven Neumann
2006-01-10 21:57:45 UTC (over 18 years ago)

[SCM] text file management

Hi,

"Fab Psycho" 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

Nathan Summers
2006-01-11 16:25:27 UTC (over 18 years ago)

[SCM] text file management

f

On 1/10/06, Sven Neumann wrote:

Hi,

"Fab Psycho" 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

Simon Budig
2006-01-11 17:36:18 UTC (over 18 years ago)

[SCM] text file management

Nathan Summers (rockwalrus@gmail.com) wrote:

On 1/10/06, Sven Neumann 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

Nathan Summers
2006-01-11 20:45:03 UTC (over 18 years ago)

[SCM] text file management

On 1/11/06, Simon Budig wrote:

Nathan Summers (rockwalrus@gmail.com) wrote:

On 1/10/06, Sven Neumann 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

Maybe it was only broken on Windows.

Rockwalrus