Thank you all so much!<br>Building the filename and passing it onto an [ open $1 ( message worked perfectly.<br>One should know better by now, I should&#39;ve thought of it... oh well. Hindsight is 20/20.<br>Cheers<br><br>
<div class="gmail_quote">On Sun, Feb 21, 2010 at 6:41 PM, Jonathan Wilkes <span dir="ltr">&lt;<a href="mailto:jancsika@yahoo.com">jancsika@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
--- On Sun, 2/21/10, Roman Haefeli &lt;<a href="mailto:reduzierer@yahoo.de">reduzierer@yahoo.de</a>&gt; wrote:<br>
<br>
&gt; From: Roman Haefeli &lt;<a href="mailto:reduzierer@yahoo.de">reduzierer@yahoo.de</a>&gt;<br>
&gt; Subject: Re: [PD] turn a symbol to a message<br>
&gt; To: &quot;Ignacio Lois&quot; &lt;<a href="mailto:ignaciolois@gmail.com">ignaciolois@gmail.com</a>&gt;<br>
&gt; Cc: <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>
&gt; Date: Sunday, February 21, 2010, 11:03 AM<br>
<div><div></div><div class="h5">&gt; On Sat, 2010-02-20 at 20:01 +0100,<br>
&gt; Ignacio Lois wrote:<br>
&gt; &gt; Hello everyone.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;ve been pulling my hair out for a while with an<br>
&gt; inexplicable<br>
&gt; &gt; problem.<br>
&gt; &gt; I&#39;m trying to build an [open file.wav( message to feed<br>
&gt; a [readsf~]<br>
&gt; &gt; object.<br>
&gt; &gt; A [makefilename] object is returning the exact symbol.<br>
&gt; I&#39;m connecting<br>
&gt; &gt; it to a [$1( message, and then onto the [readsf~]<br>
&gt; object and I get the<br>
&gt; &gt; error: &quot;readsf~_ no method for &#39;open file.wav&#39;<br>
&gt; &gt; If I replace the $1 message for the hard coded &quot;open<br>
&gt; file.wav&quot;, it<br>
&gt; &gt; works perfectly.<br>
&gt; &gt; What am I doing wrong?<br>
&gt;<br>
&gt; And yeah: Pd is missing a way to display the distinction<br>
&gt; between:<br>
&gt;<br>
&gt; &quot;&#39;open file.wav&#39;&quot;       &lt;-<br>
&gt; &#39;open file.wav&#39; selector<br>
&gt;<br>
&gt; and:<br>
&gt;<br>
&gt; &quot;&#39;open&#39; &#39;file.wav&#39;&quot;    &lt;- message with &#39;open&#39;<br>
&gt; selector<br>
&gt;                <br>
&gt;           and &#39;file.wav&#39; as first<br>
&gt; argument<br>
&gt;<br>
&gt; Both look the same, when printed. This indeed could be<br>
&gt; confusing. How<br>
&gt; about adding a &#39;debug&#39; [print] option (-d?) to make [print]<br>
&gt; not decode<br>
&gt; incoming message, but make it print all the implicit stuff,<br>
&gt; that is<br>
&gt; usually hidden? Would that make sense?<br>
<br>
</div></div>How would [print] resolve this ambiguity?  Both messages above<br>
are handled by the print_anything method, which prints the selector<br>
+ any atoms that make up the rest of the message.  Plus if there&#39;s a way<br>
to clearly distinguish visually between these two messages, I&#39;d rather see<br>
that solution applied to Pd as a whole, so that for instance symbols with<br>
spaces in them may be saved in a patch.<br>
<br>
In the meantime, it might be helpful to make an abstraction that breaks up<br>
an incoming message into its constituent parts.  So one&#39;s output would look like this:<br>
selector: open file.wav<br>
arguments:<br>
<br>
while the the other&#39;s would look like this:<br>
selector: open<br>
arguments: file.wav<br>
<br>
But I don&#39;t think this should be the job of the [print] object.<br>
<font color="#888888"><br>
-Jonathan<br>
<br>
<br>
<br>
<br>
</font></blockquote></div><br>