Google your parameters
You can google your parameters with a batch file like this:
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.
jmcgoverndesign last edited by
is this the same on Mac
@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.