Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jon08

macrumors 68000
Original poster
Nov 14, 2008
1,888
106
Is it possible to link any websites to the Dict app other than Wikipedia? Sometimes I wish I could have it linked to Urban Dictionary and such so that when I look up a word in my Dict app and it happens to be a slang one, I could get a definition off of Urban Dictionary?
 
Is it possible to link any websites to the Dict app other than Wikipedia? Sometimes I wish I could have it linked to Urban Dictionary and such so that when I look up a word in my Dict app and it happens to be a slang one, I could get a definition off of Urban Dictionary?

Late to the party here, but was wondering the same thing. Did not find an answer to made my own. Does not add it to the dictionary but in almost any app I get a "Look Up in Urban Dictionary" text action (right click option).

1) Open Automator and create Service. Set to text in any application
2) Add AppleScript action and include the code listed below
3) Save

Now you can right-click and find the word in the urban dictionary. That easy.

The code:
————
on run {theWord}
set theURL to "http://www.urbandictionary.com/define.php?term=" & theWord
tell application "Safari"
activate
open locationtheURL
end tell
end run
————

Not a programmer and there may be better ways - but this works for me.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.