Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartcryan committed Jan 9, 2016
2 parents d6b9c2d + d7da8d2 commit 2741800
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
Binary file modified Advanced_Google_Maps_Search.alfredworkflow
Binary file not shown.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Easy searching of Google Maps including directions to or from work/home.

## History

Version 1.1 - Set default search to be google.com rather than google.com.au
Version 1.0 - Initial Release

## Credits
Expand Down
18 changes: 10 additions & 8 deletions workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ chomp($workAddress);
$workAddressEncoded=uri_escape($workAddress);
$queryEncoded=uri_escape('{query}');
system("open https://www.google.com.au/maps/dir/$workAddressEncoded/$queryEncoded/");</string>
system("open https://www.google.com/maps/dir/$workAddressEncoded/$queryEncoded/");</string>
<key>type</key>
<integer>4</integer>
</dict>
Expand Down Expand Up @@ -276,7 +276,7 @@ chomp($homeAddress);
$homeAddressEncoded=uri_escape($homeAddress);
$queryEncoded=uri_escape('{query}');
system("open https://www.google.com.au/maps/dir/$homeAddressEncoded/$queryEncoded/");</string>
system("open https://www.google.com/maps/dir/$homeAddressEncoded/$queryEncoded/");</string>
<key>type</key>
<integer>4</integer>
</dict>
Expand Down Expand Up @@ -307,7 +307,7 @@ chomp($workAddress);
$workAddressEncoded=uri_escape($workAddress);
$queryEncoded=uri_escape('{query}');
system("open https://www.google.com.au/maps/dir/$queryEncoded/$workAddressEncoded/");</string>
system("open https://www.google.com/maps/dir/$queryEncoded/$workAddressEncoded/");</string>
<key>type</key>
<integer>4</integer>
</dict>
Expand Down Expand Up @@ -376,7 +376,7 @@ chomp($homeAddress);
$homeAddressEncoded=uri_escape($homeAddress);
$queryEncoded=uri_escape('{query}');
system("open https://www.google.com.au/maps/dir/$queryEncoded/$homeAddressEncoded/");</string>
system("open https://www.google.com/maps/dir/$queryEncoded/$homeAddressEncoded/");</string>
<key>type</key>
<integer>4</integer>
</dict>
Expand Down Expand Up @@ -417,7 +417,7 @@ system("open https://www.google.com.au/maps/dir/$queryEncoded/$homeAddressEncode
<string>use strict;
use warnings;
use URI::Escape;
my $url = 'https://www.google.com.au/maps/dir/';
my $url = 'https://www.google.com/maps/dir/';
my @array = split(/\sto\s/, "{query}");
foreach (@array) {
Expand Down Expand Up @@ -587,7 +587,7 @@ $homeAddress=`security find-generic-password -w -s "alfred-home-address"`;
chomp($homeAddress);
$homeAddressEncoded=uri_escape($homeAddress);
my $url = "https://www.google.com.au/maps/dir/$homeAddressEncoded/$workAddressEncoded/";
my $url = "https://www.google.com/maps/dir/$homeAddressEncoded/$workAddressEncoded/";
system("open $url");</string>
<key>type</key>
Expand Down Expand Up @@ -661,7 +661,7 @@ $homeAddress=`security find-generic-password -w -s "alfred-home-address"`;
chomp($homeAddress);
$homeAddressEncoded=uri_escape($homeAddress);
my $url = "https://www.google.com.au/maps/dir/$workAddressEncoded/$homeAddressEncoded/";
my $url = "https://www.google.com/maps/dir/$workAddressEncoded/$homeAddressEncoded/";
system("open $url");</string>
<key>type</key>
Expand All @@ -676,7 +676,9 @@ system("open $url");</string>
</dict>
</array>
<key>readme</key>
<string>This workflow is not affiliated with Google or Google Products in any way.</string>
<string>This workflow is not affiliated with Google or Google Products in any way.
Version 1.1</string>
<key>uidata</key>
<dict>
<key>00ADDBC0-F73E-4845-92EF-2A584B30A083</key>
Expand Down

0 comments on commit 2741800

Please sign in to comment.