<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">

<dictionary title="ForkLift Terminology">
    <!--
     STANDARD SUITE
     -->
    <suite name="Standard Suite" code="core" description="Common classes and commands for all applications.">
        <class name="application" code="capp" description="The application&apos;s top-level scripting object.">
            <cocoa class="NSApplication"/>
            <element type="window" access="r">
                <cocoa key="orderedWindows"/>
            </element>
            <property name="name" code="pnam" description="The name of the application." type="text" access="r"/>
            <property name="frontmost" code="pisf" description="Is this the frontmost (active) application?" type="boolean" access="r">
                <cocoa key="isActive"/>
            </property>
            <property name="version" code="vers" description="The version of the application." type="text" access="r"/>
            <responds-to name="open">
                <cocoa method="handleOpenScriptCommand:"/>
            </responds-to>
            <responds-to name="print">
                <cocoa method="handlePrintScriptCommand:"/>
            </responds-to>
            <responds-to name="quit">
                <cocoa method="handleQuitScriptCommand:"/>
            </responds-to>
        </class>
        <class name="window" code="cwin" description="A window.">
            <cocoa class="NSWindow"/>
            <property name="name" code="pnam" description="The full title of the window." type="text" access="r">
                <cocoa key="title"/>
            </property>
            <property name="id" code="ID  " description="The unique identifier of the window." type="integer" access="r">
                <cocoa key="uniqueID"/>
            </property>
            <property name="index" code="pidx" description="The index of the window, ordered front to back." type="integer">
                <cocoa key="orderedIndex"/>
            </property>
            <property name="closeable" code="hclb" description="Whether the window has a close box." type="boolean" access="r">
                <cocoa key="hasCloseBox"/>
            </property>
            <property name="minimizable" code="ismn" description="Whether the window can be minimized." type="boolean" access="r">
                <cocoa key="isMiniaturizable"/>
                <synonym name="miniaturizable"/>
            </property>
            <property name="minimized" code="pmnd" description="Whether the window is currently minimized." type="boolean">
                <cocoa key="isMiniaturized"/>
                <synonym name="miniaturized"/>
            </property>
            <property name="resizable" code="prsz" description="Whether the window can be resized." type="boolean" access="r">
                <cocoa key="isResizable"/>
            </property>
            <property name="visible" code="pvis" description="Whether the window is currently visible." type="boolean">
                <cocoa key="isVisible"/>
            </property>
            <property name="zoomable" code="iszm" description="Whether the window can be zoomed." type="boolean" access="r">
                <cocoa key="isZoomable"/>
            </property>
            <property name="zoomed" code="pzum" description="Whether the window is currently zoomed." type="boolean">
                <cocoa key="isZoomed"/>
            </property>
        </class>
        <command name="close" code="coreclos" description="Close a document.">
            <cocoa class="NSCloseCommand"/>
        </command>
        <command name="count" code="corecnte" description="Return the number of elements of a particular class within an object.">
            <cocoa class="NSCountCommand"/>
            <direct-parameter description="the object whose elements are to be counted" type="specifier"/>
            <parameter name="each" code="kocl" description="The class of objects to be counted." type="type" optional="yes">
                <cocoa key="ObjectClass"/>
            </parameter>
            <result description="the number of elements" type="integer"/>
        </command>
        <command name="delete" code="coredelo" description="Delete an object.">
            <cocoa class="NSDeleteCommand"/>
            <direct-parameter description="the object to delete" type="specifier"/>
        </command>
        <command name="exists" code="coredoex" description="Verify if an object exists.">
            <cocoa class="NSExistsCommand"/>
            <direct-parameter description="the object in question" type="any"/>
            <result description="true if it exists, false if not" type="boolean"/>
        </command>
    </suite>
    <!--
     FORKLIFT SUITE
     -->
    <suite name="ForkLift Suite" code="frkl" description="ForkLift specific classes.">
        
        <command name="reveal" code="revealff" description="Reveal a file in ForkLift">
            <cocoa class="RevealCommand"/>
            <parameter name="path" code="pthh" type="text" description="A file system path"/>
        </command>
        
        <class name="application" code="capp" description="An application's top level scripting object.">
            <cocoa class="NSApplication"/>
            <element type="window" access="r">
                <cocoa key="windows"/>
            </element>
        </class>
        
        <class name="window" code="WinD" inherits="item" plural="windows" description="A window.">
            <cocoa class="FileWindow"/>
            
            <property name="title" code="Titl" type="text" access="r" description="The title of the window.">
                <cocoa key="title"/>
            </property>
            
            <property name="bounds" code="bnds" type="rectangle" access="r" description="The bounds of the window.">
                <cocoa key="bounds"/>
            </property>
            
            <element type="activeTab" access="r">
                <cocoa key="activeTab"/>
            </element>
            
            <element type="leftTab" access="r">
                <cocoa key="leftTabs"/>
            </element>
            
            <element type="rightTab" access="r">
                <cocoa key="rightTabs"/>
            </element>
        </class>
        
        <class name="tab" code="Tab " inherits="item" plural="tabs" description="A tab in a pane">
            <cocoa class="FileView"/>
            <property name="displayedUrl" code="pTh " type="text" access="r" description="The URL currently displayed in this tab.">
                <cocoa key="displayedUrl"/>
            </property>
        </class>
        
        <class name="leftTab" code="LTab" inherits="tab" plural="leftTabs" description="A tab in the window's left pane"/>
        <class name="rightTab" code="RTab" inherits="tab" plural="rightTabs" description="A tab in the window's right pane"/>
        <class name="activeTab" code="ATab" inherits="tab" description="The currently active tab in a window"/>
        
    </suite>￼
</dictionary>

