Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-31 Thread Johnny Mauser
[splitfilename]

Did you or me miss the obvious?

Best,

Jonas
Am 31.10.2013 02:43 schrieb tim vets timv...@gmail.com:

 I don't have [basedir] or [strippath] here, but [list-splat] (list-abs),
[s2l] and [l2s] (zexy) do the trick.
 see attached
 gr,
 Tim


 2013/10/27 Antonio Roberts anto...@hellocatfood.com

 I want to be able to strip the file name from a path of a file opened
via [openpanel]. I've looked into using [stripfilename] but that'd only
work if the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-31 Thread Antonio Roberts
Aha, that seems exactly what I was after all along! Do you know if it
works on Windows as well?

Antonio

On 31 October 2013 08:17, Johnny Mauser joson.andr...@googlemail.com wrote:
 [splitfilename]

 Did you or me miss the obvious?

 Best,

 Jonas
 Am 31.10.2013 02:43 schrieb tim vets timv...@gmail.com:



 I don't have [basedir] or [strippath] here, but [list-splat] (list-abs),
 [s2l] and [l2s] (zexy) do the trick.
 see attached
 gr,
 Tim


 2013/10/27 Antonio Roberts anto...@hellocatfood.com

 I want to be able to strip the file name from a path of a file opened via
 [openpanel]. I've looked into using [stripfilename] but that'd only work if
 the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 

anto...@hellocatfood.com
http://www.hellocatfood.com


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-30 Thread Antonio Roberts
I just released a patch that uses basedir and a few Windows users of Pure
Data extended have said that basedir isn't loading, even if it's called via
moonlib/basedir. Is this an error or does basedir not work on Windows?


On 28 October 2013 08:54, peiman khosravi peimankhosr...@gmail.com wrote:

 yes sorry, it is indeed.

 P




  *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 28 October 2013 08:47, Alexandros Drymonitis adr...@gmail.com wrote:




 On Sun, Oct 27, 2013 at 10:21 PM, peiman khosravi 
 peimankhosr...@gmail.com wrote:

 Hello,

 Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

 Isn't the library called moonlib?


 Best,
 P




 *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 27 October 2013 19:56, Antonio Roberts anto...@hellocatfood.comwrote:

 I want to be able to strip the file name from a path of a file opened
 via [openpanel]. I've looked into using [stripfilename] but that'd only
 work if the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list






-- 

anto...@hellocatfood.com
http://www.hellocatfood.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-30 Thread peiman khosravi
Hello,

I don't have windows to test this. Is it that the external is not loading
at all or there is a problem with the format of the path?

P




*www.peimankhosravi.co.uk || RSS
Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
Concert News http://spectralkimia.wordpress.com/*


On 30 October 2013 12:56, Antonio Roberts anto...@hellocatfood.com wrote:

 I just released a patch that uses basedir and a few Windows users of Pure
 Data extended have said that basedir isn't loading, even if it's called via
 moonlib/basedir. Is this an error or does basedir not work on Windows?


 On 28 October 2013 08:54, peiman khosravi peimankhosr...@gmail.comwrote:

 yes sorry, it is indeed.

 P




  *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 28 October 2013 08:47, Alexandros Drymonitis adr...@gmail.com wrote:




 On Sun, Oct 27, 2013 at 10:21 PM, peiman khosravi 
 peimankhosr...@gmail.com wrote:

 Hello,

 Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

 Isn't the library called moonlib?


 Best,
 P




 *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 27 October 2013 19:56, Antonio Roberts anto...@hellocatfood.comwrote:

 I want to be able to strip the file name from a path of a file opened
 via [openpanel]. I've looked into using [stripfilename] but that'd only
 work if the directory or file name length were the same in every 
 situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list






 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-30 Thread Antonio Roberts
The moonlib external appears to be installed, as does the help patch for
basedir, but the object itself doesn't exist. This doesn't happen on Ubuntu.

Antonio


On 30 October 2013 15:07, peiman khosravi peimankhosr...@gmail.com wrote:

 Hello,

 I don't have windows to test this. Is it that the external is not loading
 at all or there is a problem with the format of the path?

  P




 *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 30 October 2013 12:56, Antonio Roberts anto...@hellocatfood.comwrote:

 I just released a patch that uses basedir and a few Windows users of Pure
 Data extended have said that basedir isn't loading, even if it's called via
 moonlib/basedir. Is this an error or does basedir not work on Windows?


 On 28 October 2013 08:54, peiman khosravi peimankhosr...@gmail.comwrote:

 yes sorry, it is indeed.

 P




  *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 28 October 2013 08:47, Alexandros Drymonitis adr...@gmail.comwrote:




 On Sun, Oct 27, 2013 at 10:21 PM, peiman khosravi 
 peimankhosr...@gmail.com wrote:

 Hello,

 Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

 Isn't the library called moonlib?


 Best,
 P




 *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 27 October 2013 19:56, Antonio Roberts anto...@hellocatfood.comwrote:

 I want to be able to strip the file name from a path of a file opened
 via [openpanel]. I've looked into using [stripfilename] but that'd only
 work if the directory or file name length were the same in every 
 situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list






 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 





-- 

anto...@hellocatfood.com
http://www.hellocatfood.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-30 Thread Martin Peach

On 2013-10-30 11:07, peiman khosravi wrote:

Hello,

I don't have windows to test this. Is it that the external is not
loading at all or there is a problem with the format of the path?



The source code for [basedir] is only compiled if _WIN32 is not defined.

Martin

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-30 Thread tim vets
I don't have [basedir] or [strippath] here, but [list-splat] (list-abs),
[s2l] and [l2s] (zexy) do the trick.
see attached
gr,
Tim


2013/10/27 Antonio Roberts anto...@hellocatfood.com

 I want to be able to strip the file name from a path of a file opened via
 [openpanel]. I've looked into using [stripfilename] but that'd only work if
 the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


#N canvas 149 153 450 437 10;
#X obj 45 117 s2l;
#X msg 72 94 symbol /;
#X obj 45 49 openpanel;
#X obj 45 142 list-splat -1;
#X obj 45 28 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 142 216 prepend set;
#X obj 45 170 l2s;
#X obj 45 71 t s b;
#X obj 45 246 prepend set;
#X text 13 272 path;
#X text 87 300 filename;
#X obj 45 198 prepend /;
#X obj 45 222 l2s;
#X msg 72 170 symbol;
#X msg 45 272 /home/tim/some/path;
#X msg 142 302 somefile.txt;
#X connect 0 0 3 0;
#X connect 1 0 0 1;
#X connect 1 0 6 1;
#X connect 2 0 7 0;
#X connect 3 0 6 0;
#X connect 3 1 5 0;
#X connect 4 0 2 0;
#X connect 5 0 15 0;
#X connect 6 0 11 0;
#X connect 7 0 0 0;
#X connect 7 1 1 0;
#X connect 7 1 13 0;
#X connect 8 0 14 0;
#X connect 11 0 12 0;
#X connect 12 0 8 0;
#X connect 13 0 12 1;
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-28 Thread Alexandros Drymonitis
On Sun, Oct 27, 2013 at 10:21 PM, peiman khosravi
peimankhosr...@gmail.comwrote:

 Hello,

 Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

Isn't the library called moonlib?


 Best,
 P




 *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 27 October 2013 19:56, Antonio Roberts anto...@hellocatfood.comwrote:

 I want to be able to strip the file name from a path of a file opened via
 [openpanel]. I've looked into using [stripfilename] but that'd only work if
 the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-28 Thread peiman khosravi
yes sorry, it is indeed.

P




*www.peimankhosravi.co.uk || RSS
Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
Concert News http://spectralkimia.wordpress.com/*


On 28 October 2013 08:47, Alexandros Drymonitis adr...@gmail.com wrote:




 On Sun, Oct 27, 2013 at 10:21 PM, peiman khosravi 
 peimankhosr...@gmail.com wrote:

 Hello,

 Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

 Isn't the library called moonlib?


 Best,
 P




 *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 27 October 2013 19:56, Antonio Roberts anto...@hellocatfood.comwrote:

 I want to be able to strip the file name from a path of a file opened
 via [openpanel]. I've looked into using [stripfilename] but that'd only
 work if the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Strip file name from path (alternative to [stripfilename])?

2013-10-27 Thread Antonio Roberts
I want to be able to strip the file name from a path of a file opened via
[openpanel]. I've looked into using [stripfilename] but that'd only work if
the directory or file name length were the same in every situation.

Can anyone help?

Thanks

-- 

anto...@hellocatfood.com
http://www.hellocatfood.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-27 Thread peiman khosravi
Hello,

Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

Best,
P




*www.peimankhosravi.co.uk || RSS
Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
Concert News http://spectralkimia.wordpress.com/*


On 27 October 2013 19:56, Antonio Roberts anto...@hellocatfood.com wrote:

 I want to be able to strip the file name from a path of a file opened via
 [openpanel]. I've looked into using [stripfilename] but that'd only work if
 the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Strip file name from path (alternative to [stripfilename])?

2013-10-27 Thread Antonio Roberts
Thanks, that worked perfectly! Much better than my solution of counting the
characters in the filename and subtracting it from the path with
stripfilename!


On 27 October 2013 20:21, peiman khosravi peimankhosr...@gmail.com wrote:

 Hello,

 Take a look at the externals 'basedir' (Moonix) and 'strippath' (zexy).

 Best,
 P




 *www.peimankhosravi.co.uk || RSS 
 Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
 Concert News http://spectralkimia.wordpress.com/*


 On 27 October 2013 19:56, Antonio Roberts anto...@hellocatfood.comwrote:

 I want to be able to strip the file name from a path of a file opened via
 [openpanel]. I've looked into using [stripfilename] but that'd only work if
 the directory or file name length were the same in every situation.

 Can anyone help?

 Thanks

 --
 
 anto...@hellocatfood.com
 http://www.hellocatfood.com
 

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list





-- 

anto...@hellocatfood.com
http://www.hellocatfood.com

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list