• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Load_from_url

Scheduled Pinned Locked Moved Developers' Forum
22 Posts 4 Posters 666 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    Dan Rathbun
    last edited by 21 Apr 2012, 19:38

    @chrisglasier said:

    Thanks but I am not sure I understand how this automates the extraction to the plug in folder. It seems you have to click the install button in extensions?

    see: Sketchup.install_from_archive

    👊 (because we have no "slappin' ya' upside da' head" emoticon)

    @chrisglasier said:

    I was thinking to click a js link in my url (standalone or in wd) to pick up a plain zip file from any trusted url and extract it into one or more named local folders. Dreaming perhaps!

    Your link or html button can execute a callback to Ruby that does the install, moves files around etc.

    I'm not here much anymore.

    1 Reply Last reply Reply Quote 0
    • D Offline
      Dan Rathbun
      last edited by 21 Apr 2012, 19:43

      @tig said:

      There are new API methods with the latest v8M2 to extract files/subfolders [into Plugins] from zip/rbz files.
      However, if you already have ways of extracting them, then the moving to their new locations can be done with vanilla Ruby Dir and File commands...

      Or the extended library FileUtils

      FYI.. there is a Pure Ruby (beta) edition of the Zlib library that is cross-platfrom (no need to deal with compiled so/dll, Ruby version, compiler versions, etc. etc.) It is by Park Heesob (who is involved with Daniel Berger's win32-api project.)

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • 1
      • 2
      • 2 / 2
      2 / 2
      • First post
        22/22
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement