[PD] Permission error: writing txt with Lua
Luiz Naveda
lab.naveda at gmail.com
Sun May 10 18:35:35 CEST 2015
Dear List,
I am trying to write a txt with pdlua (using pdluax) in a Mac (yosemite)
Everything is clear but I can't solve a permission error:
lua: error in dispatcher:
[string "txtwrite.pd_luax"]:11: example.txt: Permission denied
The pd patch and lua script are attached. Any clue about what is going on?
See lua code below.
Thanks
Luiz Naveda
------
return function (self, sel, atoms)
self.inlets = 1
self.outlets = 0
function self:in_1_write()
require ("io")
file = assert(io.open("example.txt", "w"))
file:write("test, test, test ")
file:close()
-- end
end
return true
end
------
Luiz Naveda
_____________________________________________________
http://naveda.info
^v^
^v^
^v^
^~^~^~^~^~^~^~^~~^~~^~~^~^~^~~~^^~^~~~~
^~^~^~^~^~^~^~^~^~^~~^~~^~~^~^~^~~~^~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150510/edb85fd4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: problem.pd
Type: application/octet-stream
Size: 101 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150510/edb85fd4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: txtwrite.pd_luax
Type: application/octet-stream
Size: 249 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20150510/edb85fd4/attachment-0001.obj>
More information about the Pd-list
mailing list