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^
^~^~^~^~^~^~^~^~~^~~^~~^~^~^~~~^^~^~~~~
^~^~^~^~^~^~^~^~^~^~~^~~^~~^~^~^~~~^~~~