Now that Drive hosting is going away, we face the task of discovering where its used. One place that it may be used a lot is if you are using the old version of Sites. Unfortunately I am, and unfortunately I am using Drive hosting on pretty much every page. So the first step is to identify
Following on from that, I may automate the replacement with alternative hosting, but for this post - here's how to get a report from your site of where you are using Drive hosting. It finds googledrive.com/host/id style. If you are hosting gadgets on drive, then the url will be encoded, so it also finds them too. After running this, you'll next want to go to Identifying hosted files TODOThere are unsolved (maybe unsolvable) problems with rewriting html to Sites - specifically it can break gadgets, and will eliminate any of the deprecated Adsense gadgets (if you still have them on your site), so I'll need to figure those out (if I can) before publishing an automated update solution. The damageHere' s the damage I need to sort out on this site
The reportYou get 2 reports One that has a summary of the pages needing attention. And another that has the detail of all the matches needing attention. The fileName will be populated if the hosting pattern involving a folder and file name is used, instead of the more common file id only.
|
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Google Apps Scripts snippets >