[PD] Read directory content and get filename

Jack jack at rybn.org
Wed Nov 26 16:06:38 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

With pd-extended and [shell] you can send the message : [ ls -t | head
- -n 1 (. You will receive the last created file or directory. Example
attached.
After you need [pix_image] from Gem to display the picture. See help
of [gemwin] to know how to display in fullscreen.
++

Jack



Le 25/11/2014 23:45, simone a écrit :
> Hi i am trying to write a simple application that will read the
> content of a directory (should self update), get the last added
> file and show it fullscreen. So far I ve got almost all the pieces
> together but I am don t understand well how to use lists, after
> [folder_list] i d expect to be able to use [zl nth] but it seems
> like it s reeading the whole block and not the single files as in a
> list. tx Simone
> 
> 
> 
> _______________________________________________ 
> Pd-list at lists.iem.at mailing list UNSUBSCRIBE and
> account-management -> http://lists.puredata.info/listinfo/pd-list
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUdex+AAoJEOuluecjw8GU1tQH/RUW7kCe2IwVPnx1+XioW7rV
WwGut53QruAQajxxGcvTv8h4DhW8231eT1wWtds1SZPTNXqwuW5WA3JefmXj4/LQ
MM+4MA4iMoq1yem0ywHxFo2i4KeyXsj2yClVvHSznSmhyTb7D748M9HataxSVoM1
aNtVbARe+IvpftPQZlvelSkd/miX47SLiKfycSqkzFqSRgsEM0cqV13b2vIIe96X
hDuUHcyUZeG8dz/wFPjfsX5UGqakhk4olZQpn+49yV9YbfrIdONG6/T+P95/os/l
GzrLIRWF8e1KPXgcz+vkNfohiIyztwWHpXSeV0CPhqzsAnyquSLyRAFCjHU5yPk=
=DDKq
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: show_last_modified.pd
Type: application/puredata
Size: 145 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20141126/94d46344/attachment.bin>


More information about the Pd-list mailing list