mangini / gdocs2md

Convert a Google Drive Document to the Markdown format, suitable for publishing.
Apache License 2.0
2.66k stars 621 forks source link

Cannot call method "getActiveSection" #12

Closed reggi closed 11 years ago

reggi commented 11 years ago

Getting this error when I run after authenticating.

TypeError: Cannot call method "getActiveSection" of null. (line 2, file "Code")

I also can't see the script in the scripts manager.

mangini commented 11 years ago

Are you sure you are running it inside a Google Drive Document? Because it doesn't work for Presentation and Spreadsheets.

If you can share a document with this error with me, it is easy for me to check.

reggi commented 11 years ago

It is a document. You want me to share the script or the doc?

mangini commented 11 years ago

The minimum doc that gives an error (I don't want to see any private information in your doc, so please remove anything that might contain personal/private info). My email is the same as my github name, domain gmail.com

reggi commented 11 years ago

That error is coming from the script itself (shared).

screen shot 2013-06-11 at 1 02 41 pm

mangini commented 11 years ago

How did you open the Script Editor? As per the instructions, you need to open it from an existing Document (Tools -> Script Editor). Looking at the tabs you have opened, I don't see any Document there. It can be in another window, but that's something to check anyway, since the error is quite the same if you happen to not have the document opened when executing the script.

reggi commented 11 years ago

If I go to Tools -> Script Editor it sends me to the following screenshot:

screen shot 2013-06-11 at 1 57 06 pm

reggi commented 11 years ago

I just got it working I had to "Create script for" Document.

reggi commented 11 years ago

Is there anyway for you to publish the app? To make this easier?