TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Google your parameters

    Scheduled Pinned Locked Moved Windows
    4 Posts 3 Posters 3.2k Views 1 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.
    • RussR Offline
      Russ
      last edited by Russ

      You can google your parameters with a batch file like this:

      start https://www.google.com/search?q=%1%%20%2%%20%3%%20%4%%20%5%%20%6%%20%7
      

      You need a double % because a batch file would interpret %20 as your second parameter plus 0. The double % tells it you want %20 which is the URL code for a space.

      Russell VanderMey

      1 Reply Last reply Reply Quote 0
      • ? Offline
        [[global:former-user]]
        last edited by

        is this the same on Mac

        RussR 1 Reply Last reply Reply Quote 0
        • RussR Offline
          Russ @Guest
          last edited by Russ

          @jmcgoverndesign, no that's a batch file which only works on a PC.

          Macs use bash scripts instead.

          This script should open Google in Safari:

          #!/bin/bash
          open -a Safari http://google.com
          

          This script takes parameters, and should work similarly to the Windows batch file that googles your parameters:

          #!/bin/bash
          open -a Safari http://google.com/search?q=$1%20$2%20$3%20$4
          

          I tested it that and it worked for me.

          Russell VanderMey

          1 Reply Last reply Reply Quote 0
          • Wladimir PerezW Offline
            Wladimir Perez
            last edited by

            in linux you can use this

            #!/bin/bash
            busqueda=$@
            google-chrome https://www.google.com/search?q=${busqueda// /+}
            
            1 Reply Last reply Reply Quote 0
            • RussR Russ referenced this topic on

            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
            • First post
              Last post