mobile version contact us
MethodShop.com LLC
facebook
myspace
pownce
twitter
technorati
flickr
tumblr
delicious
digg
amazon apple rss
[ home ]
[ games ]
[ music ]
[ video ] [ picts ] [ about ]
   

BlogAds Gadget Network

Apple Store


methodshop MAILING LIST
Email:

2/13/2005

Add Google Maps to Mac OS X Address Book


Just when you thought Google couldn't get any better, they launched an amazing online mapping service this week. Also newsworthy, MapQuest crapped their pants.

If you have yet to play with Google Maps, don't waste time and go check it out. The service is still in beta, so expect a few glitches and make sure you download the FireFox web browser first (even Google thinks Internet Explorer sucks!). Also please note that Google Maps currently only supports U.S. addresses.

After checking it out, I'm sure you will agree that Google Maps isn't only a great mapping tool, but it's fun to navigate and has great graphics. You will probably want to bookmark it and make it part of your normal routine. Savvy Mac OS X users may even want to integrate it into their Address Book.

Here's how:
  1. Launch up Script Editor (Applications > AppleScript > Script Editor)
  2. Select New from the File menu to create a new empty script
  3. Copy the code listed below in-between the "--Start" and "--End" comments
  4. Paste this code into the blank empty script in Script Editor
  5. Save the script in your ~/Library/Address Book Plug-Ins/ directory and name it "Google Map Of.scpt"
  6. If the Address Book application is open, quit it
  7. Launch Address Book and select someone with a U.S. address
  8. Right-click or control-click on an address and select 'Google Map Of (Firefox)' from the pop-up menu
  9. FireFox should open up with a map
  10. Enjoy

AppleScript Code from MacOSXHints.com:

-- Start
property googleMaps : "http://maps.google.com/maps?q="

using terms from application "Address Book"

on action property
return "address"
end action property

on action title for p with v
return "Google Map Of (Firefox)"
end action title

on should enable action for p with v
return true
end should enable action

on perform action for p with v
set params to ""
if street of v is not missing value then set params to params & street of v & " "
if city of v is not missing value then set params to params & city of v & " "
if state of v is not missing value then set params to params & state of v & " "
if zip of v is not missing value then set params to params & zip of v & " "
try
tell application "Firefox"
OpenURL googleMaps & params
activate
end tell
on error
display dialog "You must have Firefox installed to use this plug-in."
end try
end perform action

end using terms from
-- End









Post a Comment








FYI- it doesn't work with the Safari browser on Mac. it's about time i tried FireFox anyway. thanks guys!
 


damn. wish i had a mac.
 


If you want this script to work in Safari, change the script as follows:

- find and replace the word Firefox with the word Safari
- change the line "OpenURL googleMaps & params" to read "set URL of front document to googleMaps & params"
- if you want the map to open up in a new window rather than in the current window, insert the line "make new document" before the "set URL of..." line
 


cooL!
 


Canada addresses too.
 


This is cool, and useful at the same time. I have used the mods suggested above and changed it so that it works better for the UK:

-- Start
property googleMaps : "http://maps.google.co.uk/maps?q="

using terms from application "Address Book"

on action property
return "address"
end action property

on action title for p with v
return "Google Map Of (Safari)"
end action title

on should enable action for p with v
return true
end should enable action

on perform action for p with v
set params to ""
if street of v is not missing value then set params to params & street of v & " "
if city of v is not missing value then set params to params & city of v & " "
if state of v is not missing value then set params to params & state of v & " "
if zip of v is not missing value then set params to params & zip of v & " "
try
tell application "Safari"
make new document
set URL of front document to googleMaps & params
activate
end tell
on error
display dialog "You must have Safari installed to use this plug-in."
end try
end perform action

end using terms from
-- End
 


These codes are really useful sometimes. I had a book from www.kevacorp.com.It contains all details of these types of codes,multimedia ,and all software programs. really useful and interesting.

eindu
 


another small addition to that script - to do a reverse lookup on a phone number, here's the applescript (it's made for canada, but you can substitute that url with equivalent for US or whatever other country you need - just find proper website)

using terms from application "Address Book"
on action property
return "phone"
end action property

on action title for p with v
return "Reverse Phone Lookup"
end action title

on should enable action for p with v
return true
end should enable action

on perform action for p with v
set telephone to ""
if value of v is not missing value then set telephone to value of v
try
tell application "Firefox"
OpenURL "http://411ca.whitepages.com/1234/search/ReversePhone?phone=" & telephone
activate
end tell
on error
display dialog "You must have Firefox installed to use this plug-in."
end try
end perform action
end using terms from
 


hese codes are really useful sometimes. I had a book from www.osx86spain.com.It contains all details of these types of codes,multimedia ,and all software programs. really useful and interesting.
 


Very Handy - works very well for Australian Maps too!
 


Post a Comment








Links to this post:

Create a Link




<< Home




 

Lijit Search
Add Lijit to Your Blog

Features
Copy Videos Off YouTube
YouTube prevents viewers from downloading files off their site. But there are ways around this. Here's a step-by-step tutorial on how to rip video files off YouTube.com and convert them for your Video iPod.

arrowEmbarrassing Hasselhoff Photos
hoffAfter such a high profile career spanning over 3 decades, Hasselhoff has partaken in many a cheesy photo shoot. In Hoff's defense, most of the embarrassing photos below were taken during the 1980's or in Europe. That almost provides a loose excuse for most of these photos. But many of them are still very questionable and a few actually are quite disturbing.

Mac Mini RAM Upgrade Tutorial
Want to upgrade the RAM in your Mac Mini? You can definitely save a few bucks by buying a stripped down Mac Mini and upgrading the RAM yourself. But before you can install that extra RAM, you'll need to take a walk down to your local hardware store and grab a couple putty knives.

Rip DVD's for Your iPod or iPhone
Need something to watch on your iPod or iPhone? Here's a tutorial that explains how to use a program called Handbrake to rip DVD's into iPod compatible MPEG-4 video files.

arrowFraming Hanley Interview with Nixon
aming hanleymethodshopFraming Hanley have certainly come a long way in a very short time. First formed in 2005, the band posted demos of their songs on MySpace.com. Two years later thier
debut LP, The Moment, was released August 2007. Not bad for a bunch of guys barely out of high school.

Yeti Sports: Penguin vs Yeti
Like to smack penguins with baseball bats? Should your Yeti catch the penguin at the right moment and angle, you might just hit one out of the park, or arctic continent.

arrowParis Hilton vs. Lacey Underall
caddyshackPut on an anti-viral panty liner and let the battle between the spoiled rich blonde bitches begin! It's Paris Hilton, heiress to the Hilton Hotel empire vs Lacey Underall from the movie Caddyshack.

arrowRyan Ferguson Interview
ryan
Our interview with Ryan was just like his lyrics, honest and articulate. Ryan was very forthcoming and spoke openly about everything from his break with No Knife to his freaky cats.

halo 3Halo 3 Review
Master Chief returns to finish the fight, bringing the epic conflict between the Covenant, the Flood, and the entire human race to a dramatic, pulse-pounding climax.

Down Interview with Jimmy Bower
methodshopWhen it comes to so-called heavy metal supergroups, a lot of them usually don’t last long. But for New Orleans’ Down – made up of Ex-Pantera vocalist Phil Anselmo and bassist Rex Brown, Corrosion of Conformity guitarist Pepper Keenan, Crowbar guitarist Kirk Windstein, and Eyehategod drummer Jimmy Bower – there has been something special that has kept them unified for over 15 years.

silverchair interviewarrowSilverchair "Young Modern" Interview
In the last days of June in 2007, we were lucky enough to get a few minutes of Daniel and Chris' attention and have them answer a few questions.

Duck Hunt
Did you used to spend hours playing Duck Hunt on your NES? Miss those days? Wish you still had your 'light gun'? This Flash game recreation of the 1984 Nintendo game Duck Hunt will make you feel like a duck hunter again... complete with your trusty dog.

JBL Creature II Speaker System
What’s the point of downloading your favorite songs on iTunes if they sound like crap on your computer’s built-in speakers? The sound quality and volume these little babies emit, much to the chagrin of my neighbors, is truly phenomenal.

Do Not Disconnect Won't Go Away
Are you trying to eject your iPod from your computer but the "Do Not Disconnect" won't go away? Don't worry, this is a common problem with a fairly easy solution.

BitTorrent Tutorial
So Napster's gone pay, KaZaA is chock-full of viruses and spyware, and you need someplace to get your file sharing on. Luckily for you, there's BitTorrent! Here's a tutorial to get you started.
 

Hot Links

Kiss Kiss - Chris Brown
If Alex Chilton were today a beautiful young woman, he'd sound like this...

Gadget Lounge
Do you like Gadgets? Come hang out in our lounge.

Blog Reader Survey
Do you read blogs? Tell them about it.


Add your link here


Archives


 





[ home ]
[ games ]
[ music ]
[ video ] RSSXML
blogpulse Technology Blogs - Blog Top Sites Technology Blogs - Blog Flare My Topsites List Web Hosting Directory by Blog Flux MethodShop at Blogged

Contact Us | About MethodShop.com | Search
MethodShop.com LLC ®1996-2008. All rights reserved.

methodshop.com
























This page is powered by Blogger. Isn't yours?