GIMP Chat http://gimpchat.com/ |
|
filename help[Solved] http://gimpchat.com/viewtopic.php?f=8&t=18855 |
Page 1 of 1 |
Author: | Graechan [ Thu Oct 15, 2020 1:25 am ] |
Post subject: | filename help[Solved] |
GIMP Version: 2.10.22 Operating System: Windows GIMP Experience: Experienced User of this file name 'C:\Users\Graechan\Documents\customfont\1Sans.xcf' all I want to use as a name is '1Sans.xcf' I've tried using strbreakup and string-append but I am having difficulty getting things right hoping someone can assist as I'm having a brain fade
|
Author: | sallyanne [ Thu Oct 15, 2020 2:29 am ] |
Post subject: | Re: filename help |
Graechan wrote: GIMP Version: 2.10.22 Operating System: Windows GIMP Experience: Experienced User of this file name 'C:\Users\Graechan\Documents\customfont\1Sans.xcf' all I want to use as a name is '1Sans.xcf' I've tried using strbreakup and string-append but I am having difficulty getting things right hoping someone can assist as I'm having a brain fade Ok I could be completely wrong (not understanding your dilemma) but isn't 'C:\Users\Graechan\Documents\customfont\1Sans.xcf' the path to the file? and '1Sans.xcf' the file name? |
Author: | Graechan [ Thu Oct 15, 2020 3:15 am ] |
Post subject: | Re: filename help |
This is how I loaded a file from a directory but when I wanted to name the file with filename it included the path (set! file-list (cadr (file-glob (string-append inDir "\\*.xcf") 1))) (set! filename (car file-list)) (set! img (car (gimp-file-load 1 filename filename))) And I ended up with a layer name of 'C:\Users\Graechan\Documents\customfont\1Sans.xcf'
|
Author: | paynekj [ Thu Oct 15, 2020 3:40 am ] |
Post subject: | Re: filename help |
Code: Select all (car (last (strbreakup filepath DIR-SEPARATOR))) Where the filepath is "C:\\Users\\Graechan\\Documents\\customfont\\1Sans.xcf" if written explicitly Kevin |
Author: | Graechan [ Thu Oct 15, 2020 9:53 pm ] |
Post subject: | Re: filename help |
Thank you Paynekj as it turned out I was not even close, I lost my cheat sheet on strings and memory at my age is fickle to say the least |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |