stJhimy - Rails 3, Ruby and JQuery documentation into Mac OS Dictionary

3 views
Skip to first unread message

Mario Aquino

unread,
Sep 8, 2010, 7:15:50 AM9/8/10
to stl...@googlegroups.com

Don Ellis

unread,
Sep 8, 2010, 1:46:39 PM9/8/10
to stl...@googlegroups.com
Interesting. First question I had was whether it was into the Apple Scripting Dictionary (no, it isn't).

Now, I'm wondering why it doesn't go into the /Library/Documentation/ folder? A number of other services place documentation there (hence the name) and it would seem more logical than placing it with the spelling dictionaries.

Or maybe in the /Library/Ruby/ directory tree, like /Library/Ruby/Gems/1.8/doc/ ?

--Don Ellis



On Wed, Sep 8, 2010 at 6:15 AM, Mario Aquino <mario.e...@gmail.com> wrote:

http://www.stjhimy.com/posts/15-rails-3-ruby-and-jquery-documentation-into-mac-os-dictionary

--
You received this message because you are subscribed to the Google Groups "Saint Louis Ruby Users Group" group.
To post to this group, send email to stl...@googlegroups.com.
To unsubscribe from this group, send email to stlruby+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/stlruby?hl=en.

Mario Aquino

unread,
Sep 8, 2010, 2:43:30 PM9/8/10
to stl...@googlegroups.com
On OSX, the Dictionary is a utility for looking up words that appear in any text; to use it, you just put the cursor over a word and hit a keyboard shortcut and see the Dictionary app popup with the word you had your cursor over and its dictionary definition displayed below (that's what the screenshots show). There is also a Thesaurus. The dictionaries for Ruby, Rails, jQuery and others let you use the dictionary app to lookup API docs for code you may be looking at in your editor.  So, the reason you would add these files into the dictionary folder is because these files are setup in the format that the OSX Dictionary app reads. 

--Mario

Sent from my iPhone

Don Ellis

unread,
Sep 8, 2010, 4:40:28 PM9/8/10
to stl...@googlegroups.com
Aha! Sounds extremely useful.

Also, multiple definitions for the same word.

When you use the File:Open Dictionary... selection in the AppleScript editor, applied to a scriptable application, you see the scripting commands and their syntax for that application (or, you can drop the application on the Script Editor and get the same listing). Essentially, you get the AppleScript API for the application. Very similar.

--Don Ellis
Reply all
Reply to author
Forward
0 new messages