<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>RE: [PD] Backslash</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Sorry, just realized that my great ascii work might not display well<BR>
on some email clients.<BR>
<BR>
The patch is in attachment.<BR>
<BR>
jorge<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: pd-list-bounces@iem.at on behalf of Jorge Cardoso<BR>
Sent: Wed 7/16/2008 8:48 PM<BR>
To: pd-list@iem.at<BR>
Subject: Re: [PD] Backslash<BR>
<BR>
Thanks,<BR>
<BR>
[makefilename %c] worked.<BR>
<BR>
I ended up with this:<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [bang]<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
[dumpOSC 999]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ------<BR>
&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 92 (<BR>
[OSCroute /message]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ------<BR>
&nb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, but it works.<BR>
<BR>
Thanks for the help!<BR>
<BR>
jorge<BR>
<BR>
-----Original Message-----<BR>
From: pd-list-bounces@iem.at on behalf of Frank Barknecht<BR>
Sent: Wed 7/16/2008 6:43 PM<BR>
To: pd-list@iem.at<BR>
Subject: Re: [PD] Backslash<BR>
<BR>
Hallo,<BR>
Jorge Cardoso hat gesagt: // Jorge Cardoso wrote:<BR>
<BR>
&gt; I'm having a problem with backslashs on windows and none of the solution I found<BR>
&gt; on the web works in my case:<BR>
&gt;<BR>
&gt; I have an OSC message that has a path to a file. Something like: &quot;c:\folder\image.jpg&quot;<BR>
&gt;<BR>
&gt; How can I convert that, in PD, to &quot;c:/folder/image.jpg&quot;? I can't control how the OSC messages<BR>
&gt; are generated...<BR>
<BR>
For example with attached pdlua external (needs pdlua)<BR>
<BR>
You need some kind of external, as it's not possible with pure Pd to<BR>
split a symbol at a certain character. You could also use something<BR>
like Zexy's symbol2list for this task - use<BR>
<BR>
&nbsp;[92(<BR>
&nbsp;|<BR>
&nbsp;[makefilename %c]<BR>
<BR>
to generate a backslash symbol to feed into s2l's right inlet then.<BR>
<BR>
Using Lua has the big advantage that you can do some more string<BR>
processing in the same object immediatly and in my experience, once<BR>
you start with text processing you often need a bit more power anyway,<BR>
that's why I'd prefer Lua here.<BR>
<BR>
Ciao<BR>
--<BR>
&nbsp;Frank Barknecht&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _ ______footils.org__<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
Esta mensagem (incluindo quaisquer anexos) pode conter informação confidencial ou legalmente protegida para uso exclusivo do destinatário. Se não for o destinatário pretendido da mesma, não deverá fazer uso, copiar, distribuir ou revelar o seu conteúdo (incluindo quaisquer anexos) a terceiros, sem a devida autorização. Se recebeu esta mensagem por engano, por favor informe o emissor, por e-mail, e elimine-a imediatamente. Obrigado.<BR>
<BR>
<BR>
This message may contain confidential information or privileged material, and is intended only for de individual(s) named. If you are not in the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

<DIV>&nbsp;</DIV><br>Esta mensagem (incluindo quaisquer anexos) pode conter informação confidencial ou legalmente protegida para uso exclusivo do destinatário. Se não for o destinatário pretendido da mesma, não deverá fazer uso, copiar, distribuir ou revelar o seu conteúdo (incluindo quaisquer anexos) a terceiros, sem a devida autorização. Se recebeu esta mensagem por engano, por favor informe o emissor, por e-mail, e elimine-a imediatamente. Obrigado.<br><br><br>This message may contain confidential information or privileged material, and is intended only for de individual(s) named. If you are not in the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.<br></BODY>
</HTML>