This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDriveWire.sdef
77 lines (77 loc) · 3.91 KB
/
DriveWire.sdef
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
<dictionary xmlns:xi="http://www.w3.org/2003/XInclude">
<xi:include href="file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef" xpointer="xpointer(/dictionary/suite)"/>
<suite name="DriveWire Suite" code="DWr4" description="Classes just for the DriveWire application.">
<class name="application" code="capp" description="DriveWire application class." inherits="application">
<cocoa class="NSApplication"/>
</class>
<class name="document" code="docu" description="A DriveWire Document.">
<cocoa class="DriveWireDocument"/>
<property name="name" code="pnam" description="Its name." type="text" access="r">
<cocoa key="displayName"/>
</property>
<property name="modified" code="imod" description="Has it been modified since the last save?" type="boolean" access="r">
<cocoa key="isDocumentEdited"/>
</property>
<property name="file" code="file" description="Its location on disk, if it has one." type="file" access="r">
<cocoa key="fileURL"/>
</property>
<!-- This is just here for compatibility with old scripts. New scripts should use the more user-friendly file property. -->
<property hidden="yes" name="path" code="ppth" description="Its location on disk, if it has one, as a POSIX path string." type="text" access="r">
<cocoa key="fileName"/>
</property>
<property name="server" code="srvr" type="server" access="r" description="The DriveWire server for this document."/>
</class>
<class name="server" code="srvr" description="A DriveWire server object.">
<cocoa class="DriveWireServerModel"/>
<property name="baud" code="HWKn" type="integer" description="The baud rate." access="rw">
<cocoa key="baudRate"/>
</property>
<responds-to name="insert">
<cocoa method="handleInsertCommand:"/>
</responds-to>
<responds-to name="eject">
<cocoa method="handleEjectCommand:"/>
</responds-to>
<responds-to name="reload">
<cocoa method="handleReloadCommand:"/>
</responds-to>
<responds-to name="change to">
<cocoa method="handleChangePortCommand:"/>
</responds-to>
</class>
<command name="insert" code="DrvWStrt" description="Insert a disk image into a virtual drive.">
<direct-parameter type="server"/>
<parameter name="image" code="DImg" description="The disk image.">
<type type="file"/>
<cocoa key="fileURL"/>
</parameter>
<parameter name="into drive" code="InDr" description="The drive number.">
<type type="integer"/>
<cocoa key="drive"/>
</parameter>
</command>
<command name="eject" code="DrvWStop" description="Eject a disk image from a virtual drive.">
<direct-parameter type="server"/>
<parameter name="drive" code="DNum" description="The drive number.">
<type type="integer"/>
<cocoa key="drive"/>
</parameter>
</command>
<command name="reload" code="DrvWStop" description="Reload a disk image in virtual drive.">
<direct-parameter type="server"/>
<parameter name="drive" code="DNum" description="The drive number.">
<type type="integer"/>
<cocoa key="drive"/>
</parameter>
</command>
<command name="change to" code="DrvWChPr" description="Set the serial port.">
<direct-parameter type="server"/>
<parameter name="port" code="SPrt" description="The serial port name.">
<type type="text"/>
<cocoa key="port"/>
</parameter>
</command>
</suite>
</dictionary>