OmniOutlinerDocumentOfSmalltalkClassHierarchyGeneratingAppleScriptWriter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OmniOutlinerDocumentOfSmalltalkClassHierarchyGeneratingAppleScriptWriter

HwaJong Oh
This is an AppleScript file generator which will create new OmniOutliner document of classes of Pharo(or Squeak).
** OmniOutliner is an outliner program for Mac OSX developed by OmniGroup.

The video below demonstrates how quickly user can jump around classes and categories.
http://screencast.com/t/lWXOKu0EY9P


HOW TO MAKE OMNIOUTLINER DOCUMENT
STEP1. create applescript file(default file name is "oo.scpt") with OmniOutlinerDocumentOfSmalltalkClassHierarchyGeneratingAppleScriptWriter object.
STEP2. open oo.scpt file. (This step will take VERY LONG if the classes are many)
STEP3. run oo.scpt file.
STEP4. save the OmniOutliner document made by oo.scpt.
The video below shows the process of making the file.
http://screencast.com/t/JG0KeXRm


HOW TO INSTALL AND USE IT
STEP1. Install metacello configuration

Gofer new
squeaksource: 'DaliotsPlayground';
package: 'ConfigurationOfDaliotsPlayground';
load.

STEP2. load "AppleScriptProgrammer" package

ConfigurationOfDaliotsPlayground project lastVersion load: 'AppleScriptProgrammer'.

STEP3. run the code
w := OmniOutlinerDocumentOfSmalltalkClassHierarchyGeneratingAppleScriptWriter new.
w addClassTree: Morph. "Add classes of interest."
w writeAddedClassesToFile.

Best Regards
HwaJong Oh
Reply | Threaded
Open this post in threaded view
|

Re: OmniOutlinerDocumentOfSmalltalkClassHierarchyGeneratingAppleScriptWriter

HwaJong Oh
A convenience version released.

In this version,
1. you can specifiy a file name of output applescript file.
2. you can add all the classes or traits of given package.
3. methods names changed.


o := OmniOutlinerDocumentOfSmalltalkClassHierarchyGeneratingAppleScriptWriter new.
o addClassesOfPackageNamed: 'XML'.
o setAppleScriptStreamFileNamed: 'xml_dump'.  
o writeAppleScriptOnStream.  


HwaJong Oh