Hi, anyone know like how to write file names right, like directories? Like for example: Macintosh HD/Users/name/folder/file name.aif ? If this were the second argument of an open message. I could see how the spaces could be issues for PD. Furthermore, if anyone has the jist of how to specify in a patch or part of a patch, which directory or folder to save a file by simply writing the filename in a message such as "file name.aif" (instead of writing the whole directory name like Macintosh HD/Users/name/folder/file name.aif) that would be an additional bonus. I have either saved files or opened them or both by just writing the file name before but I wondered how to like choose which file they are appended with. Answers to the above 1st question and second would both be beneficial. Gracias
-
Filenames
-
i think you can use underscore _ to specify a space, but i always use filenames without spaces to avoid confusion.
-
I think underscores replacing spaces is a good move. I figured out that /Users/name/folder/filename.aif works. If there's a way to abridge this by just writing the filename, I'd find that solution useful. Perhaps the above directory example is just how to do it on my machine, however. Ok, thanks
-
Here's a block of code ripped from the heart of an application I wrote - inside the
sample loader bit you will find an example of using nested substitution with [makefilename], which is how you can access files in a long path just by their indexie:
/Users/blah/foo/bob/bah/blip001.wav
/Users/blah/foo/bob/bah/blip002.wav
/Users/blah/foo/bob/bah/blip003.wav
/Users/blah/foo/bob/bah/blip004.wav
/Users/blah/foo/bob/bah/blip005.wav
/Users/blah/foo/bob/bah/blip006.wav.. just by using an integer index 0, 1, 2, 3 ...
Use the Source.
-
yo there a way to change symbols to messages? obiwan thanks for help here and in other topics, thanks bunch. at moment this question may or may not be irrelevant cant tell yet
-
i think
[symbol]
|
[$1 {should work. when the symbol outputs, the message replaces $1 with its input. i <think> this works with symbols as well as numbers, but check the tutorial/help on 'dollar sign' just to be sure... and remember, $1 in an object does NOT act the same as $1 in a message.
-ian