1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd">
3 <dictionary title="Dictionary">
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 application'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"/>
14 <property name="name" code="pnam" description="The name of the application." type="text" access="r"/>
15 <property name="frontmost" code="pisf" description="Is this the frontmost (active) application?" type="boolean" access="r">
16 <cocoa key="isActive"/>
18 <property name="version" code="vers" description="The version of the application." type="text" access="r"/>
19 <responds-to command="quit">
20 <cocoa method="handleQuitScriptCommand:"/>
23 <class name="window" code="cwin" description="A window.">
24 <cocoa class="WindowAppleScript"/>
25 <element description="The tabs contained within the window." type="tab">
28 <property name="name" code="pnam" description="The full title of the window." type="text" access="r">
31 <property name="id" code="ID " description="The unique identifier of the window." type="integer" access="r">
32 <cocoa key="uniqueID"/>
34 <property name="index" code="pidx" description="The index of the window, ordered front to back." type="integer">
35 <cocoa key="orderedIndex"/>
37 <property name="bounds" code="pbnd" description="The bounding rectangle of the window." type="rectangle">
38 <cocoa key="boundsAsQDRect"/>
40 <property name="closeable" code="hclb" description="Whether the window has a close box." type="boolean" access="r">
41 <cocoa key="hasCloseBox"/>
43 <property name="minimizable" code="ismn" description="Whether the window can be minimized." type="boolean" access="r">
44 <cocoa key="isMiniaturizable"/>
46 <property name="minimized" code="pmnd" description="Whether the window is currently minimized." type="boolean">
47 <cocoa key="isMiniaturized"/>
49 <property name="resizable" code="prsz" description="Whether the window can be resized." type="boolean" access="r">
50 <cocoa key="isResizable"/>
52 <property name="visible" code="pvis" description="Whether the window is currently visible." type="boolean">
53 <cocoa key="isVisible"/>
55 <property name="zoomable" code="iszm" description="Whether the window can be zoomed." type="boolean" access="r">
56 <cocoa key="isZoomable"/>
58 <property name="zoomed" code="pzum" description="Whether the window is currently zoomed." type="boolean">
59 <cocoa key="isZoomed"/>
61 <property name="active tab" code="acTa" description="Returns the currently selected tab" type="tab" access="r">
62 <cocoa key="activeTab"/>
64 <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">
67 <property name="active tab index" code="acTI" description="The index of the active tab." type="integer"/>
68 <responds-to command="close">
69 <cocoa method="handlesCloseScriptCommand:"/>
72 <command name="save" code="coresave" description="Save an object.">
73 <direct-parameter description="the object to save, usually a document or window" type="specifier"/>
74 <parameter name="in" code="kfil" description="The file in which to save the object." type="file" optional="yes">
77 <parameter name="as" code="fltp" description="The file type in which to save the data. Can be 'only html' or 'complete html', default is 'complete html'." type="text" optional="yes">
78 <cocoa key="FileType"/>
82 According to TN2106, 'open' should return the resulting document
83 object. However, the Cocoa implementation does not do this yet.
84 <result type="specifier"/>
86 <command name="open" code="aevtodoc" description="Open a document.">
87 <direct-parameter description="The file(s) to be opened.">
88 <type type="file" list="yes"/>
91 <command name="close" code="coreclos" description="Close a window.">
92 <cocoa class="NSCloseCommand"/>
93 <direct-parameter description="the document(s) or window(s) to close." type="specifier"/>
95 <command name="quit" code="aevtquit" description="Quit the application.">
96 <cocoa class="NSQuitCommand"/>
98 <command name="count" code="corecnte" description="Return the number of elements of a particular class within an object.">
99 <cocoa class="NSCountCommand"/>
100 <direct-parameter description="the object whose elements are to be counted" type="specifier"/>
101 <parameter name="each" code="kocl" description="The class of objects to be counted." type="type" optional="yes">
102 <cocoa key="ObjectClass"/>
104 <result description="the number of elements" type="integer"/>
106 <command name="delete" code="coredelo" description="Delete an object.">
107 <cocoa class="NSDeleteCommand"/>
108 <direct-parameter description="the object to delete" type="specifier"/>
110 <command name="duplicate" code="coreclon" description="Copy object(s) and put the copies at a new location.">
111 <cocoa class="NSCloneCommand"/>
112 <direct-parameter description="the object(s) to duplicate" type="specifier"/>
113 <parameter name="to" code="insh" description="The location for the new object(s)." type="location specifier" optional="yes">
114 <cocoa key="ToLocation"/>
116 <parameter name="with properties" code="prdt" description="Properties to be set in the new duplicated object(s)." type="record" optional="yes">
117 <cocoa key="WithProperties"/>
119 <result description="the duplicated object(s)" type="specifier"/>
121 <command name="exists" code="coredoex" description="Verify if an object exists.">
122 <cocoa class="NSExistsCommand"/>
123 <direct-parameter description="the object in question" type="any"/>
124 <result description="true if it exists, false if not" type="boolean"/>
126 <command name="make" code="corecrel" description="Make a new object.">
127 <cocoa class="NSCreateCommand"/>
128 <parameter name="new" code="kocl" description="The class of the new object." type="type">
129 <cocoa key="ObjectClass"/>
131 <parameter name="at" code="insh" description="The location at which to insert the object." type="location specifier" optional="yes">
132 <cocoa key="Location"/>
134 <parameter name="with data" code="data" description="The initial contents of the object." type="any" optional="yes">
135 <cocoa key="ObjectData"/>
137 <parameter name="with properties" code="prdt" description="The initial values for properties of the object." type="record" optional="yes">
138 <cocoa key="KeyDictionary"/>
140 <result description="to the new object" type="specifier"/>
142 <command name="move" code="coremove" description="Move object(s) to a new location.">
143 <cocoa class="NSMoveCommand"/>
144 <direct-parameter description="the object(s) to move" type="specifier"/>
145 <parameter name="to" code="insh" description="The new location for the object(s)." type="location specifier">
146 <cocoa key="ToLocation"/>
148 <result description="the moved object(s)" type="specifier"/>
150 <!-- NSCoreSuite doesn't define these.
151 <command name="run" code="aevtoapp" description="Run an application. Most applications will open an empty, untitled window."/>
152 <command name="reopen" code="aevtrapp" description="Reactivate a running application. Some applications will open a new untitled window if no window is open."/>
154 <command name="print" code="aevtpdoc" description="Print an object.">
155 <!-- type would be better written as "file | document". -->
156 <direct-parameter description="The file(s) or document(s) to be printed." type="specifier"/>
158 <!-- "set" is supposed to be hidden. -->
159 <command name="set" code="coresetd" description="Set an object's data.">
160 <cocoa class="NSSetCommand"/>
161 <direct-parameter type="specifier"/>
162 <!-- "set" is supposed to return the fully evaluated "to" data.
165 <parameter name="to" code="data" description="The new value." type="any">
169 <!-- "get" is supposed to be hidden. -->
170 <command name="get" code="coregetd" description="Get the data for an object.">
171 <cocoa class="NSGetCommand"/>
172 <direct-parameter type="specifier"/>
176 <suite name="Chromium Suite" code="CrSu" description="Common classes and commands for Chrome.">
177 <class-extension description="The application's top-level scripting object." extends="application">
178 <cocoa class="BrowserCrApplication"/>
179 <element description="Contains the bookmarks bar and other bookmarks folder." type="bookmark folder" access="r">
180 <cocoa key="bookmarkFolders"/>
182 <property name="bookmarks bar" code="ChBB" description="The bookmarks bar bookmark folder." type="bookmark folder" access="r">
183 <cocoa key="bookmarksBar"/>
185 <property name="other bookmarks" code="ChOB" description="The other bookmarks bookmark folder." type="bookmark folder" access="r">
186 <cocoa key="otherBookmarks"/>
189 <class name="tab" code="CrTb" description="A tab.">
190 <cocoa class="TabAppleScript"/>
191 <property name="id" code="ID " description="Unique ID of the tab." type="integer" access="r">
192 <cocoa key="uniqueID"/>
194 <property name="title" code="pnam" description="The title of the tab." type="text" access="r"/>
195 <property name="URL" code="URL " description="The url visible to the user." type="text"/>
196 <property name="loading" code="ldng" description="Is loading?" type="boolean" access="r"/>
197 <responds-to command="undo">
198 <cocoa method="handlesUndoScriptCommand:"/>
200 <responds-to command="redo">
201 <cocoa method="handlesRedoScriptCommand:"/>
203 <responds-to command="cut selection">
204 <cocoa method="handlesCutScriptCommand:"/>
206 <responds-to command="copy selection">
207 <cocoa method="handlesCopyScriptCommand:"/>
209 <responds-to command="paste selection">
210 <cocoa method="handlesPasteScriptCommand:"/>
212 <responds-to command="select all">
213 <cocoa method="handlesSelectAllScriptCommand:"/>
215 <responds-to command="go back">
216 <cocoa method="handlesGoBackScriptCommand:"/>
218 <responds-to command="go forward">
219 <cocoa method="handlesGoForwardScriptCommand:"/>
221 <responds-to command="reload">
222 <cocoa method="handlesReloadScriptCommand:"/>
224 <responds-to command="stop">
225 <cocoa method="handlesStopScriptCommand:"/>
227 <responds-to command="print">
228 <cocoa method="handlesPrintScriptCommand:"/>
230 <responds-to command="view source">
231 <cocoa method="handlesViewSourceScriptCommand:"/>
233 <responds-to command="save">
234 <cocoa method="handlesSaveScriptCommand:"/>
236 <responds-to command="close">
237 <cocoa method="handlesCloseScriptCommand:"/>
239 <responds-to command="execute">
240 <cocoa method="handlesExecuteJavascriptScriptCommand:"/>
243 <class name="bookmark folder" code="CrBF" description="A bookmarks folder that contains other bookmarks folder and bookmark items.">
244 <cocoa class="BookmarkFolderAppleScript"/>
245 <element description="The bookmark folders present within." type="bookmark folder">
246 <cocoa key="bookmarkFolders"/>
248 <element description="The bookmarks present within." type="bookmark item">
249 <cocoa key="bookmarkItems"/>
251 <property name="id" code="ID " description="Unique ID of the bookmark folder." type="number" access="r">
252 <cocoa key="uniqueID"/>
254 <property name="title" code="pnam" description="The title of the folder." type="text"/>
255 <property name="index" code="indx" description="Returns the index with respect to its parent bookmark folder" type="number" access="r"/>
257 <class name="bookmark item" code="CrBI" description="An item consists of an URL and the title of a bookmark">
258 <cocoa class="BookmarkItemAppleScript"/>
259 <property name="id" code="ID " description="Unique ID of the bookmark item." type="integer" access="r">
260 <cocoa key="uniqueID"/>
262 <property name="title" code="pnam" description="The title of the bookmark item." type="text"/>
263 <property name="URL" code="URL " description="The URL of the bookmark." type="text"/>
264 <property name="index" code="indx" description="Returns the index with respect to its parent bookmark folder" type="number" access="r"/>
266 <class-extension extends="window">
267 <property name="presenting" code="pres" description="Whether the window is in presentation mode." type="boolean" access="r">
268 <cocoa key="presenting"/>
270 <responds-to command="enter presentation mode">
271 <cocoa method="handlesEnterPresentationMode:"/>
273 <responds-to command="exit presentation mode">
274 <cocoa method="handlesExitPresentationMode:"/>
277 <command name="reload" code="CrSuRlod" description="Reload a tab.">
278 <direct-parameter description="The tab to execute the command in." type="specifier"/>
280 <command name="go back" code="CrSuBack" description="Go Back (If Possible).">
281 <direct-parameter description="The tab to execute the command in." type="specifier"/>
283 <command name="go forward" code="CrSuFwd " description="Go Forward (If Possible).">
284 <direct-parameter description="The tab to execute the command in." type="specifier"/>
286 <command name="select all" code="CrSuSlAl" description="Select all.">
287 <direct-parameter description="The tab to execute the command in." type="specifier"/>
289 <command name="cut selection" code="CrSuCut " description="Cut selected text (If Possible).">
290 <direct-parameter description="The tab to execute the command in." type="specifier"/>
292 <command name="copy selection" code="CrSuCop " description="Copy text.">
293 <direct-parameter description="The tab to execute the command in." type="specifier"/>
295 <command name="paste selection" code="CrSuPast" description="Paste text (If Possible).">
296 <direct-parameter description="The tab to execute the command in." type="specifier"/>
298 <command name="undo" code="CrSuUndo" description="Undo the last change.">
299 <direct-parameter description="The tab to execute the command in." type="specifier"/>
301 <command name="redo" code="CrSuRedo" description="Redo the last change.">
302 <direct-parameter description="The tab to execute the command in." type="specifier"/>
304 <command name="stop" code="CrSustop" description="Stop the current tab from loading.">
305 <direct-parameter description="The tab to execute the command in." type="specifier"/>
307 <command name="view source" code="CrSuVSrc" description="View the HTML source of the tab.">
308 <direct-parameter description="The tab to execute the command in." type="specifier"/>
310 <command name="execute" code="CrSuExJa" description="Execute a piece of javascript.">
311 <direct-parameter description="The tab to execute the command in." type="specifier"/>
312 <parameter name="javascript" code="JvSc" description="The javascript code to execute." type="text">
313 <cocoa key="javascript"/>
317 <command name="enter presentation mode" code="CrSuEnPM" description="Enter presentation mode in window.">
318 <direct-parameter description="The window to enter presentation mode." type="specifier"/>
320 <command name="exit presentation mode" code="CrSuExPM" description="Exit presentation mode in window.">
321 <direct-parameter description="The window to exit presentation mode." type="specifier"/>