This content has been marked as final. Show 4 replies
You'll want to read the JS API Reference regarding the SaveAs call. Not entirely sure what you're doing, but that is definitely not how you call the saveAs method. There is also no Doc.getPath method, unless this is a custom document-level method you have defined elsewhere.
I did exactly as shown in JS API Reference:
but still got the same message for this line:
"Security settings prevent access to this property or method."
Did you read all of the security notes related to the saveAs method?
These are vital, don't skip over them.
> "Security settings prevent access to this property or method."
You're getting this error because you're trying to use the method in a context that does not allow it. These restrictions are clearly listed in the API Reference.