[PD] converting an absolute to relative file path

Antonio Roberts antonio at hellocatfood.com
Mon May 9 13:37:30 CEST 2011

Alternatively you could use [playlist], which is an in-patch file
browser. by sending [location /folder/path/ ( to the object it'll jump
to that location and you can also restrict what is displayed to a
specific file extension.


2011/5/9 András Murányi <muranyia at gmail.com>:
> On Mon, May 9, 2011 at 10:40, matteo sisti sette
> <matteosistisette at gmail.com> wrote:
>> Hi,
>> I'd like to use [openpanel] to let a user easily chose a file without
>> having to type its name, but then I would like to take the relative
>> path of the file (relative to the patch) rather than its full absolute
>> path. Is there a way to accomplish that?
>> Is there some external that would take an absolute path as a symbol,
>> compare it to the current working directory, and return a relative
>> path to the same file?
>> Alternatively, is there an external that can return the current
>> working directory? On top of that, I could build an abstraction that
>> would do almost what I need at least under some restrictions (e.g.
>> when the file is in a descendant of the current folder)....
>> Thanks
>> m.
> I use [absolutepath] and [relativepath] from moonlib.
> Andras
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list

More information about the Pd-list mailing list