#1 in paths

Mar 4, 2008 at 5:48pm

#1 in paths

hi,
I want to use
folder /Users/marius/#1
in an abstraction, where #1 is a number (1, 2, 3…).
somehow #1 does not get substituted by the number I pass as an argument.
is the combination /# problematic? what’s the solution for that?
thnks,
marius.

#36181
Mar 4, 2008 at 5:55pm

ok, sorry, I can answer my own question: arguments cannot be in the
middle of a symbol…
all clear.
marius.

marius schebella wrote:
> hi,
> I want to use
> folder /Users/marius/#1
> in an abstraction, where #1 is a number (1, 2, 3…).
> somehow #1 does not get substituted by the number I pass as an argument.
> is the combination /# problematic? what’s the solution for that?
> thnks,
> marius.
>

#123988
Mar 4, 2008 at 6:06pm

On 4 Mar 2008, at 17:48, marius schebella wrote:

> is the combination /# problematic? what’s the solution for that?

The combination # is problematic. (This is why my registry
object allowed paths to be written backwards!)

Your best solution is sprintf:

[loadmess #1]
|
[sprintf /Users/marius/%d]

Nick Rothwell – nick@cassiel.comhttp://www.cassiel.com
— open-source goodies for MaxMSP: Python, Groovy, Nixie Tubes,
— rotatable text bricks, databases: all at http://www.loadbang.net

#123989

You must be logged in to reply to this topic.