Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-07-26 Thread Kevin Cozens
saulgo...@flashingtwelve.brickfilms.com wrote: I hadn't realized that the TinyScheme Extensions had been enabled for Script-fu. Script-Fu in GIMP uses a subset of the TSX (TinyScheme eXtensions) module. The 'getenv', 'system', and various additional functions which supported use of sockets

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-07-08 Thread Gino D
2010/7/8 Kevin for...@gimpusers.com: Would it not be possible to create a reasonably unique name using the tiny-fu, ftx extension, (time) function? That should give you a name unique to the current time, at least if you don't try and use it more than once in the current second. You'd

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-06-29 Thread Gino D
2010/6/27 Jon Cruz j...@joncruz.org: On Jun 23, 2010, at 10:58 AM, Gino D wrote: After doing several tests, my impression is that such a stratagem should work well. Nevertheless, I'm not totally sure of its infallibility, because, among other things, I don't know if the character “!” is

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-06-27 Thread Gino D
2010/6/25 Rob Antonishen rob.antonis...@gmail.com: Add in a merge sort (i used these three functions):    (define split      (lambda (ls) ...          (split-h ls ls '()    (define merge      (lambda (pred ls1 ls2)     ...          (else (cons (car ls2) (merge pred ls1 (cdr

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-06-26 Thread Jon Cruz
On Jun 23, 2010, at 10:58 AM, Gino D wrote: After doing several tests, my impression is that such a stratagem should work well. Nevertheless, I'm not totally sure of its infallibility, because, among other things, I don't know if the character “!” is really the first valid symbol on all

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-06-25 Thread Rob Antonishen
Your approach would not succeed on GNU/Linux platforms because 'dir-read-entry' does not ensure that the entries are returned in alphabetical order. Even on Windows I suspect you will find that the order entries are retrieved is dependent upon the type of filesystem (FAT, VFAT, NTFS all

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-06-24 Thread Gino D
Hi. 2010/6/23 saulgo...@flashingtwelve.brickfilms.com: I do not believe it is possible for a Script-fu to delete files. You will need to either do this outside of GIMP or write a plug-in. Deletion of files is made possible by the “file-delete” procedure, as shown at the end of the sequence

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-06-24 Thread saulgoode
Quoting Gino D ginodo...@gmail.com: I do not believe it is possible for a Script-fu to delete files. You will need to either do this outside of GIMP or write a plug-in. Deletion of files is made possible by the “file-delete” procedure, as shown at the end of the sequence of commands I

Re: [Gimp-developer] Creating unique file names with Script-Fu

2010-06-23 Thread saulgoode
Quoting Gino D ginodo...@gmail.com: I'm working on a script in which I would like to insert a sequence of commands aimed to save a drawable as PAT file and eventually, when no longer needed, eliminate the file in question. I do not believe it is possible for a Script-fu to delete files. You