Page 1 of 1

Can't write to file,access denied.

Posted: 28 Sep 2016, 10:22
by Crankrune
I'm trying to write stuff to a text file, and when I do I get an error. Any way to fix this?

ExpressionException: access denied "java.io.FilePermission"

Re: Can't write to file,access denied.

Posted: 28 Sep 2016, 12:36
by rednoah
The format sandbox does not allow you write files. You won't be able to write files in your format expression. What are you trying to do anyway?

Re: Can't write to file,access denied.

Posted: 28 Sep 2016, 20:11
by Crankrune
Honestly just screwing around with different things filebot can do, and this seems like something that could be useful.

Re: Can't write to file,access denied.

Posted: 29 Sep 2016, 03:15
by rednoah
You can just write Groovy scripts for more advance scripting tasks: http://www.filebot.net/script.html

Re: Can't write to file,access denied.

Posted: 30 Sep 2016, 19:26
by rednoah
CORRECTION: Looks like you will be able to write to your user home, application data folder and temporary files folder.

e.g.

Code: Select all

{home/'json.txt' << json << '\n'}