sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🚨 Skimp | 25% Off until March 30 Buy Now

    Overwritten script!!!

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 425 Views 4 Watching
    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.
    • bomastudioB Offline
      bomastudio
      last edited by

      I accidentally overwritten a file *.rb with a *.html (generated by the script) that is loaded at this time in SU. Is there a way to recover it?

      1 Reply Last reply Reply Quote 0
      • eneroth3E Offline
        eneroth3
        last edited by

        How can something.html overwrite something.rb? The file names differs.

        My website: http://julia-christina-eneroth.se/

        1 Reply Last reply Reply Quote 0
        • Dan RathbunD Offline
          Dan Rathbun
          last edited by

          It seems like he wrote the HTML file using the ".rb" extension, instead of the ".html" extension.
          This could happen by using __FILE__, instead of:
          File.join( File.dirname(__FILE__), File.basename(__FILE__,".rb"), ".html" )

          ?

          I'm not here much anymore.

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            It might help (in the future,) to use an editor with an auto-backup feature.

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • D Offline
              driven
              last edited by

              did you type it directly into 'Ruby Console' and is the session still open?

              if so, you can use the 'up arrow' to go back to it, otherwise it's a learning experience...

              EDIT: should have read the post in detail first, but I'll leave this up for others...

              if your on linux what editor did you write it in, most have history...

              john

              learn from the mistakes of others, you may not live long enough to make them all yourself...

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better πŸ’—

              Register Login
              • 1 / 1
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement