catch entire filepath when storing an xml file

Dec 20, 2009 at 5:35pm

catch entire filepath when storing an xml file

Hi list,

When I write the content of a pattrstorage object I can choose the folder (and even create a new one) where I store the xml file it creates.
but the pattrstorage only sends “write filename.xml 1″ when it’s done.
What i need is the complete filepath so i can use it to automaticaly store other sub-pattrstorages contained in sub-patches in the same folder.
any idea ?
thank’s a lot

Dec 20, 2009 at 7:06pm

You can use [savedialog fold] to specify a location and then use [sprintf] to format it to write your xml, this means you can reuse the location again whenever you like.


Dec 20, 2009 at 10:30pm

thank’s a lot.
(how did I miss that ??)
do you know how I could throw the filename to get only his folder path ?
regexp maybe but I don’t speak his language…

Dec 20, 2009 at 10:37pm

Got it ! just in one test !

regexp (.+/).+

kind of magic for me but it works


You must be logged in to reply to this topic.