Skip to content

armgit / cra

Public Imported from GitHub
0

The open-source Arc replacement for macOS. Spaces, pinned tabs, split view, Little Windows and Arc's shortcuts on Chromium, with your Arc sidebar imported in one go.

9.7 KB
Raw Blame
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<dictionary title="Cra Terminology">
  <!--
    STANDARD SUITE
  -->
  <suite name="Standard Suite" code="core" description="Common classes and commands for all applications.">

    <command name="make" code="corecrel" description="Make a new object.">
        <cocoa class="NSCreateCommand"/>
        <access-group identifier="*"/>
        <parameter name="new" code="kocl" description="The class of the new object." type="type">
          <cocoa key="ObjectClass"/>
        </parameter>
        <parameter name="with properties" code="prdt" type="record" optional="yes" description="The initial values for properties of the object.">
          <cocoa key="KeyDictionary"/>
        </parameter>
        <result description="to the new object" type="specifier"/>
    </command>

    <command name="count" code="corecnte" description="Return the number of elements of a particular class within an object.">
        <cocoa class="NSCountCommand"/>
        <access-group identifier="*"/>
        <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>

    <class name="application" code="capp" description="The application's top-level scripting object.">
        <cocoa class="NSApplication"/>
        <element description="The windows contained within this application, ordered front to back." type="window">
            <cocoa key="appleScriptWindows"/>
        </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 command="quit">
            <cocoa method="handleQuitScriptCommand:"/>
        </responds-to>
        <element description="The tabs associated with this window. This is a write-only collection that allows you to create new Little Window tabs." type="tab" access="w">
            <cocoa key="appleScriptTabs"/>
        </element>
    </class>

    <command name="close" code="coreclos" description="Close">
        <direct-parameter description="The object to execute the command on." type="specifier"/>
    </command>

    <class name="window" code="WiND" description="An application's window" plural="windows">
        <cocoa class="AppleScriptWindowWrapper"/>
        <element description="The tabs contained within this window." type="tab" access="rw">
            <cocoa key="appleScriptTabs"/>
        </element>
        <element description="The spaces accessible within this window." type="space">
            <cocoa key="appleScriptSpaces"/>
        </element>
        <property name="id" code="ID  " type="text" access="r"
            description="The unique identifier of the window.">
            <cocoa key="id"/>
        </property>
        <property name="name" code="pnam" type="text" access="r"
            description="The full title of the window.">
            <cocoa key="title"/>
        </property>
        <property name="index" code="pidx" type="integer"
            description="The index of the window, ordered front to back.">
                <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"/>
        </property>
        <property name="minimized" code="pmnd" description="Whether the window is currently minimized." type="boolean">
          <cocoa key="isMiniaturized"/>
        </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>
        <property name="active tab" code="acTa" description="Returns the currently selected tab" type="tab" access="r">
          <cocoa key="activeTab"/>
        </property>
        <property name="active space" code="acSp" description="Returns the currently active space" type="space" access="r">
          <cocoa key="activeSpace"/>
        </property>
        <property name="incognito" code="inco" description="Whether the window is an incognito window." type="boolean">
          <cocoa key="isIncognito"/>
        </property>
        <property name="mode" code="mode" description="Represents the mode of the window which can be 'normal' or 'incognito', can be set only once during creation of the window." type="text">
          <cocoa key="mode"/>
        </property>
        <responds-to command="close">
            <cocoa method="close:"/>
        </responds-to>
    </class>

    <command name="select" code="CrSelect" description="Select the tab.">
        <direct-parameter description="The tab to execute the command in." type="specifier"/>
    </command>

    <command name="go back" code="CrSuBack" description="Go Back (If Possible).">
        <direct-parameter description="The tab to execute the command in." type="specifier"/>
    </command>

    <command name="go forward" code="CrSuFwd " description="Go Forward (If Possible).">
        <direct-parameter description="The tab to execute the command in." type="specifier"/>
    </command>

    <command name="reload" code="CrSuRlod" description="Reload a tab.">
        <direct-parameter description="The tab to execute the command in." type="specifier"/>
    </command>

    <command name="stop" code="CrSustop" description="Stop the current tab from loading.">
        <direct-parameter description="The tab to execute the command in." type="specifier"/>
    </command>

    <command name="execute" code="CrSuExJa" description="Execute a piece of JavaScript in the tab. Off until View ▸ Developer ▸ Allow JavaScript from Apple Events is on.">
        <direct-parameter description="The tab to execute the command in." type="specifier"/>
        <parameter name="javascript" code="JvSc" description="The javascript code to execute." type="text">
            <cocoa key="javascript"/>
        </parameter>
        <result type="text"/>
    </command>

    <class name="tab" code="tAbB" description="A window's tab" plural="tabs">
        <cocoa class="AppleScriptTabWrapper"/>
        <property name="id" code="ID  " type="text" access="r" description="The unique identifier of the tab.">
            <cocoa key="id"/>
        </property>
        <property name="title" code="pnam" type="text" access="r" description="The full title of the tab.">
            <cocoa key="title"/>
        </property>
        <property name="URL" code="URL " description="The url of the tab." type="text" access="rw">
            <cocoa key="URL"/>
        </property>
        <property name="loading" code="ldng" description="Is loading?" type="boolean" access="r"/>
        <property name="location" code="loca" description="Represents the location of the tab in the sidebar. Can be 'topApp' (a favorite), 'pinned' or 'unpinned'." type="text">
          <cocoa key="location"/>
        </property>
        <responds-to command="select">
            <cocoa method="select:"/>
        </responds-to>
        <responds-to command="go back">
            <cocoa method="goBack:"/>
        </responds-to>
        <responds-to command="go forward">
            <cocoa method="goForward:"/>
        </responds-to>
        <responds-to command="reload">
            <cocoa method="reload:"/>
        </responds-to>
        <responds-to command="stop">
            <cocoa method="stopLoading:"/>
        </responds-to>
        <responds-to command="execute">
            <cocoa method="executeJavascript:"/>
        </responds-to>
        <responds-to command="close">
            <cocoa method="close:"/>
        </responds-to>
    </class>

    <command name="focus" code="SpaFocus" description="Focus on a space.">
        <direct-parameter description="The space to focus." type="specifier"/>
    </command>

    <class name="space" code="sPaC" description="A space" plural="spaces">
        <cocoa class="AppleScriptSpaceWrapper"/>
        <property name="id" code="ID  " type="text" access="r" description="The unique identifier of the space.">
            <cocoa key="id"/>
        </property>
        <property name="title" code="pnam" type="text" access="r" description="The full title of the space.">
            <cocoa key="title"/>
        </property>
        <element description="The tabs contained within this window." type="tab" access="rw">
            <cocoa key="appleScriptTabs"/>
        </element>
        <responds-to command="focus">
            <cocoa method="focus:"/>
        </responds-to>
    </class>
  </suite>
</dictionary>