| OLD | NEW |
| (Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd"> |
| 3 <dictionary title="Dictionary"> |
| 4 <!-- |
| 5 STANDARD SUITE |
| 6 --> |
| 7 <suite name="Standard Suite" code="core" description="Common classes and
commands for all applications."> |
| 8 <cocoa name="NSCoreSuite"/> |
| 9 <class name="application" code="capp" description="The applicati
on's top-level scripting object."> |
| 10 <cocoa class="BrowserCrApplication"/> |
| 11 <element description="The windows contained within this
application, ordered front to back." type="window"> |
| 12 <cocoa key="appleScriptWindows"/> |
| 13 </element> |
| 14 <property name="name" code="pnam" description="The name
of the application." type="text" access="r"/> |
| 15 <property name="frontmost" code="pisf" description="Is t
his the frontmost (active) application?" type="boolean" access="r"> |
| 16 <cocoa key="isActive"/> |
| 17 </property> |
| 18 <property name="version" code="vers" description="The ve
rsion of the application." type="text" access="r"/> |
| 19 <responds-to command="open"> |
| 20 <cocoa method="handleOpenScriptCommand:"/> |
| 21 </responds-to> |
| 22 <responds-to command="quit"> |
| 23 <cocoa method="handleQuitScriptCommand:"/> |
| 24 </responds-to> |
| 25 </class> |
| 26 <class name="window" code="cwin" description="A window."> |
| 27 <cocoa class="WindowAppleScript"/> |
| 28 <element description="The tabs contained within the wind
ow." type="tab"> |
| 29 <cocoa key="tabs"/> |
| 30 </element> |
| 31 <property name="name" code="pnam" description="The full
title of the window." type="text" access="r"> |
| 32 <cocoa key="title"/> |
| 33 </property> |
| 34 <property name="id" code="ID " description="The unique
identifier of the window." type="integer" access="r"> |
| 35 <cocoa key="uniqueID"/> |
| 36 </property> |
| 37 <property name="index" code="pidx" description="The inde
x of the window, ordered front to back." type="integer"> |
| 38 <cocoa key="orderedIndex"/> |
| 39 </property> |
| 40 <property name="bounds" code="pbnd" description="The bou
nding rectangle of the window." type="rectangle"> |
| 41 <cocoa key="boundsAsQDRect"/> |
| 42 </property> |
| 43 <property name="closeable" code="hclb" description="Whet
her the window has a close box." type="boolean" access="r"> |
| 44 <cocoa key="hasCloseBox"/> |
| 45 </property> |
| 46 <property name="minimizable" code="ismn" description="Wh
ether the window can be minimized." type="boolean" access="r"> |
| 47 <cocoa key="isMiniaturizable"/> |
| 48 </property> |
| 49 <property name="minimized" code="pmnd" description="Whet
her the window is currently minimized." type="boolean"> |
| 50 <cocoa key="isMiniaturized"/> |
| 51 </property> |
| 52 <property name="resizable" code="prsz" description="Whet
her the window can be resized." type="boolean" access="r"> |
| 53 <cocoa key="isResizable"/> |
| 54 </property> |
| 55 <property name="visible" code="pvis" description="Whethe
r the window is currently visible." type="boolean"> |
| 56 <cocoa key="isVisible"/> |
| 57 </property> |
| 58 <property name="zoomable" code="iszm" description="Wheth
er the window can be zoomed." type="boolean" access="r"> |
| 59 <cocoa key="isZoomable"/> |
| 60 </property> |
| 61 <property name="zoomed" code="pzum" description="Whether
the window is currently zoomed." type="boolean"> |
| 62 <cocoa key="isZoomed"/> |
| 63 </property> |
| 64 <property name="active tab" code="acTa" description="Ret
urns the currently selected tab" type="tab" access="r"> |
| 65 <cocoa key="activeTab"/> |
| 66 </property> |
| 67 <property name="mode" code="mode" description="Represent
s the mode of the window which can be 'normal' or 'incognito&apos
;, can be set only once during creation of the window." type="text"> |
| 68 <cocoa key="mode"/> |
| 69 </property> |
| 70 <property name="active tab index" code="acTI" descriptio
n="The index of the active tab." type="integer"/> |
| 71 <responds-to command="close"> |
| 72 <cocoa method="handlesCloseScriptCommand:"/> |
| 73 </responds-to> |
| 74 </class> |
| 75 <command name="save" code="coresave" description="Save an object
."> |
| 76 <direct-parameter description="the object to save, usual
ly a document or window" type="specifier"/> |
| 77 <parameter name="in" code="kfil" description="The file i
n which to save the object." type="file" optional="yes"> |
| 78 <cocoa key="File"/> |
| 79 </parameter> |
| 80 <parameter name="as" code="fltp" description="The file t
ype in which to save the data. Can be 'only html' or 'complete ht
ml', default is 'complete html'." type="text" optional="yes"> |
| 81 <cocoa key="FileType"/> |
| 82 </parameter> |
| 83 </command> |
| 84 <!-- |
| 85 According to TN2106, 'open' should return the resulting document |
| 86 object. However, the Cocoa implementation does not do this yet. |
| 87 <result type="specifier"/> |
| 88 --> |
| 89 <command name="open" code="aevtodoc" description="Open a documen
t."> |
| 90 <direct-parameter description="The file(s) to be opened.
"> |
| 91 <type type="file" list="yes"/> |
| 92 </direct-parameter> |
| 93 </command> |
| 94 <command name="close" code="coreclos" description="Close a windo
w."> |
| 95 <cocoa class="NSCloseCommand"/> |
| 96 <direct-parameter description="the document(s) or window
(s) to close." type="specifier"/> |
| 97 </command> |
| 98 <command name="quit" code="aevtquit" description="Quit the appli
cation."> |
| 99 <cocoa class="NSQuitCommand"/> |
| 100 </command> |
| 101 <command name="count" code="corecnte" description="Return the nu
mber of elements of a particular class within an object."> |
| 102 <cocoa class="NSCountCommand"/> |
| 103 <direct-parameter description="the object whose elements
are to be counted" type="specifier"/> |
| 104 <parameter name="each" code="kocl" description="The clas
s of objects to be counted." type="type" optional="yes"> |
| 105 <cocoa key="ObjectClass"/> |
| 106 </parameter> |
| 107 <result description="the number of elements" type="integ
er"/> |
| 108 </command> |
| 109 <command name="delete" code="coredelo" description="Delete an ob
ject."> |
| 110 <cocoa class="NSDeleteCommand"/> |
| 111 <direct-parameter description="the object to delete" typ
e="specifier"/> |
| 112 </command> |
| 113 <command name="duplicate" code="coreclon" description="Copy obje
ct(s) and put the copies at a new location."> |
| 114 <cocoa class="NSCloneCommand"/> |
| 115 <direct-parameter description="the object(s) to duplicat
e" type="specifier"/> |
| 116 <parameter name="to" code="insh" description="The locati
on for the new object(s)." type="location specifier" optional="yes"> |
| 117 <cocoa key="ToLocation"/> |
| 118 </parameter> |
| 119 <parameter name="with properties" code="prdt" descriptio
n="Properties to be set in the new duplicated object(s)." type="record" optional
="yes"> |
| 120 <cocoa key="WithProperties"/> |
| 121 </parameter> |
| 122 <result description="the duplicated object(s)" type="spe
cifier"/> |
| 123 </command> |
| 124 <command name="exists" code="coredoex" description="Verify if an
object exists."> |
| 125 <cocoa class="NSExistsCommand"/> |
| 126 <direct-parameter description="the object in question" t
ype="any"/> |
| 127 <result description="true if it exists, false if not" ty
pe="boolean"/> |
| 128 </command> |
| 129 <command name="make" code="corecrel" description="Make a new obj
ect."> |
| 130 <cocoa class="NSCreateCommand"/> |
| 131 <parameter name="new" code="kocl" description="The class
of the new object." type="type"> |
| 132 <cocoa key="ObjectClass"/> |
| 133 </parameter> |
| 134 <parameter name="at" code="insh" description="The locati
on at which to insert the object." type="location specifier" optional="yes"> |
| 135 <cocoa key="Location"/> |
| 136 </parameter> |
| 137 <parameter name="with data" code="data" description="The
initial contents of the object." type="any" optional="yes"> |
| 138 <cocoa key="ObjectData"/> |
| 139 </parameter> |
| 140 <parameter name="with properties" code="prdt" descriptio
n="The initial values for properties of the object." type="record" optional="yes
"> |
| 141 <cocoa key="KeyDictionary"/> |
| 142 </parameter> |
| 143 <result description="to the new object" type="specifier"
/> |
| 144 </command> |
| 145 <command name="move" code="coremove" description="Move object(s)
to a new location."> |
| 146 <cocoa class="NSMoveCommand"/> |
| 147 <direct-parameter description="the object(s) to move" ty
pe="specifier"/> |
| 148 <parameter name="to" code="insh" description="The new lo
cation for the object(s)." type="location specifier"> |
| 149 <cocoa key="ToLocation"/> |
| 150 </parameter> |
| 151 <result description="the moved object(s)" type="specifie
r"/> |
| 152 </command> |
| 153 <!-- NSCoreSuite doesn't define these. |
| 154 <command name="run" code="aevtoapp" description="Run an
application. Most applications will open an empty, untitled window."/> |
| 155 <command name="reopen" code="aevtrapp" description="Reac
tivate a running application. Some applications will open a new untitled window
if no window is open."/> |
| 156 --> |
| 157 <command name="print" code="aevtpdoc" description="Print an obje
ct."> |
| 158 <!-- type would be better written as "file | document".
--> |
| 159 <direct-parameter description="The file(s) or document(s
) to be printed." type="specifier"/> |
| 160 </command> |
| 161 <!-- "set" is supposed to be hidden. --> |
| 162 <command name="set" code="coresetd" description="Set an object&a
pos;s data."> |
| 163 <cocoa class="NSSetCommand"/> |
| 164 <direct-parameter type="specifier"/> |
| 165 <!-- "set" is supposed to return the fully evaluated "to
" data. |
| 166 <result type="any"/> |
| 167 --> |
| 168 <parameter name="to" code="data" description="The new va
lue." type="any"> |
| 169 <cocoa key="Value"/> |
| 170 </parameter> |
| 171 </command> |
| 172 <!-- "get" is supposed to be hidden. --> |
| 173 <command name="get" code="coregetd" description="Get the data fo
r an object."> |
| 174 <cocoa class="NSGetCommand"/> |
| 175 <direct-parameter type="specifier"/> |
| 176 <result type="any"/> |
| 177 </command> |
| 178 </suite> |
| 179 <suite name="Chromium Suite" code="CrSu" description="Common classes and
commands for Chrome."> |
| 180 <class-extension description="The application's top-level s
cripting object." extends="application"> |
| 181 <cocoa class="BrowserCrApplication"/> |
| 182 <element description="Contains the bookmarks bar and oth
er bookmarks folder." type="bookmark folder" access="r"> |
| 183 <cocoa key="bookmarkFolders"/> |
| 184 </element> |
| 185 <property name="bookmarks bar" code="ChBB" description="
The bookmarks bar bookmark folder." type="bookmark folder" access="r"> |
| 186 <cocoa key="bookmarksBar"/> |
| 187 </property> |
| 188 <property name="other bookmarks" code="ChOB" description
="The other bookmarks bookmark folder." type="bookmark folder" access="r"> |
| 189 <cocoa key="otherBookmarks"/> |
| 190 </property> |
| 191 </class-extension> |
| 192 <class name="tab" code="CrTb" description="A tab."> |
| 193 <cocoa class="TabAppleScript"/> |
| 194 <property name="id" code="ID " description="Unique ID o
f the tab." type="integer" access="r"> |
| 195 <cocoa key="uniqueID"/> |
| 196 </property> |
| 197 <property name="title" code="pnam" description="The titl
e of the tab." type="text" access="r"/> |
| 198 <property name="URL" code="URL " description="The url vi
sible to the user." type="text"/> |
| 199 <property name="loading" code="ldng" description="Is loa
ding?" type="boolean" access="r"/> |
| 200 <responds-to command="undo"> |
| 201 <cocoa method="handlesUndoScriptCommand:"/> |
| 202 </responds-to> |
| 203 <responds-to command="redo"> |
| 204 <cocoa method="handlesRedoScriptCommand:"/> |
| 205 </responds-to> |
| 206 <responds-to command="cut"> |
| 207 <cocoa method="handlesCutScriptCommand:"/> |
| 208 </responds-to> |
| 209 <responds-to command="copy"> |
| 210 <cocoa method="handlesCopyScriptCommand:"/> |
| 211 </responds-to> |
| 212 <responds-to command="paste"> |
| 213 <cocoa method="handlesPasteScriptCommand:"/> |
| 214 </responds-to> |
| 215 <responds-to command="select all"> |
| 216 <cocoa method="handlesSelectAllScriptCommand:"/> |
| 217 </responds-to> |
| 218 <responds-to command="go back"> |
| 219 <cocoa method="handlesGoBackScriptCommand:"/> |
| 220 </responds-to> |
| 221 <responds-to command="go forward"> |
| 222 <cocoa method="handlesGoForwardScriptCommand:"/> |
| 223 </responds-to> |
| 224 <responds-to command="reload"> |
| 225 <cocoa method="handlesReloadScriptCommand:"/> |
| 226 </responds-to> |
| 227 <responds-to command="stop"> |
| 228 <cocoa method="handlesStopScriptCommand:"/> |
| 229 </responds-to> |
| 230 <responds-to command="print"> |
| 231 <cocoa method="handlesPrintScriptCommand:"/> |
| 232 </responds-to> |
| 233 <responds-to command="view source"> |
| 234 <cocoa method="handlesViewSourceScriptCommand:"/
> |
| 235 </responds-to> |
| 236 <responds-to command="save"> |
| 237 <cocoa method="handlesSaveScriptCommand:"/> |
| 238 </responds-to> |
| 239 </class> |
| 240 <class name="bookmark folder" code="CrBF" description="A bookmar
ks folder that contains other bookmarks folder and bookmark items."> |
| 241 <cocoa class="BookmarkFolderAppleScript"/> |
| 242 <element description="The bookmark folders present withi
n." type="bookmark folder"> |
| 243 <cocoa key="bookmarkFolders"/> |
| 244 </element> |
| 245 <element description="The bookmarks present within." typ
e="bookmark item"> |
| 246 <cocoa key="bookmarkItems"/> |
| 247 </element> |
| 248 <property name="id" code="ID " description="Unique ID o
f the bookmark folder." type="number" access="r"> |
| 249 <cocoa key="uniqueID"/> |
| 250 </property> |
| 251 <property name="title" code="pnam" description="The titl
e of the folder." type="text"/> |
| 252 </class> |
| 253 <class name="bookmark item" code="CrBI" description="An item con
sists of an URL and the title of a bookmark"> |
| 254 <cocoa class="BookmarkItemAppleScript"/> |
| 255 <property name="id" code="ID " description="Unique ID o
f the bookmark item." type="integer" access="r"> |
| 256 <cocoa key="uniqueID"/> |
| 257 </property> |
| 258 <property name="title" code="pnam" description="The titl
e of the bookmark item." type="text"/> |
| 259 <property name="URL" code="URL " description="The URL of
the bookmark." type="text"/> |
| 260 </class> |
| 261 <command name="reload" code="CrSuRlod" description="Reload a tab
."> |
| 262 <direct-parameter type="specifier"/> |
| 263 </command> |
| 264 <command name="go back" code="CrSuBack" description="Go Back (If
Possible)."> |
| 265 <direct-parameter type="specifier"/> |
| 266 </command> |
| 267 <command name="go forward" code="CrSuFwd " description="Go Forwa
rd (If Possible)."> |
| 268 <direct-parameter type="specifier"/> |
| 269 </command> |
| 270 <command name="select all" code="CrSuSlAl" description="Select a
ll."> |
| 271 <direct-parameter type="specifier"/> |
| 272 </command> |
| 273 <command name="cut selection" code="CrSuCut " description="Cut s
elected text (If Possible)."> |
| 274 <direct-parameter type="specifier"/> |
| 275 </command> |
| 276 <command name="copy selection" code="CrSuCop " description="Copy
text."> |
| 277 <direct-parameter type="specifier"/> |
| 278 </command> |
| 279 <command name="paste" code="CrSuPast" description="Paste text (I
f Possible)."> |
| 280 <direct-parameter type="specifier"/> |
| 281 </command> |
| 282 <command name="undo" code="CrSuUndo" description="Undo the last
change."> |
| 283 <direct-parameter type="specifier"/> |
| 284 </command> |
| 285 <command name="redo" code="CrSuRedo" description="Redo the last
change."> |
| 286 <direct-parameter type="specifier"/> |
| 287 </command> |
| 288 <command name="stop" code="CrSustop" description="Stop the curre
nt tab from loading."> |
| 289 <direct-parameter type="specifier"/> |
| 290 </command> |
| 291 <command name="view source" code="CrSuVSrc" description="View th
e HTML source of the tab."> |
| 292 <direct-parameter type="specifier"/> |
| 293 </command> |
| 294 </suite> |
| 295 </dictionary> |
| OLD | NEW |