I tried that but still got some errors that I don't understand:

doing exactly the same i got this:

Inline image 1


and if I switch the order I get this:
Inline image 2

The second one gots closer to the goal, but why do I get "symbol" instead of the filename(which arrives correctly as you can see)?

Thanx!


On Fri, Feb 1, 2013 at 9:42 AM, IOhannes zmölnig <zmoelnig@iem.at> wrote:
On 01/31/2013 10:24 PM, Ňscar Martínez Carmona wrote:
---------- Missatge reenviat ----------
De: *Ňscar Martínez Carmona*

Data: dijous 31 de gener de 2013
Assumpte: absolute vs relative filepath on oggread~
A: IOhannes m zmölnig<zmoelnig@iem.at>


In reality now I'm facing some trouble composing the whole file path by
concatenating the message I got from [getdir] and the file name via osc,
I've tried [glue] and [pack s s] and I get errors on data types and stuff
like that (I'm away from computer now so I cannot prompt out) any
suggestions??

you need to construct a symbol (absolute filename) from a two element list (filename, absolutedirname).
[pack] and [glue] (the latter being deprecated in favour of [list append]) and the entire [list] family of objects will help you to create "list"s of "atoms" (aka elements, which can be either symbols or numbers). but they will not help you to create a single symbol out of that list.
the simplest way to do that is by using dollarg-expansion in a messagebox.


e.g.

filename
|        absolute_directory_name
|        |
[pack s s]
|
| ("list filename absolute_directory_name")
|
[open $2/$1(
|
| ("open absolute_directory_name/filename")


gfmdasr

IOhannes

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



--
Ňscar Martínez Carmona