Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create a shortcut to the Dictionary from iTunes Apps
Apple iTunes Store's iTunes U and Podcasts area are two great places to learn new things and that begs the need for having a Dictionary handy to lookup all those new words that are coming at you, especially if you are a non-native-English-speaker. Here's one way to gain fast access to Apple's Dictionary app from iTunes:
echo 'tell application "Dictionary" to activate' >> \
~/Library/iTunes/Scripts/Dictionary.scpt;open \
/System/Library/PreferencePanes/Keyboard.prefPane
This will create a simple script for you, then open the Keyboard Shortcut panel of the System Preferences. Assign a shortcut to your new menu title -- Dictionary -- in the application iTunes, and you are done. Next time you launch your iTunes you should have a Dictionary button, under the script menu, ready to work with your assigned hot key.
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[3,353 views]  

Create a shortcut to the Dictionary from iTunes | 2 comments | Create New Account
Click here to return to the 'Create a shortcut to the Dictionary from iTunes' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create a shortcut to the Dictionary from iTunes
Authored by: DougAdams on Oct 29, '07 10:07:16AM
Or, as it probably goes without saying, just create the script in Script Editor:
tell application "Dictionary" to activate
And save the script to ~/Library/iTunes/Scripts

---
Doug's AppleScripts for iTunes
dougscripts.com

[ Reply to This | # ]

Don't rely on this working
Authored by: boredzo on Oct 29, '07 12:25:13PM

.scpt is the file type for compiled scripts, and you're just putting source code there. There are three possible solutions:

  • Save the script source code as .applescript. (Untested; may not work.)
  • Pipe the source code through osacompile: echo 'tell application "Dictionary" to activate' | osacompile -o $HOME/Library/iTunes/Scripts/Dictionary.scpt (Should always work)
  • Use Script Editor. (What Doug suggested in a sibling comment; should always work)


[ Reply to This | # ]