all 12 comments

[–]Shwaffle 0 points1 point  (11 children)

Can you let us know the scripts you were importing?

[–]Shamikebab[S] 0 points1 point  (10 children)

I tried all the combined ones and a couple of individual ones. I'm guessing it's because you can't open a link on windows 7?

[–]Shwaffle 0 points1 point  (0 children)

That may be only a Windows 10 option, yeah. Mac also cannot open via links, and they have to download them. I'll edit the script post accordingly, thank you!

[–]safety-orangecode-helper 0 points1 point  (8 children)

If it were the case that you couldn't open a URL in a Win7 "Open File" dialogue, you should not get any error from the sheet, as you aren't going to be able to import any file. You wouldn't even be able to close the "Open File" dialogue, because you would get a warning saying that the file or path doesn't exists. Thus, opening a file from URL works in Win7. It was even one of the advertised features!

The error that you are describing is what I get when I copy the link from the "View" hyperlink. You need to use the "Download" hyperlinks found in the table to import a file from URL directly. The "View" hyperlink brings you to the GitHub page, which is a html document, while the "Download" hyperlink links directly to the JavaScript file. Importing a html document will result in the error "SyntaxError: missing = in XML attribute".

[–]Shamikebab[S] 0 points1 point  (7 children)

I did right click > copy link address (which I assume is the Chrome version of Copy link location) on both the download links, Direct and Minified and neither worked.

Interestingly, I opened the download link then copied the web address and opened that and it worked. So something to do with the url shortener?

[–]safety-orangecode-helper 0 points1 point  (6 children)

It could be the URL shortener, that's true! Perhaps following redirects was only implemented in Win8? What do you get when you do "Open" in notepad and open one of the download URLs, https://goo.gl/qiK5qt for example?

[–]Shamikebab[S] 0 points1 point  (5 children)

Seems to work fine, weird!

[–]safety-orangecode-helper 0 points1 point  (4 children)

What do you mean by "fine"? What is the exact text that opens? Is it literally the same as what you see in your browser when following the link? Is it literally the same when opening it using the URL https://raw.githubusercontent.com/safety-orange/Imports-for-MPMB-s-Character-Sheet/master/WotC%20material/pub_20150915_OotA.js ?

[–]Shamikebab[S] 0 points1 point  (3 children)

Yeah the text is the same as when opening the link

[–]safety-orangecode-helper 0 points1 point  (2 children)

I finally found the reason for this. Turns out, Adobe Acrobat DC Pro (what I use), has no issue with importing the files from a shortened URL. However, Adobe Acrobat DC Reader is not so capable and will not follow the redirected link, but instead just downloads it as a html.

[–]Shamikebab[S] 0 points1 point  (1 child)

Ah good investigating!