<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<!-- @version(10.4) -->
<!--
	This is Foundation Kit's NSCoreSuite terminology recast as an sdef.  NSCoreSuite
	is itself AppleScript's Standard Suite recast as a plist instead of the original
	aete.  There are several differences between the original Standard Suite and
	Cocoa's version of it, and not all of them are correct: these places are noted
	with "supposed to" comments.
-->
<dictionary title="Standard Terminology">
	<suite name="Standard Suite" code="????" description="Common classes and commands for most applications.">
		<cocoa name="NSCoreSuite"/>
		<enumeration name="save options" code="savo">
			<enumerator name="yes" code="yes " description="Save the file."/>
			<enumerator name="no" code="no  " description="Do not save the file."/>
			<enumerator name="ask" code="ask " description="Ask the user whether or not to save the file."/>
		</enumeration>
		<enumeration name="market" code="MMkt" description="Stock Markets">
			<cocoa name="Market"/>
			<enumerator name="Tosho" code="Tosh" description="Tosho">
				<cocoa name="MarketTosho"/>
			</enumerator>
			<enumerator name="Daisho" code="Dais" description="Daisho">
				<cocoa name="MarketDaisho"/>
			</enumerator>
			<enumerator name="Jasdaq" code="Jasd" description="Jasdaq">
				<cocoa name="MarketJasdaq"/>
			</enumerator>
			<enumerator name="Mothers" code="Moth" description="Mothers">
				<cocoa name="MarketMothers"/>
			</enumerator>
			<enumerator name="Hercules" code="Herc" description="Hercules">
				<cocoa name="MarketHercules"/>
			</enumerator>
			<enumerator name="NYSE" code="NYSE" description="NYSE">
				<cocoa name="MarketNYSE"/>
			</enumerator>
			<enumerator name="NASDAQ" code="NASD" description="NASDAQ">
				<cocoa name="MarketNASDAQ"/>
			</enumerator>
		</enumeration>
		<class name="application" code="capp" description="An application&apos;s top level scripting object.">
			<cocoa class="NSApplication"/>
			<element type="document" access="r">
				<cocoa key="orderedDocuments"/>
			</element>
			<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="update stock">
				<cocoa method=""/>
			</responds-to>
			<responds-to name="update currency">
				<cocoa method=""/>
			</responds-to>
			<responds-to name="print">
				<cocoa method="handlePrintScriptCommand:"/>
			</responds-to>
			<responds-to name="quit">
				<cocoa method="handleQuitScriptCommand:"/>
			</responds-to>
		</class>
		<class name="document" code="docu">
			<cocoa class="MM4Document"/>
			<property name="path" code="ppth" description="The document&apos;s path." type="text">
				<cocoa key="fileName"/>
			</property>
			<property name="modified" code="imod" description="Has the document been modified since the last save?" type="boolean" access="r">
				<cocoa key="isDocumentEdited"/>
			</property>
			<property name="name" code="pnam" description="The document&apos;s name." type="text">
				<cocoa key="lastComponentOfFileName"/>
			</property>
			<responds-to name="close">
				<cocoa method="handleCloseScriptCommand:"/>
			</responds-to>
			<responds-to name="print">
				<cocoa method="handlePrintScriptCommand:"/>
			</responds-to>
			<responds-to name="save">
				<cocoa method="handleSaveScriptCommand:"/>
			</responds-to>
			<type type="document"/>
		</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">
				<cocoa key="title"/>
			</property>
			<property name="id" code="ID  " description="The unique identifier of the window." type="number" access="r">
				<cocoa key="uniqueID"/>
			</property>
			<property name="bounds" code="pbnd" description="The bounding rectangle of the window." type="rectangle">
				<cocoa key="boundsAsQDRect"/>
			</property>
			<property name="document" code="docu" description="The document whose contents are being displayed in the window." type="document" access="r"/>
			<property name="closeable" code="hclb" description="Whether the window has a close box." type="boolean" access="r">
				<cocoa key="hasCloseBox"/>
			</property>
			<property name="titled" code="ptit" description="Whether the window has a title bar." type="boolean" access="r">
				<cocoa key="hasTitleBar"/>
			</property>
			<property name="index" code="pidx" description="The index of the window in the back-to-front window ordering." type="number">
				<cocoa key="orderedIndex"/>
			</property>
			<property name="floating" code="isfl" description="Whether the window floats." type="boolean" access="r">
				<cocoa key="isFloatingPanel"/>
			</property>
			<property name="miniaturizable" code="ismn" description="Whether the window can be miniaturized." type="boolean" access="r">
				<cocoa key="isMiniaturizable"/>
			</property>
			<property name="miniaturized" code="pmnd" description="Whether the window is currently miniaturized." type="boolean">
				<cocoa key="isMiniaturized"/>
			</property>
			<property name="modal" code="pmod" description="Whether the window is the application&apos;s current modal window." type="boolean" access="r">
				<cocoa key="isModalPanel"/>
			</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>
			<responds-to name="close">
				<cocoa method="handleCloseScriptCommand:"/>
			</responds-to>
			<responds-to name="print">
				<cocoa method="handlePrintScriptCommand:"/>
			</responds-to>
			<responds-to name="save">
				<cocoa method="handleSaveScriptCommand:"/>
			</responds-to>
		</class>
		<command name="update stock" code="MMMMstkp" description="Set stock price, creating the stock if it does not already exist.">
			<cocoa name="StockCommand" class="UpdateStockCommand"/>
			<direct-parameter description="stock symbol" type="any"/>
			<parameter name="of document" code="Mdcp" type="document" optional="yes">
				<cocoa key="Document"/>
			</parameter>
			<parameter name="to price" code="Mprp" description="Price" type="any">
				<cocoa key="Price"/>
			</parameter>
			<parameter name="on date" code="Mdtp" description="Date.  Uses natural language parsing.  Please use full Year fields.  08/01/07 is ambiguous.  Use 2008/01/07 instead." type="any" optional="yes">
				<cocoa key="Date"/>
			</parameter>
			<parameter name="using currency" code="Mcrp" description="[Required for new stocks]  Name of Currency (See your document&apos;s currency list)" type="any" optional="yes">
				<cocoa key="Currency"/>
			</parameter>
			<parameter name="stock market" code="Mmkp" description="[Required for new stocks] Stock Market" type="market" optional="yes">
				<cocoa key="Market"/>
			</parameter>
		</command>
		<command name="update currency" code="MMMMcurp" description="Set currency price">
			<cocoa name="CurrencyCommand" class="UpdateCurrencyCommand"/>
			<direct-parameter description="currency name as displayed in MasterMoney" type="any"/>
			<parameter name="of document" code="Mdcp" type="document" optional="yes">
				<cocoa key="Document"/>
			</parameter>
			<parameter name="to price" code="Mprp" description="Price" type="any">
				<cocoa key="Price"/>
			</parameter>
			<parameter name="on date" code="Mdtp" description="Date.  Uses natural language parsing.  Please use full Year fields.  08/01/07 is ambiguous.  Use 2008/01/07 instead." type="any" optional="yes">
				<cocoa key="Date"/>
			</parameter>
		</command>
		<!-- The old Standard Suite: run, reopen, open, print, and quit. -->
		<command name="open" code="aevtodoc" description="Open an object.">
			<direct-parameter description="The file(s) to be opened." type="file"/>
		</command>
		<command name="save" code="coresave" description="Save an object.">
			<direct-parameter description="the object to save, usually a document or window" type="specifier"/>
			<parameter name="in" code="kfil" description="The file in which to save the object." type="file" optional="yes">
				<cocoa key="File"/>
			</parameter>
			<parameter name="as" code="fltp" description="The file type in which to save the data." type="text" optional="yes">
				<cocoa key="FileType"/>
			</parameter>
		</command>
		<!-- The old Core Suite: the object model commands, plus a few more. -->
		<command name="close" code="coreclos" description="Close an object.">
			<cocoa class="NSCloseCommand"/>
			<direct-parameter description="the object to close" type="specifier"/>
			<parameter name="saving" code="savo" description="Specifies whether changes should be saved before closing." type="save options" optional="yes">
				<cocoa key="SaveOptions"/>
			</parameter>
			<parameter name="saving in" code="kfil" description="The file in which to save the object." type="file" optional="yes">
				<cocoa key="File"/>
			</parameter>
		</command>
		<!-- NSCoreSuite doesn't define these.
			<command name="run" code="aevtoapp" description="Run an application.  Most applications will open an empty, untitled window."/>
			<command name="reopen" code="aevtrapp" description="Reactivate a running application.  Some applications will open a new untitled window if no window is open."/>
			-->
		<command name="print" code="aevtpdoc" description="Print an object.">
			<!-- type would be better written as "file | document". -->
			<direct-parameter description="The file(s) or document(s) to be printed." type="file"/>
		</command>
		<command name="quit" code="aevtquit" description="Quit an application.">
			<cocoa class="NSQuitCommand"/>
			<parameter name="saving" code="savo" description="Specifies whether changes should be saved before quitting." type="save options" optional="yes">
				<cocoa key="SaveOptions"/>
			</parameter>
		</command>
	</suite>
</dictionary>