├── .editorconfig
├── .gitignore
├── CNAME
├── LICENSE
├── README.md
├── _config.yml
├── data
└── TermsAndCodes.csv
├── docs
├── CNAME
└── _config.yml
└── scripts
├── Append PDF Language To Filename.applescript
├── Create Ad-Hoc Network.applescript
├── Finder#Ascend.applescript
├── Finder#New Text File.applescript
├── Finder#Paste Clipboard As File.applescript
├── Finder#Scroll To Top.applescript
├── Get Calendar Events.applescript
├── Get Library Handlers.applescript
├── Get Mouse Position | Identify UI Element.applescript
├── Get Selected Text.applescript
├── Hostnames.applescript
├── KM#Create Dictionary.applescript
├── KM#Get Macro Properties.applescript
├── KM#Reveal External File.applescript
├── List & Record Printer.applescript
├── Move Window Left or Right.applescript
├── Parse AppleScript Dictionary (SDEF).applescript
├── Quit All Apps.applescript
├── Quit Dock Application.applescript
├── Screen Capture.applescript
├── Terminate Processes.applescript
├── URL Handler.app
└── Contents
│ ├── Info.plist
│ ├── MacOS
│ └── applet
│ ├── PkgInfo
│ └── Resources
│ ├── Scripts
│ ├── URL Parser#applescript.applescript
│ ├── URL Parser#km.applescript
│ └── main.scpt
│ ├── applet.icns
│ ├── applet.rsrc
│ └── description.rtfd
│ └── TXT.rtf
├── iTunes#Download Album Artwork.applescript
└── lib
├── +arrays.applescript
├── +class.applescript
├── +crypto.applescript
├── +date.applescript
├── +files.applescript
├── +maths.applescript
├── +regex.applescript
├── +strings.applescript
├── +utils.applescript
├── load.applescript
└── load.scpt
/.editorconfig:
--------------------------------------------------------------------------------
1 | # .editorconfig: http://EditorConfig.org
2 | # top-most EditorConfig file
3 | root = true
4 |
5 | [*]
6 | end_of_line = lf
7 | insert_final_newline = true
8 |
9 | [scripts/**.{js,jxa,applescript,scpt}]
10 | charset = utf-16le
11 | indent_style = tab
12 | indent_size = 8
13 |
14 | [data/**.{json,plist,xml}]
15 | charset = utf-8
16 | indent_style = tab
17 | indent_size = 8
18 |
19 | [{package.json,.travis.yml}]
20 | indent_style = tab
21 | indent_size = 8
22 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_store
2 |
--------------------------------------------------------------------------------
/CNAME:
--------------------------------------------------------------------------------
1 | applescript.chri.sk
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018 CK
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## My (AppleScript-)Coding Practices
2 |
3 | 1. All lines of my code are restricted to a maximum column width of 80. I make use of continuation characters to split long lines of code over several separate lines. For me, this aids readability on a wide variety of screens, without the need to scroll horizontally. I _loathe_ scrolling horizontally.
4 | 2. I use hard tabs of 8 character widths.
5 | 3. I use UTF16-LE text encoding.
6 | 4. I tend to favour short, mono- or dual-character variable names, which I acknowledge aren't transparent and can make interpreting their nature difficult. However, I try to be consistent with these across scripts, so that `fp` will always refer to a filepath, and `L` will always refer to a list. AppleScript's tendency to homogenise variable letter case even across different scopes can make it challenging to differentiate a `P` \(typically referring to a `process` in _System Events_\) if used in the same script as a `p` \(which, depending on context, either refers to a prime number or an element in a parameter list\). I prioritise uppercase names in these instances, whilst electing to substitute the lowercase name with an alternative.
7 | 5. I utilise _Script Objects_ a lot, even unnecessarily. _Script Objects_ are AppleScript's watered-down imitation of what other languages refer to as a `class`. They lack many of the true features of a `class` construct, but do allow chains of inheritance to be used in similar ways. For me, however, I largely use _Script Objects_ to organise and group blocks of code in a semantically functional way that mirrors how I might have constructed or deconstructed the coding problem in my head, making it easier for me to refactor my code if I need to, and understand what my approach was initially when I later devise an alternative method.
8 | 6. Handler names, conversely to variable names, tend to be descriptive and CamelCase, often with an initial lowercase letter, but not exclusively. I favour AppleScript's _labelled_ parameters because it provides the only means of specifying optional parameters, but I also make use of _interleaved_ parameter labels, and also plain-and-simple parentheticals. Quite conveniently, `myFunction:param` is essentially equivalent in AppleScript to `myFunction_(param)`, which provides versatility in syntax when desired.
9 | 7. **I like code to look good**. I'm not claiming success in this just yet, but I believe that beautiful code will ultimately end up becoming functional code. Obviously, we can all construct beautiful code that does absolutely nothing, so this isn't a law in itself, but is, in my view, a good mantra and reminder that aesthetics aid readability, solubility, and consistency.
10 | 8. A corollary of `(7)` is that I might prioritise aesthetics over adherence to any of the non-prime numbered rules stipulated here \(including this one\). It can also lead to syntactic inconsistency in how and where I choose to divide two similar lines of code with a continuation character that appear misplaced in one versus the other. This is rarely an oversight, but a necessary evil in order to achieve a pleasing text alignment.
11 | 9. I rarely prioritise speed, but I do prioritise efficiency, and wasteful code irks me. Unnecessarily inefficient code irks me. If a piece of code _will_ run faster if, say, a string is converted into a list of numbers before being operated on, then I will usually elect to do this. If a script object makes execution more efficient, I will elect to use one. However, if a piece of code is demonstrably quicker but also has to be a complete mess to preserve its speed, I am unlikely to care that a script runs slower if it ends up looking better. _Perception is Reality_.
12 | 10. I use AppleScript's `use` function to import an application's dictionary into the script, **if** the script is sufficiently short and primarily utilises one or two applications. This practice won't be endorsed by many, but I am good at keeping track of terminology clashes, and utilise script objects to help separate functionally-distinct aspects of a single script. I may also employ occasional use of _chevron syntax_ if it helps avoid using a `tell` statement and minimises command length. A contrived example I've not actually used would be:
13 |
14 | ```applescript
15 | property Finder : application "Finder"
16 |
17 | «class cfol» named "Applications" of «class sdsk» of Finder
18 | ```
19 |
20 | 11. In my final code reviews, I will try and perform code refactoring that hopefully makes the script more usable with minimal or zero requirement for edits if employed from within different environments, eg. _Automator_, _Keyboard Maestro_, _Alfred_, _FastScripts_, etc. This is an ongoing endeavour and not necessarily achievable in all my scripts. Some scripts may have a prefix like `KM#` in their filename, which might suggest it only works inside _Keyboard Maestro_. In fact, the significance of this prefix is to denote a script that operates **upon** _Keyboard Maestro_, but needn't be triggered from within _Keyboard Maestro_ \(although it would generally make the most sense to do so\).
21 | 12. ?
22 | 13. I'm always open to suggestions on ways to do things that I might find more useful, meaningful or simply interesting. Comments, critiques, tips and questions are welcome, regardless of your own coding proficiency. I may or may not agree with an opinion or assertion at all, or at that time, or as applied to a specific situation, but no one remembers the time they met someone who agreed with everything you said, because nothing new comes from two things being the same, and it's the people who tell you that you're wrong that ensure we keep questioning ourselves and considering the other approaches that helps us to improve.
23 |
24 | ## _...And that's what I like to call being_
25 |
26 | # AppleScriptive†
27 |
28 |
29 |
30 | †This is irony, of course.
31 |
--------------------------------------------------------------------------------
/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-modernist
--------------------------------------------------------------------------------
/data/TermsAndCodes.csv:
--------------------------------------------------------------------------------
1 | Code Terminology Kind Usage Line
2 | $scr scripting additions folder Property of class: domain System Events : Disk-Folder-File Suite 1
3 | %doc music folder Property of class: user domain object System Events : Disk-Folder-File Suite 2
4 | µdoc music folder Enumeration Standard Additions : File Commands 3
5 | ƒhlp help Enumeration Standard Additions : File Commands 4
6 | ƒhlp help folder Enumeration Standard Additions : File Commands 5
7 | ƒlib shared libraries Enumeration Standard Additions : File Commands 6
8 | ƒlib shared libraries folder Enumeration Standard Additions : File Commands 7
9 | ƒmod modem scripts Enumeration Standard Additions : File Commands 8
10 | ƒmod modem scripts folder Enumeration Standard Additions : File Commands 9
11 | ƒnet internet plugins Enumeration Standard Additions : File Commands 10
12 | ƒnet internet plugins folder Enumeration Standard Additions : File Commands 11
13 | ƒnet plugins Enumeration Standard Additions : File Commands 12
14 | ƒprd printer drivers Enumeration Standard Additions : File Commands 13
15 | ƒprd printer drivers folder Enumeration Standard Additions : File Commands 14
16 | ƒscr scripting additions Enumeration Standard Additions : File Commands 15
17 | ƒscr scripting additions folder Enumeration Standard Additions : File Commands 16
18 | ≠ ≠ Command AppleScript Language 17
19 | * * Command AppleScript Language 18
20 | **** anything Class AppleScript Language 19
21 | + + Command AppleScript Language 20
22 | - - Command AppleScript Language 21
23 | / ÷ Command AppleScript Language 22
24 | < < Command AppleScript Language 23
25 | <= ≤ Command AppleScript Language 24
26 | = = Command AppleScript Language 25
27 | > > Command AppleScript Language 26
28 | >= ≥ Command AppleScript Language 27
29 | ^ ^ Command AppleScript Language 28
30 | abou about Parameter of command: Call•subroutine AppleScript Language 31
31 | abve above Parameter of command: Call•subroutine AppleScript Language 32
32 | acha audio channel count Property of class: track System Events : QuickTime File Suite 34
33 | actT action Class System Events : Processes Suite 43
34 | actT actions Class System Events : Processes Suite 45
35 | actv activate Command AppleScript Language 49
36 | actv activate Command Finder : Standard Suite 50
37 | addr from address Parameter of command: handle CGI request Standard Additions : Internet Suite 51
38 | aete application dictionary Class AppleScript Language 54
39 | aeut system dictionary Class AppleScript Language 55
40 | afp afp URL Enumeration Standard Additions : Internet Suite 56
41 | agcp application "AppName" Enumeration Standard Additions : File Commands 60
42 | agcp current application Enumeration Standard Additions : File Commands 61
43 | agcp it Enumeration Standard Additions : File Commands 62
44 | agcp me Enumeration Standard Additions : File Commands 63
45 | Agnt from browser Parameter of command: handle CGI request Standard Additions : Internet Suite 64
46 | agst against Parameter of command: Call•subroutine AppleScript Language 65
47 | alcp all caps Enumeration AppleScript Language 67
48 | alen altering line endings Parameter of command: do shell script Standard Additions : Miscellaneous Commands 72
49 | aleR alert reply Class Standard Additions : User Interaction 75
50 | alia alias file Class Finder : Files 79
51 | alia alias files Class Finder : Files 80
52 | alis alias Class AppleScript Language 84
53 | alis alias Class System Events : Disk-Folder-File Suite 85
54 | alis alias Property of class: file information Standard Additions : File Commands 86
55 | alis aliases Class AppleScript Language 87
56 | alis aliases Class System Events : Disk-Folder-File Suite 88
57 | alrp replacing Parameter of command: duplicate Finder : Standard Suite 103
58 | alrp replacing Parameter of command: move Finder : Standard Suite 104
59 | alst alias list Class Finder : Type Definitions 105
60 | alvl alert volume Parameter of command: set volume Standard Additions : Miscellaneous Commands 113
61 | alvl alert volume Property of class: volume settings Standard Additions : Miscellaneous Commands 114
62 | amnu apple menu Enumeration Standard Additions : File Commands 115
63 | amnu apple menu folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 116
64 | amnu apple menu items Enumeration Standard Additions : File Commands 117
65 | amnu apple menu items folder Enumeration Standard Additions : File Commands 118
66 | AND and Command AppleScript Language 119
67 | anno annotation Class System Events : QuickTime File Suite 122
68 | anot full text Property of class: annotation System Events : QuickTime File Suite 123
69 | apnl Application panel Enumeration Finder : Enumerations 126
70 | appf application file Class Finder : Files 127
71 | appf application file Property of class: application process Finder : Legacy suite 128
72 | appf application file Property of class: application process System Events : Processes Suite 129
73 | appf application files Class Finder : Files 130
74 | appr with title Parameter of command: choose application Standard Additions : User Interaction 132
75 | appr with title Parameter of command: choose from list Standard Additions : User Interaction 133
76 | appr with title Parameter of command: choose remote application Standard Additions : User Interaction 134
77 | appr with title Parameter of command: display dialog Standard Additions : User Interaction 135
78 | apps applications folder Enumeration Standard Additions : File Commands 136
79 | apps applications folder Property of class: application System Events : System Events Suite 137
80 | apps applications folder Property of class: domain System Events : Disk-Folder-File Suite 138
81 | apps At Ease applications Enumeration Standard Additions : File Commands 139
82 | apps At Ease applications folder Enumeration Standard Additions : File Commands 140
83 | appt preferred size Property of class: application file Finder : Files 141
84 | appt total partition size Property of class: process Finder : Legacy suite 142
85 | appt total partition size Property of class: process System Events : Processes Suite 143
86 | apr April Class AppleScript Language 144
87 | apre auto present Property of class: QuickTime data System Events : QuickTime File Suite 145
88 | aprt apart from Parameter of command: Call•subroutine AppleScript Language 146
89 | aqui auto quit when done Property of class: QuickTime data System Events : QuickTime File Suite 147
90 | arnd around Parameter of command: Call•subroutine AppleScript Language 149
91 | as A as Parameter of command: display alert Standard Additions : User Interaction 152
92 | as as Parameter of command: read Standard Additions : File Read/Write 153
93 | as as Parameter of command: write Standard Additions : File Read/Write 154
94 | ascd creation date Enumeration Finder : Enumerations 155
95 | ascd creation date Property of class: disk item System Events : Disk-Folder-File Suite 156
96 | ascd creation date Property of class: file information Standard Additions : File Commands 157
97 | ascd creation date Property of class: item Finder : Finder items 158
98 | ascr AppleScript Property of class: application AppleScript Language 160
99 | asct file creator Property of class: file information Standard Additions : File Commands 161
100 | asda default application Property of class: file information Standard Additions : File Commands 162
101 | asdf aside from Parameter of command: Call•subroutine AppleScript Language 163
102 | asdr folder Property of class: file information Standard Additions : File Commands 164
103 | asfe file information Class Standard Additions : File Commands 166
104 | asfw folder window Property of class: file information Standard Additions : File Commands 168
105 | asip icon position Property of class: file information Standard Additions : File Commands 169
106 | ask ask Enumeration AppleScript Language 170
107 | ask ask Enumeration Cocoa Scripting : Standard Suite 171
108 | ask ask Enumeration Standard Additions : Scripting Commands 172
109 | askr dialog reply Class Standard Additions : User Interaction 175
110 | aslk locked Property of class: file information Standard Additions : File Commands 176
111 | aslk locked Property of class: item Finder : Finder items 177
112 | aslv long version Property of class: file information Standard Additions : File Commands 178
113 | asmo modification date Enumeration Finder : Enumerations 179
114 | asmo modification date Property of class: disk item System Events : Disk-Folder-File Suite 180
115 | asmo modification date Property of class: file information Standard Additions : File Commands 181
116 | asmo modification date Property of class: item Finder : Finder items 182
117 | asra audio sample rate Property of class: track System Events : QuickTime File Suite 183
118 | assv short version Property of class: file information Standard Additions : File Commands 187
119 | assz audio sample size Property of class: track System Events : QuickTime File Suite 188
120 | asty file type Property of class: alias System Events : Disk-Folder-File Suite 190
121 | asty file type Property of class: file Finder : Files 192
122 | asty file type Property of class: file System Events : Disk-Folder-File Suite 193
123 | asty file type Property of class: file information Standard Additions : File Commands 194
124 | asty file type Property of class: process Finder : Legacy suite 195
125 | asty file type Property of class: process System Events : Processes Suite 196
126 | asup application support Enumeration Standard Additions : File Commands 197
127 | asup application support folder Enumeration Standard Additions : File Commands 198
128 | at AppleTalk URL Enumeration Standard Additions : Internet Suite 202
129 | at at Parameter of command: Call•subroutine AppleScript Language 203
130 | atfa attach action to Command System Events : Folder Actions Suite 204
131 | atfn file name Property of class: attachment Cocoa Scripting : Text Suite 205
132 | attr attribute Class System Events : Processes Suite 207
133 | attr attributes Class System Events : Processes Suite 208
134 | atts attachment Class Cocoa Scripting : Text Suite 209
135 | aucd music CD appeared Command Digital Hub OSAX : Digital Hub Actions 214
136 | audd audio data Class System Events : Audio File Suite 215
137 | audf audio file Class System Events : Audio File Suite 216
138 | audf audio files Class System Events : Audio File Suite 217
139 | audi audio characteristic Property of class: track System Events : QuickTime File Suite 218
140 | aug August Class AppleScript Language 221
141 | autp auto play Property of class: QuickTime data System Events : QuickTime File Suite 227
142 | badm administrator privileges Parameter of command: do shell script Standard Additions : Miscellaneous Commands 241
143 | bcd blank CD appeared Command Digital Hub OSAX : Digital Hub Actions 242
144 | bdvd blank DVD appeared Command Digital Hub OSAX : Digital Hub Actions 243
145 | beep beep Command Standard Additions : User Interaction 246
146 | begi begin transaction Command System Events : System Events Suite 248
147 | belw below Parameter of command: Call•subroutine AppleScript Language 253
148 | bgwt starts with Command AppleScript Language 260
149 | bhit button returned Property of class: alert reply Standard Additions : User Interaction 262
150 | bhit button returned Property of class: dialog reply Standard Additions : User Interaction 264
151 | bkgo background only Property of class: process System Events : Processes Suite 265
152 | bnid bundle identifier Property of class: file information Standard Additions : File Commands 269
153 | bnth beneath Parameter of command: Call•subroutine AppleScript Language 270
154 | bold bold Enumeration AppleScript Language 272
155 | bool boolean Class AppleScript Language 273
156 | bool boolean Enumeration Standard Additions : File Read/Write 274
157 | bool booleans Class AppleScript Language 275
158 | boot startup disk Enumeration Standard Additions : File Commands 276
159 | broW browser Class System Events : Processes Suite 298
160 | broW browsers Class System Events : Processes Suite 300
161 | brow Finder window Class Finder : Window classes 301
162 | brow Finder windows Class Finder : Window classes 302
163 | bsid beside Parameter of command: Call•subroutine AppleScript Language 303
164 | btns buttons Parameter of command: display alert Standard Additions : User Interaction 305
165 | btns buttons Parameter of command: display dialog Standard Additions : User Interaction 307
166 | btwn between Parameter of command: Call•subroutine AppleScript Language 308
167 | busi busy indicator Class System Events : Processes Suite 311
168 | busi busy indicators Class System Events : Processes Suite 312
169 | busy busy status Property of class: disk item System Events : Disk-Folder-File Suite 313
170 | butT button Class System Events : Processes Suite 318
171 | butT buttons Class System Events : Processes Suite 320
172 | by by Parameter of command: Call•subroutine AppleScript Language 324
173 | by by Parameter of command: clean up Finder : Finder items 325
174 | by by Parameter of command: sort Finder : Finder Basics 326
175 | bzst busy status Property of class: file information Standard Additions : File Commands 327
176 | capa capacity Property of class: disk Finder : Containers and folders 333
177 | capa capacity Property of class: disk System Events : Disk-Folder-File Suite 334
178 | capp app Class AppleScript Language 335
179 | capp application Class AppleScript Language 336
180 | capp application Class Cocoa Scripting : Standard Suite 338
181 | capp application Class Finder : Finder Basics 339
182 | capp application Class Finder : Legacy suite 340
183 | capp application Class System Events : System Events Suite 341
184 | capp applications Class AppleScript Language 342
185 | capp applications Class Cocoa Scripting : Standard Suite 344
186 | capp applications Class System Events : System Events Suite 345
187 | case case Enumeration AppleScript Language 346
188 | case upper case Class AppleScript Language 347
189 | catr attribute run Class Cocoa Scripting : Text Suite 350
190 | catr attribute runs Class Cocoa Scripting : Text Suite 351
191 | cbtn cancel button Parameter of command: display alert Standard Additions : User Interaction 352
192 | cbtn cancel button Parameter of command: display dialog Standard Additions : User Interaction 353
193 | ccat & Command AppleScript Language 354
194 | ccmp computer-object Class Finder : Containers and folders 355
195 | ccmt cubic centimeters Class AppleScript Language 356
196 | ccmt cubic centimetres Class AppleScript Language 357
197 | ccol column Class System Events : Processes Suite 358
198 | ccol columns Class System Events : Processes Suite 360
199 | cdis disk Class Finder : Containers and folders 361
200 | cdis disk Class System Events : Disk-Folder-File Suite 362
201 | cdis disk Property of class: item Finder : Finder items 363
202 | cdis disks Class Finder : Containers and folders 364
203 | cdis disks Class System Events : Disk-Folder-File Suite 365
204 | cdsk desktop-object Class Finder : Containers and folders 366
205 | cdta arranged by creation date Enumeration Finder : Enumerations 367
206 | cent center Enumeration AppleScript Language 382
207 | cfbn short name Property of class: file information Standard Additions : File Commands 387
208 | cfet cubic feet Class AppleScript Language 388
209 | cflo text flow Class AppleScript Language 389
210 | cflo text flows Class AppleScript Language 390
211 | cfol folder Class Finder : Containers and folders 391
212 | cfol folder Class System Events : Disk-Folder-File Suite 392
213 | cfol folders Class Finder : Containers and folders 393
214 | cfol folders Class System Events : Disk-Folder-File Suite 394
215 | cha character Class AppleScript Language 395
216 | cha character Class Cocoa Scripting : Text Suite 396
217 | cha characters Class AppleScript Language 397
218 | cha characters Class Cocoa Scripting : Text Suite 398
219 | chbx checkbox Class System Events : Processes Suite 401
220 | chbx checkboxes Class System Events : Processes Suite 402
221 | chcl choose color Command Standard Additions : User Interaction 403
222 | chlt choose from list Command Standard Additions : User Interaction 409
223 | chra choose remote application Command Standard Additions : User Interaction 412
224 | chur choose URL Command Standard Additions : User Interaction 413
225 | cinl Content Index panel Enumeration Finder : Enumerations 414
226 | cins insertion point Class AppleScript Language 415
227 | cins insertion points Class AppleScript Language 416
228 | citl writing code info Class AppleScript Language 418
229 | citl writing code infos Class AppleScript Language 419
230 | citm text item Class AppleScript Language 420
231 | citm text items Class AppleScript Language 421
232 | clbl label Class Finder : Type Definitions 422
233 | clic click Command System Events : Processes Suite 431
234 | clin line Class AppleScript Language 434
235 | clin lines Class AppleScript Language 435
236 | clon duplicate Command AppleScript Language 440
237 | clon duplicate Command Cocoa Scripting : Standard Suite 441
238 | clon duplicate Command Finder : Standard Suite 442
239 | clos close Command AppleScript Language 445
240 | clos close Command Cocoa Scripting : Standard Suite 446
241 | clos close Command Finder : Standard Suite 447
242 | clos close access Command Standard Additions : File Read/Write 448
243 | clpf clipping Class Finder : Files 449
244 | clpf clippings Class Finder : Files 450
245 | clrt color table Class AppleScript Language 451
246 | Clsc opens in Classic Property of class: application file Finder : Files 452
247 | clsc Classic Property of class: process System Events : Processes Suite 453
248 | clvw column view Enumeration Finder : Enumerations 455
249 | clwd width Property of class: column Finder : Type Definitions 456
250 | clwm maximum width Property of class: column Finder : Type Definitions 457
251 | clwn minimum width Property of class: column Finder : Type Definitions 458
252 | cmen menu item Class AppleScript Language 459
253 | cmet cubic meters Class AppleScript Language 460
254 | cmet cubic metres Class AppleScript Language 461
255 | cmnt log Command AppleScript Language 462
256 | cmnu menu Class AppleScript Language 464
257 | cmtr centimeters Class AppleScript Language 465
258 | cmtr centimetres Class AppleScript Language 466
259 | cnbt cancel button name Parameter of command: choose from list Standard Additions : User Interaction 468
260 | cncl cancel Deprecated terminology System Events : Hidden Suite 469
261 | cnfm confirm Deprecated terminology System Events : Hidden Suite 470
262 | cnte count Command AppleScript Language 471
263 | cnte count Command Cocoa Scripting : Standard Suite 472
264 | cnte count Command Finder : Standard Suite 473
265 | cobj item Class AppleScript Language 478
266 | cobj item Class Cocoa Scripting : Standard Suite 480
267 | cobj item Class Finder : Finder items 481
268 | cobj item Class System Events : Disk-Folder-File Suite 482
269 | cobj item Property of class: information window Finder : Window classes 483
270 | cobj items Class AppleScript Language 484
271 | cobj items Class Cocoa Scripting : Standard Suite 485
272 | cobj items Class Finder : Finder items 486
273 | cobj items Class System Events : Disk-Folder-File Suite 487
274 | coer as Command AppleScript Language 490
275 | colr background color Property of class: icon view options Finder : Type Definitions 498
276 | colr color Class Cocoa Scripting : Standard Suite 499
277 | colr color Property of class: attribute run Cocoa Scripting : Text Suite 500
278 | colr color Property of class: character Cocoa Scripting : Text Suite 501
279 | colr color Property of class: label Finder : Type Definitions 504
280 | colr color Property of class: paragraph Cocoa Scripting : Text Suite 505
281 | colr color Property of class: text AppleScript Language 507
282 | colr color Property of class: text Cocoa Scripting : Text Suite 508
283 | colr color Property of class: word Cocoa Scripting : Text Suite 509
284 | colr colors Class Cocoa Scripting : Standard Suite 510
285 | colW color well Class System Events : Processes Suite 513
286 | colW color wells Class System Events : Processes Suite 515
287 | comB combo box Class System Events : Processes Suite 517
288 | comB combo boxes Class System Events : Processes Suite 519
289 | comp double integer Class AppleScript Language 520
290 | comt comment Enumeration Finder : Enumerations 521
291 | comt comment Property of class: item Finder : Finder items 522
292 | cond condensed Enumeration AppleScript Language 525
293 | cont contains Command AppleScript Language 544
294 | copy copy Command Finder : Finder Basics 562
295 | cpar paragraph Class AppleScript Language 566
296 | cpar paragraph Class Cocoa Scripting : Text Suite 567
297 | cpar paragraphs Class AppleScript Language 568
298 | cpar paragraphs Class Cocoa Scripting : Text Suite 569
299 | cpkg file package Class System Events : Disk-Folder-File Suite 570
300 | cpkg file packages Class System Events : Disk-Folder-File Suite 571
301 | cpls scripting components Command Standard Additions : Scripting Commands 572
302 | cpnl Comments panel Enumeration Finder : Enumerations 573
303 | cprf preferences Class Finder : Type Definitions 574
304 | crel make Command AppleScript Language 575
305 | crel make Command Cocoa Scripting : Standard Suite 576
306 | crel make Command Finder : Standard Suite 577
307 | crfl folder creation Parameter of command: path to Standard Additions : File Commands 578
308 | cRGB RGB color Class AppleScript Language 579
309 | cRGB RGB colors Class AppleScript Language 580
310 | criT critical Enumeration Standard Additions : User Interaction 582
311 | crow row Class System Events : Processes Suite 583
312 | crow rows Class System Events : Processes Suite 584
313 | csel selection-object Class AppleScript Language 585
314 | cstr C string Class AppleScript Language 586
315 | cstr C strings Class AppleScript Language 587
316 | ctnr container Class Finder : Containers and folders 588
317 | ctnr container Property of class: disk item System Events : Disk-Folder-File Suite 589
318 | ctnr container Property of class: item Finder : Finder items 590
319 | ctnr containers Class Finder : Containers and folders 591
320 | cton ASCII number Command Standard Additions : String Commands 592
321 | ctrl control panels Enumeration Standard Additions : File Commands 593
322 | ctrl control panels folder Enumeration Standard Additions : File Commands 594
323 | ctrl control panels folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 595
324 | ctrs trash-object Class Finder : Containers and folders 596
325 | ctxt text Class AppleScript Language 598
326 | ctxt text Class Cocoa Scripting : Text Suite 599
327 | ctxt text Property of class: XML data System Events : XML Suite 600
328 | ctyp of content type Parameter of command: handle CGI request Standard Additions : Internet Suite 601
329 | cuin cubic inches Class AppleScript Language 603
330 | cura current application Enumeration AppleScript Language 606
331 | curd current date Command Standard Additions : Miscellaneous Commands 610
332 | curu current user Property of class: application System Events : System Events Suite 614
333 | cusr current user folder Enumeration Standard Additions : File Commands 615
334 | cusr home folder Enumeration Standard Additions : File Commands 616
335 | cusr home folder Property of class: application System Events : System Events Suite 617
336 | cusr home folder Property of class: user domain object System Events : Disk-Folder-File Suite 618
337 | cust current Enumeration System Events : QuickTime File Suite 619
338 | cusv showing Parameter of command: choose URL Standard Additions : User Interaction 620
339 | cvop column view options Class Finder : Type Definitions 622
340 | cvop column view options Property of class: Finder window Finder : Window classes 623
341 | cvop column view options Property of class: preferences Finder : Type Definitions 624
342 | cwin window Class AppleScript Language 625
343 | cwin window Class Cocoa Scripting : Standard Suite 627
344 | cwin window Class Finder : Window classes 628
345 | cwin window Class System Events : Processes Suite 629
346 | cwin window Property of class: preferences Finder : Type Definitions 631
347 | cwin windows Class AppleScript Language 633
348 | cwin windows Class Cocoa Scripting : Standard Suite 635
349 | cwin windows Class Finder : Window classes 636
350 | cwin windows Class System Events : Processes Suite 637
351 | cwnd container window Property of class: container Finder : Containers and folders 638
352 | cwor word Class AppleScript Language 639
353 | cwor word Class Cocoa Scripting : Text Suite 640
354 | cwor words Class AppleScript Language 641
355 | cwor words Class Cocoa Scripting : Text Suite 642
356 | cyrd cubic yards Class AppleScript Language 643
357 | dafi desk accessory file Property of class: desk accessory process Finder : Legacy suite 644
358 | dafi desk accessory file Property of class: desk accessory process System Events : Processes Suite 645
359 | data to Parameter of command: set Cocoa Scripting : Standard Suite 646
360 | data with data Parameter of command: make AppleScript Language 647
361 | data with data Parameter of command: make Cocoa Scripting : Standard Suite 648
362 | day day Property of class: date AppleScript Language 664
363 | days days Property of class: application AppleScript Language 665
364 | dcol default color Parameter of command: choose color Standard Additions : User Interaction 666
365 | ddra data rate Property of class: track System Events : QuickTime File Suite 667
366 | dec December Class AppleScript Language 669
367 | decr decrement Deprecated terminology System Events : Hidden Suite 670
368 | degc degrees Celsius Class AppleScript Language 681
369 | degf degrees Fahrenheit Class AppleScript Language 682
370 | degk degrees Kelvin Class AppleScript Language 683
371 | dela delay Command Standard Additions : User Interaction 684
372 | dela delay before springing Property of class: preferences Finder : Type Definitions 685
373 | deli using delimiter Parameter of command: read Standard Additions : File Read/Write 686
374 | deli using delimiters Parameter of command: read Standard Additions : File Read/Write 687
375 | delo delete Command AppleScript Language 688
376 | delo delete Command Cocoa Scripting : Standard Suite 689
377 | delo delete Command Finder : Standard Suite 690
378 | delo delete Command System Events : Disk-Folder-File Suite 691
379 | desc description Property of class: action System Events : Processes Suite 696
380 | desc description Property of class: UI element System Events : Processes Suite 697
381 | desk desktop Enumeration Standard Additions : File Commands 699
382 | desk desktop Property of class: application Finder : Finder Basics 700
383 | desk desktop folder Enumeration Standard Additions : File Commands 701
384 | desk desktop folder Property of class: application System Events : System Events Suite 702
385 | desk desktop folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 703
386 | desk desktop folder Property of class: user domain object System Events : Disk-Folder-File Suite 704
387 | df$$ unknown format Enumeration System Events : Disk-Folder-File Suite 707
388 | df96 ISO 9660 format Enumeration Finder : Enumerations 708
389 | df96 ISO 9660 format Enumeration System Events : Disk-Folder-File Suite 709
390 | df?? unknown format Enumeration Finder : Enumerations 710
391 | dfac Xsan format Enumeration Finder : Enumerations 711
392 | dfas AppleShare format Enumeration Finder : Enumerations 712
393 | dfas AppleShare format Enumeration System Events : Disk-Folder-File Suite 713
394 | dfau audio format Enumeration Finder : Enumerations 714
395 | dfau audio format Enumeration System Events : Disk-Folder-File Suite 715
396 | dfft FTP format Enumeration Finder : Enumerations 716
397 | dfh+ Mac OS Extended format Enumeration Finder : Enumerations 717
398 | dfh+ Mac OS Extended format Enumeration System Events : Disk-Folder-File Suite 718
399 | dfhf Mac OS format Enumeration Finder : Enumerations 719
400 | dfhf Mac OS format Enumeration System Events : Disk-Folder-File Suite 720
401 | dfhs High Sierra format Enumeration Finder : Enumerations 721
402 | dfhs High Sierra format Enumeration System Events : Disk-Folder-File Suite 722
403 | dflc default location Parameter of command: choose file Standard Additions : User Interaction 723
404 | dflc default location Parameter of command: choose file name Standard Additions : User Interaction 724
405 | dflc default location Parameter of command: choose folder Standard Additions : User Interaction 725
406 | dflt default button Parameter of command: display alert Standard Additions : User Interaction 726
407 | dflt default button Parameter of command: display dialog Standard Additions : User Interaction 728
408 | dfms MS-DOS format Enumeration Finder : Enumerations 729
409 | dfms MS-DOS format Enumeration System Events : Disk-Folder-File Suite 730
410 | dfmt format Property of class: disk Finder : Containers and folders 731
411 | dfmt format Property of class: disk System Events : Disk-Folder-File Suite 732
412 | dfnf NFS format Enumeration Finder : Enumerations 733
413 | dfnf NFS format Enumeration System Events : Disk-Folder-File Suite 734
414 | dfnm default name Parameter of command: choose file name Standard Additions : User Interaction 735
415 | dfnt NTFS format Enumeration Finder : Enumerations 736
416 | dfph Apple Photo format Enumeration Finder : Enumerations 737
417 | dfph Apple Photo format Enumeration System Events : Disk-Folder-File Suite 738
418 | dfpr ProDOS format Enumeration Finder : Enumerations 739
419 | dfpr ProDOS format Enumeration System Events : Disk-Folder-File Suite 740
420 | dfpu Packet-written UDF format Enumeration Finder : Enumerations 741
421 | dfqt QuickTake format Enumeration Finder : Enumerations 742
422 | dfqt QuickTake format Enumeration System Events : Disk-Folder-File Suite 743
423 | dfud UDF format Enumeration Finder : Enumerations 744
424 | dfud UDF format Enumeration System Events : Disk-Folder-File Suite 745
425 | dfuf UFS format Enumeration Finder : Enumerations 746
426 | dfuf UFS format Enumeration System Events : Disk-Folder-File Suite 747
427 | dfwd WebDAV format Enumeration Finder : Enumerations 748
428 | dfwd WebDAV format Enumeration System Events : Disk-Folder-File Suite 749
429 | diac diacriticals Enumeration AppleScript Language 750
430 | DIRE from virtual host Parameter of command: handle CGI request Standard Additions : Internet Suite 754
431 | dire rounding Parameter of command: round Standard Additions : Miscellaneous Commands 755
432 | disA display alert Command Standard Additions : User Interaction 757
433 | DISP displaying Parameter of command: say Standard Additions : User Interaction 761
434 | disp with icon Parameter of command: display dialog Standard Additions : User Interaction 764
435 | ditm disk item Class System Events : Disk-Folder-File Suite 766
436 | ditm disk items Class System Events : Disk-Folder-File Suite 767
437 | div div Command AppleScript Language 768
438 | dktw desktop window Class Finder : Window classes 769
439 | dlib library folder Enumeration Standard Additions : File Commands 770
440 | dlog display dialog Command Standard Additions : User Interaction 772
441 | dnam displayed name Property of class: disk item System Events : Disk-Folder-File Suite 773
442 | dnam displayed name Property of class: file information Standard Additions : File Commands 774
443 | dnam displayed name Property of class: item Finder : Finder items 775
444 | dnam displayed name Property of class: process System Events : Processes Suite 776
445 | docf document file Class Finder : Files 778
446 | docf document files Class Finder : Files 779
447 | docs At Ease documents Enumeration Standard Additions : File Commands 781
448 | docs At Ease documents folder Enumeration Standard Additions : File Commands 782
449 | docs documents folder Enumeration Standard Additions : File Commands 783
450 | docs documents folder Property of class: application System Events : System Events Suite 784
451 | docs documents folder Property of class: user domain object System Events : Disk-Folder-File Suite 785
452 | docu document Class AppleScript Language 786
453 | docu document Class Cocoa Scripting : Standard Suite 788
454 | docu document Property of class: window Cocoa Scripting : Standard Suite 789
455 | docu documents Class AppleScript Language 790
456 | docu documents Class Cocoa Scripting : Standard Suite 792
457 | doex exists Command AppleScript Language 795
458 | doex exists Command Cocoa Scripting : Standard Suite 796
459 | doex exists Command Finder : Standard Suite 797
460 | doma domain Class System Events : Disk-Folder-File Suite 798
461 | doma domains Class System Events : Disk-Folder-File Suite 799
462 | domc Classic domain object Class System Events : Disk-Folder-File Suite 800
463 | domc Classic domain objects Class System Events : Disk-Folder-File Suite 801
464 | doml local domain object Class System Events : Disk-Folder-File Suite 802
465 | doml local domain objects Class System Events : Disk-Folder-File Suite 803
466 | domn network domain object Class System Events : Disk-Folder-File Suite 804
467 | domn network domain objects Class System Events : Disk-Folder-File Suite 805
468 | doms system domain object Class System Events : Disk-Folder-File Suite 806
469 | doms system domain objects Class System Events : Disk-Folder-File Suite 807
470 | domu user domain object Class System Events : Disk-Folder-File Suite 808
471 | domu user domain objects Class System Events : Disk-Folder-File Suite 809
472 | dosc do script Command System Events : Hidden Suite 811
473 | doub double Enumeration System Events : QuickTime File Suite 812
474 | doub real Class AppleScript Language 813
475 | doub reals Class AppleScript Language 814
476 | dpic desktop picture Property of class: application Finder : Legacy suite 818
477 | dpos desktop position Property of class: item Finder : Finder items 819
478 | draA drawer Class System Events : Processes Suite 821
479 | draA drawers Class System Events : Processes Suite 823
480 | dscr description Property of class: item Finder : Finder items 865
481 | dsct run script Command Standard Additions : Scripting Commands 866
482 | dsiz data size Command AppleScript Language 867
483 | dsiz data size Command Finder : Standard Suite 868
484 | dsiz data size Property of class: QuickTime data System Events : QuickTime File Suite 869
485 | dsiz data size Property of class: track System Events : QuickTime File Suite 870
486 | dspr discloses preview pane Property of class: column view options Finder : Type Definitions 871
487 | dstr date string Property of class: date AppleScript Language 872
488 | dtp$ desktop pictures folder Property of class: domain System Events : Disk-Folder-File Suite 874
489 | dtpƒ desktop pictures folder Enumeration Standard Additions : File Commands 875
490 | dtpQ desktop pictures folder Property of class: application System Events : System Events Suite 876
491 | dtxt default answer Parameter of command: display dialog Standard Additions : User Interaction 878
492 | durn duration Property of class: QuickTime data System Events : QuickTime File Suite 879
493 | durn duration Property of class: track System Events : QuickTime File Suite 880
494 | eatt AppleTalk Enumeration Standard Additions : User Interaction 882
495 | eCmd command Enumeration System Events : Processes Suite 884
496 | eCnt control Enumeration System Events : Processes Suite 885
497 | ects entire contents Property of class: container Finder : Containers and folders 886
498 | ects entire contents Property of class: UI element System Events : Processes Suite 887
499 | edfa edit action of Command System Events : Folder Actions Suite 891
500 | egfp frontmost application Enumeration Standard Additions : File Commands 902
501 | eipt IP Enumeration Standard Additions : User Interaction 903
502 | ejct eject Command Finder : Finder items 904
503 | elin type element info Class AppleScript Language 905
504 | elsC comment column Enumeration Finder : Enumerations 906
505 | elsc creation date column Enumeration Finder : Enumerations 907
506 | elsk kind column Enumeration Finder : Enumerations 908
507 | elsl label column Enumeration Finder : Enumerations 909
508 | elsm modification date column Enumeration Finder : Enumerations 910
509 | elsn name column Enumeration Finder : Enumerations 911
510 | elss size column Enumeration Finder : Enumerations 912
511 | elsv version column Enumeration Finder : Enumerations 913
512 | empL empty selection allowed Parameter of command: choose from list Standard Additions : User Interaction 914
513 | empt empty Command Finder : Finder items 915
514 | empz startup Enumeration Standard Additions : File Commands 916
515 | empz startup items Enumeration Standard Additions : File Commands 917
516 | empz startup items folder Enumeration Standard Additions : File Commands 918
517 | empz startup items folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 919
518 | enaB enabled Property of class: folder action System Events : Folder Actions Suite 922
519 | enaB enabled Property of class: script System Events : Folder Actions Suite 925
520 | enaB enabled Property of class: UI element System Events : Processes Suite 927
521 | enbl enabled Property of class: track System Events : QuickTime File Suite 928
522 | encs encoded string Class AppleScript Language 929
523 | encs encoded strings Class AppleScript Language 930
524 | ends ends with Command AppleScript Language 933
525 | endt end transaction Command System Events : System Events Suite 934
526 | enum constant Class AppleScript Language 937
527 | enum constants Class AppleScript Language 938
528 | eof eof Enumeration Standard Additions : File Read/Write 939
529 | eOpt option Enumeration System Events : Processes Suite 940
530 | eppc remote application URL Enumeration Standard Additions : Internet Suite 941
531 | EPS PostScript picture Class AppleScript Language 942
532 | erob from Parameter of command: error AppleScript Language 943
533 | err error Command AppleScript Language 944
534 | errn number Parameter of command: error AppleScript Language 945
535 | errr error reporting Parameter of command: open location Standard Additions : Internet Suite 947
536 | errt to Parameter of command: error AppleScript Language 948
537 | eSft shift Enumeration System Events : Processes Suite 949
538 | esva File servers Enumeration Standard Additions : User Interaction 950
539 | esvd Directory services Enumeration Standard Additions : User Interaction 951
540 | esve Remote applications Enumeration Standard Additions : User Interaction 952
541 | esvf FTP Servers Enumeration Standard Additions : User Interaction 953
542 | esvm Media servers Enumeration Standard Additions : User Interaction 954
543 | esvn News servers Enumeration Standard Additions : User Interaction 955
544 | esvt Telnet hosts Enumeration Standard Additions : User Interaction 956
545 | esvw Web servers Enumeration Standard Additions : User Interaction 957
546 | evin type event info Class AppleScript Language 975
547 | evnt event Class AppleScript Language 976
548 | evnt events Class AppleScript Language 977
549 | exec do shell script Command Standard Additions : Miscellaneous Commands 978
550 | expa expansion Enumeration AppleScript Language 981
551 | exte extended real Class AppleScript Language 983
552 | extn extensions Enumeration Standard Additions : File Commands 985
553 | extn extensions folder Enumeration Standard Additions : File Commands 986
554 | extn name extension Property of class: disk item System Events : Disk-Folder-File Suite 987
555 | extz extensions folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 988
556 | faal using Parameter of command: attach action to System Events : Folder Actions Suite 989
557 | faal using Parameter of command: key code System Events : Processes Suite 990
558 | faal using Parameter of command: keystroke System Events : Processes Suite 991
559 | faen folder actions enabled Property of class: application System Events : System Events Suite 992
560 | fals false Enumeration AppleScript Language 993
561 | fasf Folder Action scripts Enumeration Standard Additions : File Commands 994
562 | fasf Folder Action scripts folder Enumeration Standard Additions : File Commands 995
563 | fasf Folder Action scripts folder Property of class: application System Events : System Events Suite 996
564 | fasf Folder Action scripts folder Property of class: domain System Events : Disk-Folder-File Suite 997
565 | favs favorites folder Enumeration Standard Additions : File Commands 998
566 | favs favorites folder Property of class: application System Events : System Events Suite 999
567 | favs favorites folder Property of class: user domain object System Events : Disk-Folder-File Suite 1000
568 | faxn fax number Property of class: print settings Cocoa Scripting : Type Definitions 1001
569 | fclo closing folder window for Command Standard Additions : Folder Actions 1002
570 | fclu clean up Command Finder : Finder items 1003
571 | fcrt creator type Property of class: alias System Events : Disk-Folder-File Suite 1004
572 | fcrt creator type Property of class: file Finder : Files 1005
573 | fcrt creator type Property of class: file System Events : Disk-Folder-File Suite 1006
574 | fcrt creator type Property of class: process Finder : Legacy suite 1007
575 | fcrt creator type Property of class: process System Events : Processes Suite 1008
576 | feb February Class AppleScript Language 1009
577 | feet feet Class AppleScript Language 1010
578 | fera erase Command Finder : Finder items 1011
579 | ffav add to favorites Command Finder : Finder items 1012
580 | ffdr path to Command Standard Additions : File Commands 1013
581 | ffnd find Command Finder : Finder Basics 1014
582 | fget adding folder items to Command Standard Additions : Folder Actions 1015
583 | file file Class AppleScript Language 1017
584 | file file Class Finder : Files 1018
585 | file file Class System Events : Disk-Folder-File Suite 1019
586 | file file Property of class: process Finder : Legacy suite 1020
587 | file file Property of class: process System Events : Processes Suite 1021
588 | file file URL (obsolete) Enumeration Standard Additions : Internet Suite 1022
589 | file files Class AppleScript Language 1023
590 | file files Class Finder : Files 1024
591 | file files Class System Events : Disk-Folder-File Suite 1025
592 | fits screen Enumeration System Events : QuickTime File Suite 1032
593 | fixd fixed Class AppleScript Language 1034
594 | fldc Classic domain Enumeration Standard Additions : File Commands 1036
595 | fldc Classic domain Property of class: application System Events : System Events Suite 1037
596 | fldl local domain Enumeration Standard Additions : File Commands 1038
597 | fldl local domain Property of class: application System Events : System Events Suite 1039
598 | fldn network domain Enumeration Standard Additions : File Commands 1040
599 | fldn network domain Property of class: application System Events : System Events Suite 1041
600 | flds system domain Enumeration Standard Additions : File Commands 1042
601 | flds system domain Property of class: application System Events : System Events Suite 1043
602 | fldu user domain Enumeration Standard Additions : File Commands 1044
603 | fldu user domain Property of class: application System Events : System Events Suite 1045
604 | flos removing folder items from Command Standard Additions : Folder Actions 1047
605 | flow workflows folder Enumeration Standard Additions : File Commands 1050
606 | flst after losing Parameter of command: removing folder items from Standard Additions : Folder Actions 1051
607 | flst after receiving Parameter of command: adding folder items to Standard Additions : Folder Actions 1052
608 | fltp as Parameter of command: save AppleScript Language 1053
609 | fltp as Parameter of command: save Cocoa Scripting : Standard Suite 1054
610 | fnam full name Property of class: user System Events : Accounts Suite 1055
611 | fnsz from Parameter of command: moving folder window for Standard Additions : Folder Actions 1056
612 | foac folder action Class System Events : Folder Actions Suite 1059
613 | foac folder actions Class System Events : Folder Actions Suite 1060
614 | focu focused Property of class: UI element System Events : Processes Suite 1061
615 | font font Property of class: attribute run Cocoa Scripting : Text Suite 1071
616 | font font Property of class: character Cocoa Scripting : Text Suite 1072
617 | font font Property of class: paragraph Cocoa Scripting : Text Suite 1073
618 | font font Property of class: text AppleScript Language 1074
619 | font font Property of class: text Cocoa Scripting : Text Suite 1075
620 | font font Property of class: word Cocoa Scripting : Text Suite 1076
621 | font fonts Enumeration Standard Additions : File Commands 1077
622 | font fonts folder Enumeration Standard Additions : File Commands 1078
623 | font fonts folder Property of class: application System Events : System Events Suite 1079
624 | font fonts folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 1080
625 | font fonts folder Property of class: domain System Events : Disk-Folder-File Suite 1081
626 | fopn opening folder Command Standard Additions : Folder Actions 1082
627 | for for Parameter of command: Call•subroutine AppleScript Language 1083
628 | for for Parameter of command: clipboard info Standard Additions : Clipboard Commands 1084
629 | fpnt fixed point Class AppleScript Language 1090
630 | fpth in Parameter of command: store script Standard Additions : Scripting Commands 1091
631 | frct fixed rectangle Class AppleScript Language 1093
632 | fri Friday Class AppleScript Language 1094
633 | frmu with user info Parameter of command: handle CGI request Standard Additions : Internet Suite 1095
634 | from from Parameter of command: Call•subroutine AppleScript Language 1096
635 | from from Parameter of command: path to Standard Additions : File Commands 1097
636 | from from Parameter of command: random number Standard Additions : Miscellaneous Commands 1098
637 | froT from table Parameter of command: localized string Standard Additions : String Commands 1101
638 | frsp free space Property of class: disk Finder : Containers and folders 1102
639 | frsp free space Property of class: disk System Events : Disk-Folder-File Suite 1103
640 | fsiz moving folder window for Command Standard Additions : Folder Actions 1104
641 | fsiz text size Property of class: column view options Finder : Type Definitions 1105
642 | fsiz text size Property of class: icon view options Finder : Type Definitions 1106
643 | fsiz text size Property of class: list view options Finder : Type Definitions 1107
644 | fss file specification Class AppleScript Language 1108
645 | fss file specifications Class AppleScript Language 1109
646 | ftp FTP item Class Standard Additions : Internet Suite 1110
647 | ftp FTP items Class Standard Additions : Internet Suite 1111
648 | ftp ftp URL Enumeration Standard Additions : Internet Suite 1112
649 | FTPc path Property of class: URL Standard Additions : Internet Suite 1113
650 | ftyp of type Parameter of command: choose file Standard Additions : User Interaction 1114
651 | full full Enumeration AppleScript Language 1115
652 | fupd update Command Finder : Finder items 1117
653 | fvoc voices Enumeration Standard Additions : File Commands 1118
654 | fvoc voices folder Enumeration Standard Additions : File Commands 1119
655 | fvtg target Property of class: Finder window Finder : Window classes 1120
656 | galn gallons Class AppleScript Language 1121
657 | gavu gave up Property of class: alert reply Standard Additions : User Interaction 1122
658 | gavu gave up Property of class: dialog reply Standard Additions : User Interaction 1124
659 | gcli type class info Class AppleScript Language 1125
660 | gClp the clipboard Command Standard Additions : Clipboard Commands 1126
661 | geof get eof Command Standard Additions : File Read/Write 1128
662 | getd get Command Cocoa Scripting : Standard Suite 1129
663 | GIFf GIF picture Class AppleScript Language 1130
664 | givn given Parameter of command: Call•subroutine AppleScript Language 1131
665 | givu giving up after Parameter of command: display alert Standard Additions : User Interaction 1132
666 | givu giving up after Parameter of command: display dialog Standard Additions : User Interaction 1134
667 | GMT time to GMT Command Standard Additions : Miscellaneous Commands 1135
668 | gphr gopher URL Enumeration Standard Additions : Internet Suite 1137
669 | gpnl General Information panel Enumeration Finder : Enumerations 1138
670 | gppr group privileges Property of class: item Finder : Finder items 1139
671 | gram grams Class AppleScript Language 1141
672 | grda snap to grid Enumeration Finder : Enumerations 1146
673 | grow grow area Class System Events : Processes Suite 1150
674 | grow grow areas Class System Events : Processes Suite 1151
675 | grvw group view Enumeration Finder : Enumerations 1152
676 | gstl computer Deprecated terminology Standard Additions : Hidden definitions 1153
677 | gstl system attribute Command Standard Additions : Miscellaneous Commands 1154
678 | gstp everyones privileges Property of class: item Finder : Finder items 1155
679 | gtei event info Command AppleScript Language 1156
680 | gtsi suite info Command AppleScript Language 1157
681 | gtvl get volume settings Command Standard Additions : Miscellaneous Commands 1158
682 | GURL open location Command Standard Additions : Internet Suite 1159
683 | half half Enumeration System Events : QuickTime File Suite 1163
684 | hand handler Class AppleScript Language 1164
685 | hand handlers Class AppleScript Language 1165
686 | has has Parameter of command: system attribute Standard Additions : Miscellaneous Commands 1167
687 | hclb closeable Property of class: window AppleScript Language 1174
688 | hclb closeable Property of class: window Cocoa Scripting : Standard Suite 1176
689 | hclb closeable Property of class: window Finder : Window classes 1177
690 | help help Property of class: UI element System Events : Processes Suite 1180
691 | hidn hidden Enumeration AppleScript Language 1183
692 | hidn hidden Property of class: login item System Events : Login Items Suite 1184
693 | hidx extension hidden Property of class: file information Standard Additions : File Commands 1185
694 | hidx extension hidden Property of class: item Finder : Finder items 1186
695 | home home Property of class: application Finder : Finder Basics 1194
696 | home home directory Property of class: system information Standard Additions : Miscellaneous Commands 1195
697 | home home directory Property of class: user System Events : Accounts Suite 1196
698 | HOST host Property of class: URL Standard Additions : Internet Suite 1201
699 | hour hours Property of class: application AppleScript Language 1202
700 | hour hours Property of class: date AppleScript Language 1203
701 | hqua high quality Property of class: track System Events : QuickTime File Suite 1205
702 | href href Property of class: QuickTime data System Events : QuickTime File Suite 1206
703 | href href Property of class: track System Events : QuickTime File Suite 1207
704 | hscr has scripting terminology Property of class: application file Finder : Files 1209
705 | hscr has scripting terminology Property of class: process Finder : Legacy suite 1210
706 | hscr has scripting terminology Property of class: process System Events : Processes Suite 1211
707 | html web page Class Standard Additions : Internet Suite 1212
708 | html web pages Class Standard Additions : Internet Suite 1213
709 | htps secure http URL Enumeration Standard Additions : Internet Suite 1214
710 | http http URL Enumeration Standard Additions : Internet Suite 1215
711 | htxt hidden answer Parameter of command: display dialog Standard Additions : User Interaction 1216
712 | hyph hyphens Enumeration AppleScript Language 1218
713 | iarr arrangement Property of class: icon view options Finder : Type Definitions 1220
714 | ibkg background picture Property of class: icon view options Finder : Type Definitions 1221
715 | icl4 large 4 bit icon Property of class: icon family Finder : Type Definitions 1223
716 | icl8 large 8 bit icon Property of class: icon family Finder : Type Definitions 1224
717 | iClp clipboard info Command Standard Additions : Clipboard Commands 1225
718 | ICN# large monochrome icon and mask Property of class: icon family Finder : Type Definitions 1226
719 | icnv icon view Enumeration Finder : Enumerations 1227
720 | icop icon view options Class Finder : Type Definitions 1229
721 | icop icon view options Property of class: Finder window Finder : Window classes 1230
722 | icop icon view options Property of class: preferences Finder : Type Definitions 1231
723 | ics# small monochrome icon and mask Property of class: icon family Finder : Type Definitions 1232
724 | ics4 small 4 bit icon Property of class: icon family Finder : Type Definitions 1233
725 | ics8 small 8 bit icon Property of class: icon family Finder : Type Definitions 1234
726 | ics8 small 8 bit mask Property of class: icon family Finder : Type Definitions 1235
727 | ID id Enumeration AppleScript Language 1236
728 | ID id Property of class: annotation System Events : QuickTime File Suite 1237
729 | ID id Property of class: disk item System Events : Disk-Folder-File Suite 1238
730 | ID id Property of class: domain System Events : Disk-Folder-File Suite 1239
731 | ID id Property of class: item AppleScript Language 1240
732 | ID id Property of class: item System Events : Disk-Folder-File Suite 1242
733 | ID id Property of class: process System Events : Processes Suite 1243
734 | ID id Property of class: window Cocoa Scripting : Standard Suite 1244
735 | ID id Property of class: window Finder : Window classes 1245
736 | idle idle Command AppleScript Language 1250
737 | idux unix id Property of class: process System Events : Processes Suite 1252
738 | ifam icon family Class Finder : Type Definitions 1254
739 | igpr ignore privileges Property of class: disk Finder : Containers and folders 1256
740 | igpr ignore privileges Property of class: disk System Events : Disk-Folder-File Suite 1257
741 | iimg icon Property of class: item Finder : Finder items 1258
742 | il32 large 32 bit icon Property of class: icon family Finder : Type Definitions 1259
743 | iloc location Property of class: internet location file Finder : Files 1260
744 | imaA image Class System Events : Processes Suite 1262
745 | imaA images Class System Events : Processes Suite 1271
746 | imap mailbox access URL Enumeration Standard Additions : Internet Suite 1288
747 | imod modified Property of class: document AppleScript Language 1301
748 | imod modified Property of class: document Cocoa Scripting : Standard Suite 1303
749 | in B in bundle Parameter of command: localized string Standard Additions : String Commands 1309
750 | in B in bundle Parameter of command: path to resource Standard Additions : File Commands 1310
751 | in D in directory Parameter of command: path to resource Standard Additions : File Commands 1315
752 | in in Parameter of command: summarize Standard Additions : String Commands 1316
753 | incE increment Deprecated terminology System Events : Hidden Suite 1318
754 | inch inches Class AppleScript Language 1319
755 | incr incrementor Class System Events : Processes Suite 1320
756 | incr incrementors Class System Events : Processes Suite 1321
757 | indx index Enumeration AppleScript Language 1324
758 | indx using action number Parameter of command: edit action of System Events : Folder Actions Suite 1325
759 | indx using action number Parameter of command: remove action from System Events : Folder Actions Suite 1326
760 | infA informational Enumeration Standard Additions : User Interaction 1328
761 | inlf internet location file Class Finder : Files 1330
762 | inlf internet location files Class Finder : Files 1331
763 | insh at Parameter of command: click System Events : Processes Suite 1333
764 | insh at Parameter of command: make AppleScript Language 1334
765 | insh at Parameter of command: make Cocoa Scripting : Standard Suite 1335
766 | insh at Parameter of command: make Finder : Standard Suite 1336
767 | insh to Parameter of command: duplicate AppleScript Language 1337
768 | insh to Parameter of command: duplicate Cocoa Scripting : Standard Suite 1338
769 | insh to Parameter of command: duplicate Finder : Standard Suite 1339
770 | insh to Parameter of command: move AppleScript Language 1340
771 | insh to Parameter of command: move Cocoa Scripting : Standard Suite 1341
772 | insh to Parameter of command: move Finder : Standard Suite 1342
773 | insh to Parameter of command: move System Events : Disk-Folder-File Suite 1343
774 | inSL default items Parameter of command: choose from list Standard Additions : User Interaction 1344
775 | insl location reference Class AppleScript Language 1345
776 | into into Parameter of command: Call•subroutine AppleScript Language 1346
777 | invl input volume Parameter of command: set volume Standard Additions : Miscellaneous Commands 1352
778 | invl input volume Property of class: volume settings Standard Additions : Miscellaneous Commands 1353
779 | IPAD Internet address Class Standard Additions : Internet Suite 1355
780 | IPAD Internet addresses Class Standard Additions : Internet Suite 1356
781 | is32 small 32 bit icon Property of class: icon family Finder : Type Definitions 1357
782 | isab accepts high level events Property of class: application file Finder : Files 1358
783 | isab accepts high level events Property of class: process Finder : Legacy suite 1359
784 | isab accepts high level events Property of class: process System Events : Processes Suite 1360
785 | isej ejectable Property of class: disk Finder : Containers and folders 1361
786 | isej ejectable Property of class: disk System Events : Disk-Folder-File Suite 1362
787 | isfl floating Property of class: window AppleScript Language 1364
788 | isfl floating Property of class: window Cocoa Scripting : Standard Suite 1366
789 | isfl floating Property of class: window Finder : Window classes 1367
790 | ismn miniaturizable Property of class: window Cocoa Scripting : Standard Suite 1369
791 | ispk package folder Property of class: file information Standard Additions : File Commands 1370
792 | isrv local volume Property of class: disk Finder : Containers and folders 1371
793 | isrv local volume Property of class: disk System Events : Disk-Folder-File Suite 1372
794 | isss stored stream Property of class: QuickTime data System Events : QuickTime File Suite 1373
795 | istd startup Property of class: disk Finder : Containers and folders 1374
796 | istd startup Property of class: disk System Events : Disk-Folder-File Suite 1375
797 | isto instead of Parameter of command: Call•subroutine AppleScript Language 1376
798 | iszm zoomable Property of class: window AppleScript Language 1377
799 | iszm zoomable Property of class: window Cocoa Scripting : Standard Suite 1379
800 | iszm zoomable Property of class: window Finder : Window classes 1380
801 | ital italic Enumeration AppleScript Language 1382
802 | itxt international text Class AppleScript Language 1390
803 | iwnd information window Class Finder : Window classes 1391
804 | iwnd information window Property of class: item Finder : Finder items 1392
805 | jan January Class AppleScript Language 1393
806 | Jdoc music folder Property of class: application System Events : System Events Suite 1394
807 | JPEG JPEG picture Class AppleScript Language 1395
808 | Jrnl journaling enabled Property of class: disk Finder : Containers and folders 1396
809 | jul July Class AppleScript Language 1397
810 | jun June Class AppleScript Language 1398
811 | Kact of action type Parameter of command: handle CGI request Standard Additions : Internet Suite 1402
812 | Kapt using action Parameter of command: handle CGI request Standard Additions : Internet Suite 1403
813 | kchn keychain folder Enumeration Standard Additions : File Commands 1404
814 | Kcid with connection ID Parameter of command: handle CGI request Standard Additions : Internet Suite 1405
815 | Kcip from client IP address Parameter of command: handle CGI request Standard Additions : Internet Suite 1406
816 | Kclk caps lock down Enumeration AppleScript Language 1407
817 | Kcmd command down Enumeration AppleScript Language 1408
818 | Kcmd command down Enumeration System Events : Processes Suite 1409
819 | kcod key code Command System Events : Processes Suite 1410
820 | Kctl control down Enumeration AppleScript Language 1411
821 | Kctl control down Enumeration System Events : Processes Suite 1412
822 | keyF key down Deprecated terminology System Events : Hidden Suite 1421
823 | keyU key up Deprecated terminology System Events : Hidden Suite 1426
824 | kfil in Parameter of command: save AppleScript Language 1429
825 | kfil in Parameter of command: save Cocoa Scripting : Standard Suite 1430
826 | kfil saving in Parameter of command: close AppleScript Language 1431
827 | kfil saving in Parameter of command: close Cocoa Scripting : Standard Suite 1432
828 | kfor searching for Parameter of command: handle CGI request Standard Additions : Internet Suite 1433
829 | kfrm reference form Class AppleScript Language 1434
830 | kfrm reference forms Class AppleScript Language 1435
831 | Kfrq with full request Parameter of command: handle CGI request Standard Additions : Internet Suite 1436
832 | kgrm kilograms Class AppleScript Language 1437
833 | kina arranged by kind Enumeration Finder : Enumerations 1438
834 | kind kind Enumeration Finder : Enumerations 1439
835 | kind kind Property of class: alias System Events : Disk-Folder-File Suite 1440
836 | kind kind Property of class: file System Events : Disk-Folder-File Suite 1441
837 | kind kind Property of class: file information Standard Additions : File Commands 1442
838 | kind kind Property of class: FTP item Standard Additions : Internet Suite 1443
839 | kind kind Property of class: item Finder : Finder items 1444
840 | kind kind Property of class: login item System Events : Login Items Suite 1445
841 | kind kind Property of class: property list item System Events : Property List Suite 1446
842 | kind kind Property of class: track System Events : QuickTime File Suite 1447
843 | kknd key kind Property of class: keystroke AppleScript Language 1448
844 | kMod modifiers Property of class: keystroke AppleScript Language 1449
845 | kMsg key Property of class: keystroke AppleScript Language 1450
846 | kmtr kilometers Class AppleScript Language 1451
847 | kmtr kilometres Class AppleScript Language 1452
848 | kocl each Parameter of command: count AppleScript Language 1454
849 | kocl each Parameter of command: count Cocoa Scripting : Standard Suite 1455
850 | kocl each Parameter of command: count Finder : Standard Suite 1456
851 | kocl new Parameter of command: make AppleScript Language 1457
852 | kocl new Parameter of command: make Cocoa Scripting : Standard Suite 1458
853 | kocl new Parameter of command: make Finder : Standard Suite 1459
854 | Kopt option down Enumeration AppleScript Language 1460
855 | Kopt option down Enumeration System Events : Processes Suite 1461
856 | kprs keystroke Class AppleScript Language 1462
857 | kprs keystroke Command System Events : Processes Suite 1463
858 | kprs keystrokes Class AppleScript Language 1464
859 | Ksft shift down Enumeration AppleScript Language 1465
860 | Ksft shift down Enumeration System Events : Processes Suite 1466
861 | l8mk large 8 bit mask Property of class: icon family Finder : Type Definitions 1467
862 | laba arranged by label Enumeration Finder : Enumerations 1468
863 | labi label index Enumeration Finder : Enumerations 1471
864 | labi label index Property of class: item Finder : Finder items 1472
865 | lact attached scripts Command System Events : Folder Actions Suite 1473
866 | laun launch URL Enumeration Standard Additions : Internet Suite 1476
867 | laun launcher items folder Enumeration Standard Additions : File Commands 1477
868 | laun launcher items folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 1478
869 | lbot bottom Enumeration Finder : Enumerations 1481
870 | lbs pounds Class AppleScript Language 1482
871 | ldsa host name Property of class: system information Standard Additions : Miscellaneous Commands 1483
872 | ldt date Class AppleScript Language 1484
873 | ldt dates Class AppleScript Language 1485
874 | left left Enumeration AppleScript Language 1491
875 | leng length Property of class: linked list AppleScript Language 1492
876 | leng length Property of class: list AppleScript Language 1493
877 | leng length Property of class: vector AppleScript Language 1494
878 | lfdr list folder Command Standard Additions : File Commands 1499
879 | lfiv invisibles Parameter of command: choose file Standard Additions : User Interaction 1500
880 | lfiv invisibles Parameter of command: choose folder Standard Additions : User Interaction 1501
881 | lfiv invisibles Parameter of command: list folder Standard Additions : File Commands 1502
882 | lfpt long fixed point Class AppleScript Language 1503
883 | lfrc long fixed rectangle Class AppleScript Language 1504
884 | lfxd long fixed Class AppleScript Language 1505
885 | lgic large Enumeration Finder : Enumerations 1506
886 | lgic large icon Enumeration Finder : Enumerations 1507
887 | list list Class AppleScript Language 1512
888 | list list Class System Events : Processes Suite 1513
889 | list lists Class AppleScript Language 1514
890 | list lists Class System Events : Processes Suite 1515
891 | litr liters Class AppleScript Language 1516
892 | litr litres Class AppleScript Language 1517
893 | llst linked list Class AppleScript Language 1518
894 | llst linked lists Class AppleScript Language 1519
895 | load load script Command Standard Additions : Scripting Commands 1525
896 | locS localized string Command Standard Additions : String Commands 1536
897 | log0 stop log Command AppleScript Language 1540
898 | log1 start log Command AppleScript Language 1541
899 | logi login item Class System Events : Login Items Suite 1542
900 | logi login items Class System Events : Login Items Suite 1543
901 | logo log out Command System Events : Power Suite 1544
902 | long integer Class AppleScript Language 1545
903 | long integers Class AppleScript Language 1546
904 | loop looping Property of class: QuickTime data System Events : QuickTime File Suite 1549
905 | lowc all lowercase Enumeration AppleScript Language 1550
906 | lpnt long point Class AppleScript Language 1551
907 | lpos label position Property of class: icon view options Finder : Type Definitions 1552
908 | lr list or record Class AppleScript Language 1553
909 | lrct long rectangle Class AppleScript Language 1554
910 | lrgt right Enumeration Finder : Enumerations 1555
911 | lrs list, record or text Class AppleScript Language 1556
912 | ls list or string Class AppleScript Language 1557
913 | lsvw list view Enumeration Finder : Enumerations 1558
914 | lvcl column Class Finder : Type Definitions 1560
915 | lvcl columns Class Finder : Type Definitions 1561
916 | lvis icon size Property of class: icon view options Finder : Type Definitions 1562
917 | lvis icon size Property of class: list view options Finder : Type Definitions 1563
918 | lvol list disks Command Standard Additions : File Commands 1564
919 | lvop list view options Class Finder : Type Definitions 1565
920 | lvop list view options Property of class: Finder window Finder : Window classes 1566
921 | lvop list view options Property of class: preferences Finder : Type Definitions 1567
922 | lwcl collating Property of class: print settings Cocoa Scripting : Type Definitions 1568
923 | lwcp copies Property of class: print settings Cocoa Scripting : Type Definitions 1569
924 | lwdt detailed Enumeration Cocoa Scripting : Type Definitions 1570
925 | lweh error handling Property of class: print settings Cocoa Scripting : Type Definitions 1571
926 | lwfp starting page Property of class: print settings Cocoa Scripting : Type Definitions 1572
927 | lwla pages across Property of class: print settings Cocoa Scripting : Type Definitions 1573
928 | lwld pages down Property of class: print settings Cocoa Scripting : Type Definitions 1574
929 | lwlp ending page Property of class: print settings Cocoa Scripting : Type Definitions 1575
930 | lwnd clipping window Class Finder : Window classes 1576
931 | lwnd clipping window Property of class: clipping Finder : Files 1577
932 | lwnd clipping windows Class Finder : Window classes 1578
933 | lwst standard Enumeration Cocoa Scripting : Type Definitions 1579
934 | mach machine Class AppleScript Language 1580
935 | mach machines Class AppleScript Language 1581
936 | macs system folder Enumeration Standard Additions : File Commands 1583
937 | macs system folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 1584
938 | magn unsigned integer Class AppleScript Language 1586
939 | mail mail URL Enumeration Standard Additions : Internet Suite 1589
940 | mar March Class AppleScript Language 1592
941 | maxV maximum value Property of class: UI element System Events : Processes Suite 1603
942 | may May Class AppleScript Language 1605
943 | mbar menu bar Class System Events : Processes Suite 1606
944 | mbar menu bars Class System Events : Processes Suite 1607
945 | mbox mailbox URL Enumeration Standard Additions : Internet Suite 1608
946 | mbri menu bar item Class System Events : Processes Suite 1609
947 | mbri menu bar items Class System Events : Processes Suite 1610
948 | mdcr creation time Property of class: QuickTime data System Events : QuickTime File Suite 1611
949 | mdcr creation time Property of class: track System Events : QuickTime File Suite 1612
950 | mdoc movies folder Enumeration Standard Additions : File Commands 1613
951 | mdoc movies folder Property of class: application System Events : System Events Suite 1614
952 | mdoc movies folder Property of class: user domain object System Events : Disk-Folder-File Suite 1615
953 | mdta arranged by modification date Enumeration Finder : Enumerations 1616
954 | mdtm modification time Property of class: QuickTime data System Events : QuickTime File Suite 1617
955 | mdtm modification time Property of class: track System Events : QuickTime File Suite 1618
956 | menB menu button Class System Events : Processes Suite 1620
957 | menB menu buttons Class System Events : Processes Suite 1621
958 | menE menu Class System Events : Processes Suite 1623
959 | menE menus Class System Events : Processes Suite 1628
960 | menI menu item Class System Events : Processes Suite 1630
961 | menI menu items Class System Events : Processes Suite 1632
962 | mesS message Parameter of command: display alert Standard Additions : User Interaction 1634
963 | mess message URL Enumeration Standard Additions : Internet Suite 1635
964 | meth using access method Parameter of command: handle CGI request Standard Additions : Internet Suite 1636
965 | metr meters Class AppleScript Language 1637
966 | metr metres Class AppleScript Language 1638
967 | miic mini Enumeration Finder : Enumerations 1641
968 | mile miles Class AppleScript Language 1642
969 | min minutes Property of class: application AppleScript Language 1643
970 | min minutes Property of class: date AppleScript Language 1644
971 | minW minimum value Property of class: UI element System Events : Processes Suite 1655
972 | mLoc machine location Class AppleScript Language 1659
973 | mlsl multiple selections allowed Parameter of command: choose application Standard Additions : User Interaction 1660
974 | mlsl multiple selections allowed Parameter of command: choose file Standard Additions : User Interaction 1661
975 | mlsl multiple selections allowed Parameter of command: choose folder Standard Additions : User Interaction 1662
976 | mlsl multiple selections allowed Parameter of command: choose from list Standard Additions : User Interaction 1663
977 | mnfo shows item info Property of class: icon view options Finder : Type Definitions 1664
978 | mnth month Class AppleScript Language 1668
979 | mnth month Property of class: date AppleScript Language 1669
980 | mnth months Class AppleScript Language 1670
981 | mod mod Command AppleScript Language 1672
982 | mon Monday Class AppleScript Language 1679
983 | movd movie data Class System Events : Movie File Suite 1687
984 | move move Command AppleScript Language 1688
985 | move move Command Cocoa Scripting : Standard Suite 1689
986 | move move Command Finder : Standard Suite 1690
987 | move move Command System Events : Disk-Folder-File Suite 1691
988 | movf movie file Class System Events : Movie File Suite 1693
989 | movf movie files Class System Events : Movie File Suite 1694
990 | mpnl Memory panel Enumeration Finder : Enumerations 1703
991 | mprt minimum size Property of class: application file Finder : Files 1704
992 | msng missing value Class AppleScript Language 1705
993 | msng missing values Class AppleScript Language 1706
994 | mult multi URL Enumeration Standard Additions : Internet Suite 1707
995 | mute output muted Parameter of command: set volume Standard Additions : Miscellaneous Commands 1708
996 | mute output muted Property of class: volume settings Standard Additions : Miscellaneous Commands 1709
997 | mvis reveal Command Finder : Finder items 1711
998 | mvol mount volume Command Standard Additions : File Commands 1712
999 | mvpl positioned at Parameter of command: move Finder : Standard Suite 1713
1000 | nama arranged by name Enumeration Finder : Enumerations 1714
1001 | name named Enumeration AppleScript Language 1715
1002 | narr not arranged Enumeration Finder : Enumerations 1716
1003 | nd number or date Class AppleScript Language 1720
1004 | ndim natural dimensions Property of class: movie data System Events : Movie File Suite 1721
1005 | nds number, date or text Class AppleScript Language 1722
1006 | nec? necessity Parameter of command: update Finder : Finder items 1723
1007 | neg negate Command AppleScript Language 1726
1008 | news news URL Enumeration Standard Additions : Internet Suite 1728
1009 | nfo4 info for Command Standard Additions : File Commands 1732
1010 | nmbr number Class AppleScript Language 1733
1011 | nmbr numbers Class AppleScript Language 1734
1012 | nmwr for Parameter of command: write Standard Additions : File Read/Write 1735
1013 | nmxt name extension Property of class: file information Standard Additions : File Commands 1736
1014 | nmxt name extension Property of class: item Finder : Finder items 1737
1015 | nntp nntp URL Enumeration Standard Additions : Internet Suite 1738
1016 | no no Enumeration AppleScript Language 1745
1017 | no no Enumeration Cocoa Scripting : Standard Suite 1746
1018 | no no Enumeration Standard Additions : Scripting Commands 1747
1019 | none none Enumeration Finder : Enumerations 1750
1020 | noop launch Command AppleScript Language 1751
1021 | norm normal Enumeration System Events : QuickTime File Suite 1752
1022 | NOT not Command AppleScript Language 1754
1023 | nov November Class AppleScript Language 1756
1024 | npnl Name & Extension panel Enumeration Finder : Enumerations 1757
1025 | ns number or string Class AppleScript Language 1758
1026 | ntoc ASCII character Command Standard Additions : String Commands 1762
1027 | null null Class AppleScript Language 1765
1028 | nume numeric strings Enumeration AppleScript Language 1766
1029 | nwfl choose file name Command Standard Additions : User Interaction 1770
1030 | oapp run Command AppleScript Language 1771
1031 | obj reference Class AppleScript Language 1772
1032 | obj references Class AppleScript Language 1773
1033 | oct October Class AppleScript Language 1776
1034 | oded editors Enumeration Standard Additions : File Commands 1777
1035 | oded editors folder Enumeration Standard Additions : File Commands 1778
1036 | odoc open Command AppleScript Language 1779
1037 | odoc open Command Cocoa Scripting : Standard Suite 1780
1038 | odoc open Command Finder : Standard Suite 1781
1039 | odoc open Command System Events : Disk-Folder-File Suite 1782
1040 | odst stationery Enumeration Standard Additions : File Commands 1783
1041 | odst stationery folder Enumeration Standard Additions : File Commands 1784
1042 | offs offset Command Standard Additions : String Commands 1793
1043 | offs start time Property of class: track System Events : QuickTime File Suite 1794
1044 | ofst off styles Property of class: text style info AppleScript Language 1795
1045 | okbt OK button name Parameter of command: choose from list Standard Additions : User Interaction 1796
1046 | on on Parameter of command: Call•subroutine AppleScript Language 1806
1047 | onst on styles Property of class: text style info AppleScript Language 1808
1048 | onto onto Parameter of command: Call•subroutine AppleScript Language 1809
1049 | open open for access Command Standard Additions : File Read/Write 1817
1050 | OR or Command AppleScript Language 1821
1051 | orie orientation Property of class: UI element System Events : Processes Suite 1822
1052 | orig original item Property of class: alias file Finder : Files 1823
1053 | outl outline Class System Events : Processes Suite 1841
1054 | outl outline Enumeration AppleScript Language 1842
1055 | outl outlines Class System Events : Processes Suite 1843
1056 | outo out of Parameter of command: Call•subroutine AppleScript Language 1844
1057 | ouvl output volume Parameter of command: set volume Standard Additions : Miscellaneous Commands 1847
1058 | ouvl output volume Property of class: volume settings Standard Additions : Miscellaneous Commands 1848
1059 | over over Parameter of command: Call•subroutine AppleScript Language 1849
1060 | ownr owner privileges Property of class: item Finder : Finder items 1850
1061 | ozs ounces Class AppleScript Language 1851
1062 | pack package Class Finder : Files 1852
1063 | pack packages Class Finder : Files 1853
1064 | padv Advanced Preferences panel Enumeration Finder : Enumerations 1855
1065 | pALL properties Property of class: FTP item Standard Additions : Internet Suite 1857
1066 | pALL properties Property of class: Internet address Standard Additions : Internet Suite 1858
1067 | pALL properties Property of class: item Cocoa Scripting : Standard Suite 1859
1068 | pALL properties Property of class: item Finder : Finder items 1860
1069 | pALL properties Property of class: URL Standard Additions : Internet Suite 1861
1070 | pALL properties Property of class: web page Standard Additions : Internet Suite 1862
1071 | pALL properties Property of class: window Finder : Window classes 1863
1072 | panl current panel Property of class: information window Finder : Window classes 1866
1073 | panl current panel Property of class: preferences window Finder : Window classes 1867
1074 | pare parent Property of class: script AppleScript Language 1871
1075 | PASS with password Parameter of command: mount volume Standard Additions : File Commands 1881
1076 | pass using password Parameter of command: handle CGI request Standard Additions : Internet Suite 1882
1077 | pbnd bounds Property of class: item Finder : Finder items 1887
1078 | pbnd bounds Property of class: movie data System Events : Movie File Suite 1888
1079 | pbnd bounds Property of class: window AppleScript Language 1890
1080 | pbnd bounds Property of class: window Cocoa Scripting : Standard Suite 1892
1081 | pbnd bounds Property of class: window Finder : Window classes 1893
1082 | pcap application process Class Finder : Legacy suite 1894
1083 | pcap application process Class System Events : Processes Suite 1895
1084 | pcap application processes Class Finder : Legacy suite 1896
1085 | pcap application processes Class System Events : Processes Suite 1897
1086 | pcda desk accessory process Class Finder : Legacy suite 1898
1087 | pcda desk accessory process Class System Events : Processes Suite 1899
1088 | pcda desk accessory processes Class Finder : Legacy suite 1900
1089 | pcda desk accessory processes Class System Events : Processes Suite 1901
1090 | pcli clipboard Property of class: application AppleScript Language 1902
1091 | pcli clipboard Property of class: application Finder : Finder Basics 1903
1092 | pClp set the clipboard to Command Standard Additions : Clipboard Commands 1904
1093 | pcls class Class AppleScript Language 1905
1094 | pcls class Property of class: item Cocoa Scripting : Standard Suite 1906
1095 | pcls class Property of class: item Finder : Finder items 1907
1096 | pcls class Property of class: UI element System Events : Processes Suite 1908
1097 | pcls classes Class AppleScript Language 1909
1098 | pcmp computer container Property of class: application Finder : Finder Basics 1910
1099 | pcnt contents Property of class: audio file System Events : Audio File Suite 1911
1100 | pcnt contents Property of class: movie file System Events : Movie File Suite 1918
1101 | pcnt contents Property of class: property list file System Events : Property List Suite 1921
1102 | pcnt contents Property of class: QuickTime file System Events : QuickTime File Suite 1922
1103 | pcnt contents Property of class: selection-object AppleScript Language 1923
1104 | pcnt contents Property of class: XML file System Events : XML Suite 1926
1105 | pdhd desktop shows hard disks Property of class: preferences Finder : Type Definitions 1927
1106 | pdim dimensions Property of class: track System Events : QuickTime File Suite 1928
1107 | pdlg print dialog Parameter of command: print Cocoa Scripting : Standard Suite 1929
1108 | pDNS DNS form Property of class: Internet address Standard Additions : Internet Suite 1930
1109 | pdoc pictures folder Enumeration Standard Additions : File Commands 1931
1110 | pdoc pictures folder Property of class: application System Events : System Events Suite 1932
1111 | pdoc pictures folder Property of class: user domain object System Events : Disk-Folder-File Suite 1933
1112 | pdoc print Command AppleScript Language 1934
1113 | pdoc print Command Cocoa Scripting : Standard Suite 1935
1114 | pdoc print Command Finder : Standard Suite 1936
1115 | pdrm desktop shows removable media Property of class: preferences Finder : Type Definitions 1937
1116 | pdsv desktop shows connected servers Property of class: preferences Finder : Type Definitions 1938
1117 | pedu editable URL Parameter of command: choose URL Standard Additions : User Interaction 1939
1118 | perf perform Command System Events : Processes Suite 1941
1119 | perm write permission Parameter of command: open for access Standard Additions : File Read/Write 1942
1120 | pexa expandable Property of class: container Finder : Containers and folders 1944
1121 | pexc completely expanded Property of class: container Finder : Containers and folders 1945
1122 | pexp expanded Enumeration AppleScript Language 1946
1123 | pexp expanded Property of class: container Finder : Containers and folders 1947
1124 | pfrp Finder preferences Property of class: application Finder : Finder Basics 1948
1125 | pgnp General Preferences panel Enumeration Finder : Enumerations 1949
1126 | phys physical size Property of class: disk item System Events : Disk-Folder-File Suite 1951
1127 | phys physical size Property of class: item Finder : Finder items 1952
1128 | phys size Enumeration Finder : Enumerations 1953
1129 | pi pi Property of class: application AppleScript Language 1954
1130 | picd picture CD appeared Command Digital Hub OSAX : Digital Hub Actions 1955
1131 | pick pick Deprecated terminology System Events : Hidden Suite 1956
1132 | picp picture path Property of class: user System Events : Accounts Suite 1957
1133 | PICT picture Class AppleScript Language 1958
1134 | PICT pictures Class AppleScript Language 1959
1135 | pidx index Property of class: column Finder : Type Definitions 1960
1136 | pidx index Property of class: item Finder : Finder items 1961
1137 | pidx index Property of class: label Finder : Type Definitions 1962
1138 | pidx index Property of class: window AppleScript Language 1963
1139 | pidx index Property of class: window Finder : Window classes 1965
1140 | pidx index Property of class: window System Events : Standard Suite 1966
1141 | pinf type property info Class AppleScript Language 1967
1142 | pins insertion location Property of class: application Finder : Finder Basics 1968
1143 | pipd dotted decimal form Property of class: Internet address Standard Additions : Internet Suite 1969
1144 | pisf frontmost Property of class: application AppleScript Language 1970
1145 | pisf frontmost Property of class: application Cocoa Scripting : Standard Suite 1972
1146 | pisf frontmost Property of class: application Finder : Finder Basics 1973
1147 | pisf frontmost Property of class: process Finder : Legacy suite 1974
1148 | pisf frontmost Property of class: process System Events : Processes Suite 1975
1149 | pjst justification Property of class: line AppleScript Language 1976
1150 | pkgf package folder Property of class: disk item System Events : Disk-Folder-File Suite 1977
1151 | pklg Languages panel Enumeration Finder : Enumerations 1978
1152 | pkpg Plugins panel Enumeration Finder : Enumerations 1979
1153 | plan plain Enumeration AppleScript Language 1981
1154 | plbp Label Preferences panel Enumeration Finder : Enumerations 1984
1155 | plcd language code Property of class: writing code info AppleScript Language 1985
1156 | plif property list file Class System Events : Property List Suite 1987
1157 | plif property list files Class System Events : Property List Suite 1988
1158 | plii property list item Class System Events : Property List Suite 1989
1159 | plii property list items Class System Events : Property List Suite 1990
1160 | plst with parameters Parameter of command: run script Standard Additions : Scripting Commands 1992
1161 | pmin type parameter info Class AppleScript Language 1996
1162 | pmnd miniaturized Property of class: window Cocoa Scripting : Standard Suite 1997
1163 | pmod modal Property of class: window AppleScript Language 1998
1164 | pmod modal Property of class: window Cocoa Scripting : Standard Suite 2000
1165 | pmod modal Property of class: window Finder : Window classes 2001
1166 | pmss slide show Enumeration System Events : QuickTime File Suite 2002
1167 | pnam name Enumeration Finder : Enumerations 2003
1168 | pnam name Property of class: action System Events : Processes Suite 2004
1169 | pnam name Property of class: annotation System Events : QuickTime File Suite 2005
1170 | pnam name Property of class: application AppleScript Language 2006
1171 | pnam name Property of class: application Cocoa Scripting : Standard Suite 2008
1172 | pnam name Property of class: application Finder : Finder Basics 2009
1173 | pnam name Property of class: attribute System Events : Processes Suite 2010
1174 | pnam name Property of class: column Finder : Type Definitions 2011
1175 | pnam name Property of class: disk item System Events : Disk-Folder-File Suite 2015
1176 | pnam name Property of class: document Cocoa Scripting : Standard Suite 2017
1177 | pnam name Property of class: domain System Events : Disk-Folder-File Suite 2018
1178 | pnam name Property of class: file information Standard Additions : File Commands 2019
1179 | pnam name Property of class: folder action System Events : Folder Actions Suite 2020
1180 | pnam name Property of class: FTP item Standard Additions : Internet Suite 2021
1181 | pnam name Property of class: item Finder : Finder items 2023
1182 | pnam name Property of class: item System Events : Disk-Folder-File Suite 2024
1183 | pnam name Property of class: label Finder : Type Definitions 2025
1184 | pnam name Property of class: login item System Events : Login Items Suite 2026
1185 | pnam name Property of class: process Finder : Legacy suite 2028
1186 | pnam name Property of class: process System Events : Processes Suite 2029
1187 | pnam name Property of class: property list item System Events : Property List Suite 2030
1188 | pnam name Property of class: script AppleScript Language 2031
1189 | pnam name Property of class: script System Events : Folder Actions Suite 2032
1190 | pnam name Property of class: text flow AppleScript Language 2033
1191 | pnam name Property of class: track System Events : QuickTime File Suite 2034
1192 | pnam name Property of class: UI element System Events : Processes Suite 2035
1193 | pnam name Property of class: URL Standard Additions : Internet Suite 2036
1194 | pnam name Property of class: user System Events : Accounts Suite 2037
1195 | pnam name Property of class: web page Standard Additions : Internet Suite 2038
1196 | pnam name Property of class: window Cocoa Scripting : Standard Suite 2039
1197 | pnam name Property of class: window Finder : Window classes 2040
1198 | pnam name Property of class: XML attribute System Events : XML Suite 2041
1199 | pnam name Property of class: XML data System Events : XML Suite 2042
1200 | pnam name Property of class: XML element System Events : XML Suite 2043
1201 | pnwt new window target Property of class: preferences Finder : Type Definitions 2044
1202 | pocv new windows open in column view Property of class: preferences Finder : Type Definitions 2045
1203 | ponw folders open in new windows Property of class: preferences Finder : Type Definitions 2046
1204 | popB pop up button Class System Events : Processes Suite 2048
1205 | popB pop up buttons Class System Events : Processes Suite 2049
1206 | posn position Property of class: item Finder : Finder items 2053
1207 | posn position Property of class: UI element System Events : Processes Suite 2054
1208 | posn position Property of class: window Finder : Window classes 2057
1209 | post with posted data Parameter of command: handle CGI request Standard Additions : Internet Suite 2058
1210 | posx POSIX path Property of class: disk item System Events : Disk-Folder-File Suite 2059
1211 | posx POSIX path Property of class: script System Events : Folder Actions Suite 2060
1212 | ppcb choose application Command Standard Additions : User Interaction 2061
1213 | ppdf printer descriptions Enumeration Standard Additions : File Commands 2062
1214 | ppdf printer descriptions folder Enumeration Standard Additions : File Commands 2063
1215 | ppor port Property of class: Internet address Standard Additions : Internet Suite 2064
1216 | ppth path Property of class: disk item System Events : Disk-Folder-File Suite 2066
1217 | ppth path Property of class: document Cocoa Scripting : Standard Suite 2068
1218 | ppth path Property of class: folder action System Events : Folder Actions Suite 2069
1219 | ppth path Property of class: login item System Events : Login Items Suite 2070
1220 | ppth path Property of class: script System Events : Folder Actions Suite 2071
1221 | prcs process Class Finder : Legacy suite 2073
1222 | prcs process Class System Events : Processes Suite 2074
1223 | prcs processes Class Finder : Legacy suite 2075
1224 | prcs processes Class System Events : Processes Suite 2076
1225 | prdp print depth Property of class: application AppleScript Language 2078
1226 | prdt with properties Parameter of command: duplicate AppleScript Language 2079
1227 | prdt with properties Parameter of command: duplicate Cocoa Scripting : Standard Suite 2080
1228 | prdt with properties Parameter of command: make AppleScript Language 2081
1229 | prdt with properties Parameter of command: make Cocoa Scripting : Standard Suite 2082
1230 | prdt with properties Parameter of command: make Finder : Standard Suite 2083
1231 | prdt with properties Parameter of command: open Finder : Standard Suite 2084
1232 | prdt with properties Parameter of command: print Cocoa Scripting : Standard Suite 2085
1233 | prdt with properties Parameter of command: print Finder : Standard Suite 2086
1234 | pref preferences Enumeration Standard Additions : File Commands 2090
1235 | pref preferences folder Enumeration Standard Additions : File Commands 2091
1236 | pref preferences folder Property of class: application System Events : System Events Suite 2092
1237 | pref preferences folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 2093
1238 | pref preferences folder Property of class: domain System Events : Disk-Folder-File Suite 2094
1239 | prep preposition Class AppleScript Language 2095
1240 | prep prepositions Class AppleScript Language 2096
1241 | prfr preferred rate Property of class: QuickTime data System Events : QuickTime File Suite 2103
1242 | prfv preferred volume Property of class: QuickTime data System Events : QuickTime File Suite 2104
1243 | prln print length Property of class: application AppleScript Language 2106
1244 | prmd presentation mode Property of class: QuickTime data System Events : QuickTime File Suite 2108
1245 | prmp with prompt Parameter of command: choose application Standard Additions : User Interaction 2109
1246 | prmp with prompt Parameter of command: choose file Standard Additions : User Interaction 2110
1247 | prmp with prompt Parameter of command: choose folder Standard Additions : User Interaction 2111
1248 | prmp with prompt Parameter of command: choose from list Standard Additions : User Interaction 2112
1249 | prmp with prompt Parameter of command: choose remote application Standard Additions : User Interaction 2113
1250 | prmt with prompt Parameter of command: choose file name Standard Additions : User Interaction 2114
1251 | prnt printmonitor Enumeration Standard Additions : File Commands 2115
1252 | prnt printmonitor folder Enumeration Standard Additions : File Commands 2116
1253 | proI progress indicator Class System Events : Processes Suite 2121
1254 | proI progress indicators Class System Events : Processes Suite 2123
1255 | prop properties Class AppleScript Language 2125
1256 | prop property Class AppleScript Language 2126
1257 | prsz presentation size Property of class: QuickTime data System Events : QuickTime File Suite 2130
1258 | prsz resizable Property of class: window AppleScript Language 2132
1259 | prsz resizable Property of class: window Cocoa Scripting : Standard Suite 2134
1260 | prsz resizable Property of class: window Finder : Window classes 2135
1261 | prvw shows icon preview Property of class: icon view options Finder : Type Definitions 2138
1262 | psbr Call•subroutine Command AppleScript Language 2139
1263 | pscd script code Property of class: writing code info AppleScript Language 2140
1264 | psct writing code Class AppleScript Language 2141
1265 | psct writing code Property of class: text AppleScript Language 2142
1266 | pset print settings Class Cocoa Scripting : Type Definitions 2143
1267 | psid Sidebar Preferences panel Enumeration Finder : Enumerations 2144
1268 | psin in Parameter of command: offset Standard Additions : String Commands 2145
1269 | psnx all name extensions showing Property of class: preferences Finder : Type Definitions 2146
1270 | psof of Parameter of command: offset Standard Additions : String Commands 2148
1271 | pspd stationery Property of class: alias System Events : Disk-Folder-File Suite 2149
1272 | pspd stationery Property of class: file Finder : Files 2150
1273 | pspd stationery Property of class: file System Events : Disk-Folder-File Suite 2151
1274 | pstr Pascal string Class AppleScript Language 2152
1275 | pstr Pascal strings Class AppleScript Language 2153
1276 | psxf POSIX file Class Standard Additions : Miscellaneous Commands 2154
1277 | psxp POSIX path Property of class: alias AppleScript Language 2155
1278 | psxp POSIX path Property of class: file AppleScript Language 2156
1279 | psxp POSIX path Property of class: file specification AppleScript Language 2157
1280 | psxp POSIX path Property of class: POSIX file Standard Additions : Miscellaneous Commands 2158
1281 | ptit titled Property of class: window AppleScript Language 2159
1282 | ptit titled Property of class: window Cocoa Scripting : Standard Suite 2161
1283 | ptit titled Property of class: window Finder : Window classes 2162
1284 | ptlr partial result Parameter of command: error AppleScript Language 2163
1285 | ptsz size Parameter of command: info for Standard Additions : File Commands 2164
1286 | ptsz size Property of class: attribute run Cocoa Scripting : Text Suite 2165
1287 | ptsz size Property of class: character Cocoa Scripting : Text Suite 2166
1288 | ptsz size Property of class: disk item System Events : Disk-Folder-File Suite 2167
1289 | ptsz size Property of class: file information Standard Additions : File Commands 2168
1290 | ptsz size Property of class: item Finder : Finder items 2169
1291 | ptsz size Property of class: paragraph Cocoa Scripting : Text Suite 2170
1292 | ptsz size Property of class: text AppleScript Language 2171
1293 | ptsz size Property of class: text Cocoa Scripting : Text Suite 2172
1294 | ptsz size Property of class: UI element System Events : Processes Suite 2173
1295 | ptsz size Property of class: word Cocoa Scripting : Text Suite 2176
1296 | ptxe text encoding Property of class: web page Standard Additions : Internet Suite 2177
1297 | pubb public folder Enumeration Standard Additions : File Commands 2178
1298 | pubb public folder Property of class: application System Events : System Events Suite 2179
1299 | pubb public folder Property of class: user domain object System Events : Disk-Folder-File Suite 2180
1300 | punc punctuation Enumeration AppleScript Language 2182
1301 | pURL URL Property of class: FTP item Standard Additions : Internet Suite 2183
1302 | pURL URL Property of class: item Finder : Finder items 2184
1303 | pURL URL Property of class: web page Standard Additions : Internet Suite 2185
1304 | pusc scheme Property of class: URL Standard Additions : Internet Suite 2186
1305 | pusd partition space used Property of class: process Finder : Legacy suite 2187
1306 | pusd partition space used Property of class: process System Events : Processes Suite 2188
1307 | pvew current view Property of class: Finder window Finder : Window classes 2189
1308 | pvis visible Property of class: application Finder : Finder Basics 2191
1309 | pvis visible Property of class: column Finder : Type Definitions 2192
1310 | pvis visible Property of class: disk item System Events : Disk-Folder-File Suite 2193
1311 | pvis visible Property of class: file information Standard Additions : File Commands 2194
1312 | pvis visible Property of class: process Finder : Legacy suite 2195
1313 | pvis visible Property of class: process System Events : Processes Suite 2196
1314 | pvis visible Property of class: window AppleScript Language 2198
1315 | pvis visible Property of class: window Cocoa Scripting : Standard Suite 2200
1316 | pvis visible Property of class: window Finder : Window classes 2201
1317 | pvwd preview duration Property of class: movie data System Events : Movie File Suite 2202
1318 | pvwt preview time Property of class: movie data System Events : Movie File Suite 2203
1319 | pwnd preferences window Class Finder : Window classes 2204
1320 | pzum zoomed Property of class: window AppleScript Language 2206
1321 | pzum zoomed Property of class: window Cocoa Scripting : Standard Suite 2208
1322 | pzum zoomed Property of class: window Finder : Window classes 2209
1323 | qdel quit delay Property of class: application System Events : System Events Suite 2210
1324 | QDpt point Class AppleScript Language 2211
1325 | qdrt bounding rectangle Class AppleScript Language 2212
1326 | qobj class info Command AppleScript Language 2213
1327 | qrts quarts Class AppleScript Language 2214
1328 | Qscr scripting additions folder Property of class: application System Events : System Events Suite 2215
1329 | qtfd QuickTime data Class System Events : QuickTime File Suite 2216
1330 | qtff QuickTime file Class System Events : QuickTime File Suite 2217
1331 | qtff QuickTime files Class System Events : QuickTime File Suite 2218
1332 | quit quit Command AppleScript Language 2219
1333 | quit quit Command Cocoa Scripting : Standard Suite 2220
1334 | quit quit Command Finder : Standard Suite 2221
1335 | quot quote Property of class: application AppleScript Language 2222
1336 | radB radio button Class System Events : Processes Suite 2223
1337 | radB radio buttons Class System Events : Processes Suite 2225
1338 | rand random number Command Standard Additions : Miscellaneous Commands 2227
1339 | rapp reopen Command AppleScript Language 2228
1340 | RApw password Parameter of command: do shell script Standard Additions : Miscellaneous Commands 2229
1341 | RApw password Property of class: URL Standard Additions : Internet Suite 2230
1342 | RAun user name Parameter of command: do shell script Standard Additions : Miscellaneous Commands 2232
1343 | RAun user name Property of class: URL Standard Additions : Internet Suite 2233
1344 | rbfr before Parameter of command: read Standard Additions : File Read/Write 2234
1345 | rdat data Class AppleScript Language 2235
1346 | rdfm from Parameter of command: read Standard Additions : File Read/Write 2237
1347 | rdfr for Parameter of command: read Standard Additions : File Read/Write 2238
1348 | rdto to Parameter of command: read Standard Additions : File Read/Write 2239
1349 | rdut until Parameter of command: read Standard Additions : File Read/Write 2240
1350 | rdwr read write Enumeration Finder : Enumerations 2241
1351 | read read Command Standard Additions : File Read/Write 2242
1352 | read read only Enumeration Finder : Enumerations 2243
1353 | reco record Class AppleScript Language 2244
1354 | reco records Class AppleScript Language 2245
1355 | refn to Parameter of command: write Standard Additions : File Read/Write 2247
1356 | refr referred by Parameter of command: handle CGI request Standard Additions : Internet Suite 2248
1357 | reg? registering applications Parameter of command: update Finder : Finder items 2250
1358 | reli relevance indicator Class System Events : Processes Suite 2255
1359 | reli relevance indicators Class System Events : Processes Suite 2256
1360 | rest rest Property of class: list AppleScript Language 2270
1361 | rest restart Command Finder : Legacy suite 2271
1362 | rest restart Command System Events : Power Suite 2272
1363 | ret return Property of class: application AppleScript Language 2274
1364 | revt accepts remote events Property of class: process Finder : Legacy suite 2276
1365 | revt accepts remote events Property of class: process System Events : Processes Suite 2277
1366 | rght right Enumeration AppleScript Language 2280
1367 | rgrp radio group Class System Events : Processes Suite 2281
1368 | rgrp radio groups Class System Events : Processes Suite 2282
1369 | rmfa remove action from Command System Events : Folder Actions Suite 2295
1370 | rmte application responses Enumeration AppleScript Language 2296
1371 | rndD down Enumeration Standard Additions : Miscellaneous Commands 2298
1372 | rndN to nearest Enumeration Standard Additions : Miscellaneous Commands 2299
1373 | rndS as taught in school Enumeration Standard Additions : Miscellaneous Commands 2300
1374 | rndU up Enumeration Standard Additions : Miscellaneous Commands 2301
1375 | rndZ toward zero Enumeration Standard Additions : Miscellaneous Commands 2302
1376 | role role Property of class: UI element System Events : Processes Suite 2303
1377 | rond round Command Standard Additions : Miscellaneous Commands 2306
1378 | rout routing suppressed Parameter of command: duplicate Finder : Standard Suite 2308
1379 | rout routing suppressed Parameter of command: move Finder : Standard Suite 2309
1380 | rpth path to resource Command Standard Additions : File Commands 2321
1381 | rslt result Property of class: application AppleScript Language 2322
1382 | rtsp streaming multimedia URL Enumeration Standard Additions : Internet Suite 2324
1383 | rtyp as Parameter of command: choose application Standard Additions : User Interaction 2325
1384 | rtyp as Parameter of command: data size AppleScript Language 2326
1385 | rtyp as Parameter of command: data size Finder : Standard Suite 2327
1386 | rtyp as Parameter of command: do shell script Standard Additions : Miscellaneous Commands 2328
1387 | rtyp as Parameter of command: path to Standard Additions : File Commands 2329
1388 | rtyp as Parameter of command: the clipboard Standard Additions : Clipboard Commands 2330
1389 | rvse reverse Property of class: list AppleScript Language 2333
1390 | sat Saturday Class AppleScript Language 2337
1391 | save save Command AppleScript Language 2338
1392 | save save Command Cocoa Scripting : Standard Suite 2339
1393 | savo replacing Parameter of command: store script Standard Additions : Scripting Commands 2340
1394 | savo saving Parameter of command: close AppleScript Language 2341
1395 | savo saving Parameter of command: close Cocoa Scripting : Standard Suite 2342
1396 | savo saving Parameter of command: quit AppleScript Language 2343
1397 | savo saving Parameter of command: quit Cocoa Scripting : Standard Suite 2344
1398 | sbrl subrole Property of class: UI element System Events : Processes Suite 2347
1399 | sbsc subscript Enumeration AppleScript Language 2348
1400 | sbwi sidebar width Property of class: Finder window Finder : Window classes 2349
1401 | scmn script menu enabled Property of class: application System Events : System Events Suite 2351
1402 | scnd seconds Class AppleScript Language 2352
1403 | scnd seconds Property of class: date AppleScript Language 2353
1404 | scnm executing by Parameter of command: handle CGI request Standard Additions : Internet Suite 2354
1405 | scpt script Class AppleScript Language 2355
1406 | scpt script Class System Events : Folder Actions Suite 2356
1407 | scpt scripts Class AppleScript Language 2358
1408 | scpt scripts Class System Events : Folder Actions Suite 2359
1409 | scr$ scripts folder Property of class: domain System Events : Disk-Folder-File Suite 2360
1410 | scrƒ scripts folder Enumeration Standard Additions : File Commands 2361
1411 | scra scroll area Class System Events : Processes Suite 2362
1412 | scra scroll areas Class System Events : Processes Suite 2363
1413 | scrb scroll bar Class System Events : Processes Suite 2365
1414 | scrb scroll bars Class System Events : Processes Suite 2366
1415 | scrQ scripts folder Property of class: application System Events : System Events Suite 2370
1416 | scsy in Parameter of command: run script Standard Additions : Scripting Commands 2376
1417 | sdat shared documents Enumeration Standard Additions : File Commands 2379
1418 | sdat shared documents folder Enumeration Standard Additions : File Commands 2380
1419 | sdev control strip modules Enumeration Standard Additions : File Commands 2381
1420 | sdev control strip modules folder Enumeration Standard Additions : File Commands 2382
1421 | sdev control strip modules folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 2383
1422 | sdoc handle CGI request Command Standard Additions : Internet Suite 2384
1423 | sdsk startup disk Property of class: application Finder : Finder Basics 2385
1424 | sdsk startup disk Property of class: application System Events : System Events Suite 2386
1425 | seed with seed Parameter of command: random number Standard Additions : Miscellaneous Commands 2395
1426 | selE selected Property of class: UI element System Events : Processes Suite 2404
1427 | sele selection Property of class: application AppleScript Language 2405
1428 | sele selection Property of class: application Finder : Finder Basics 2406
1429 | seof set eof Command Standard Additions : File Read/Write 2415
1430 | sep September Class AppleScript Language 2416
1431 | set2 to Parameter of command: set eof Standard Additions : File Read/Write 2422
1432 | setd set Command Cocoa Scripting : Standard Suite 2423
1433 | sf alias or string Class AppleScript Language 2426
1434 | sfsz calculates folder sizes Property of class: list view options Finder : Type Definitions 2427
1435 | sgrp group Class System Events : Processes Suite 2428
1436 | sgrp group Property of class: item Finder : Finder items 2429
1437 | sgrp groups Class System Events : Processes Suite 2430
1438 | shad shadow Enumeration AppleScript Language 2431
1439 | shdf shutdown folder Enumeration Standard Additions : File Commands 2434
1440 | shdf shutdown folder Property of class: Classic domain object System Events : Disk-Folder-File Suite 2435
1441 | shdf shutdown items Enumeration Standard Additions : File Commands 2436
1442 | shdf shutdown items folder Enumeration Standard Additions : File Commands 2437
1443 | shdt short date string Property of class: date AppleScript Language 2438
1444 | sheE sheet Class System Events : Processes Suite 2440
1445 | sheE sheets Class System Events : Processes Suite 2442
1446 | shic shows icon Property of class: column view options Finder : Type Definitions 2445
1447 | shor short Enumeration Standard Additions : File Read/Write 2453
1448 | shor small integer Class AppleScript Language 2454
1449 | shpc showing package contents Parameter of command: choose file Standard Additions : User Interaction 2457
1450 | shpc showing package contents Parameter of command: choose folder Standard Additions : User Interaction 2458
1451 | shpr shows preview column Property of class: column view options Finder : Type Definitions 2459
1452 | shut shut down Command Finder : Legacy suite 2467
1453 | shut shut down Command System Events : Power Suite 2468
1454 | siav AppleScript version Property of class: system information Standard Additions : Miscellaneous Commands 2469
1455 | sibv boot volume Property of class: system information Standard Additions : Miscellaneous Commands 2470
1456 | sicn computer name Property of class: system information Standard Additions : Miscellaneous Commands 2471
1457 | sics CPU speed Property of class: system information Standard Additions : Miscellaneous Commands 2472
1458 | sict CPU type Property of class: system information Standard Additions : Miscellaneous Commands 2473
1459 | siea primary Ethernet address Property of class: system information Standard Additions : Miscellaneous Commands 2475
1460 | sigt system info Command Standard Additions : Miscellaneous Commands 2476
1461 | siid user ID Property of class: system information Standard Additions : Miscellaneous Commands 2477
1462 | siip IPv4 address Property of class: system information Standard Additions : Miscellaneous Commands 2478
1463 | sikv AppleScript Studio version Property of class: system information Standard Additions : Miscellaneous Commands 2479
1464 | siln long user name Property of class: system information Standard Additions : Miscellaneous Commands 2480
1465 | sing small real Class AppleScript Language 2481
1466 | sipm physical memory Property of class: system information Standard Additions : Miscellaneous Commands 2482
1467 | sirr system information Class Standard Additions : Miscellaneous Commands 2483
1468 | sisn short user name Property of class: system information Standard Additions : Miscellaneous Commands 2484
1469 | sisv system version Property of class: system information Standard Additions : Miscellaneous Commands 2485
1470 | site sites folder Enumeration Standard Additions : File Commands 2486
1471 | site sites folder Property of class: application System Events : System Events Suite 2487
1472 | site sites folder Property of class: user domain object System Events : Disk-Folder-File Suite 2488
1473 | siul user locale Property of class: system information Standard Additions : Miscellaneous Commands 2490
1474 | siza arranged by size Enumeration Finder : Enumerations 2491
1475 | slct select Command AppleScript Language 2493
1476 | slct select Command Finder : Standard Suite 2494
1477 | slct select Command System Events : Processes Suite 2495
1478 | slep sleep Command Finder : Legacy suite 2496
1479 | slep sleep Command System Events : Power Suite 2497
1480 | sliI slider Class System Events : Processes Suite 2499
1481 | sliI sliders Class System Events : Processes Suite 2501
1482 | smcp small caps Enumeration AppleScript Language 2505
1483 | smic small Enumeration Finder : Enumerations 2506
1484 | smic small icon Enumeration Finder : Enumerations 2507
1485 | snam using action name Parameter of command: edit action of System Events : Folder Actions Suite 2509
1486 | snam using action name Parameter of command: remove action from System Events : Folder Actions Suite 2510
1487 | snce since Parameter of command: Call•subroutine AppleScript Language 2511
1488 | snd sound Class AppleScript Language 2512
1489 | snd sounds Class AppleScript Language 2514
1490 | snrm normal Enumeration Finder : Enumerations 2516
1491 | snws secure news URL Enumeration Standard Additions : Internet Suite 2517
1492 | sord sort direction Property of class: column Finder : Type Definitions 2521
1493 | SORT sort Command Finder : Finder Basics 2524
1494 | sown owner Property of class: item Finder : Finder items 2531
1495 | spac space Property of class: application AppleScript Language 2532
1496 | spki speakable items Enumeration Standard Additions : File Commands 2534
1497 | spki speakable items folder Property of class: application System Events : System Events Suite 2535
1498 | spki speakable items folder Property of class: domain System Events : Disk-Folder-File Suite 2536
1499 | splg splitter group Class System Events : Processes Suite 2537
1500 | splg splitter groups Class System Events : Processes Suite 2538
1501 | splr splitter Class System Events : Processes Suite 2539
1502 | splr splitters Class System Events : Processes Suite 2540
1503 | spnl Sharing panel Enumeration Finder : Enumerations 2543
1504 | sprf system preferences Enumeration Standard Additions : File Commands 2544
1505 | sprg folders spring open Property of class: preferences Finder : Type Definitions 2545
1506 | sprt suggested size Property of class: application file Finder : Files 2546
1507 | spsc superscript Enumeration AppleScript Language 2547
1508 | sqft square feet Class AppleScript Language 2549
1509 | sqkm square kilometers Class AppleScript Language 2550
1510 | sqkm square kilometres Class AppleScript Language 2551
1511 | sqmi square miles Class AppleScript Language 2552
1512 | sqrm square meters Class AppleScript Language 2553
1513 | sqrm square metres Class AppleScript Language 2554
1514 | sqyd square yards Class AppleScript Language 2555
1515 | srtc sort column Property of class: list view options Finder : Type Definitions 2556
1516 | SRVR on server Parameter of command: mount volume Standard Additions : File Commands 2557
1517 | srvs reversed Enumeration Finder : Enumerations 2558
1518 | stbl settable Property of class: attribute System Events : Processes Suite 2565
1519 | stdf choose file Command Standard Additions : User Interaction 2567
1520 | stfl choose folder Command Standard Additions : User Interaction 2574
1521 | stof saving to Parameter of command: say Standard Additions : User Interaction 2575
1522 | stor store script Command Standard Additions : Scripting Commands 2576
1523 | strk strikethrough Enumeration AppleScript Language 2578
1524 | strq quoted form Property of class: text AppleScript Language 2579
1525 | sttx static text Class System Events : Processes Suite 2580
1526 | sttx static texts Class System Events : Processes Suite 2581
1527 | stvi statusbar visible Property of class: Finder window Finder : Window classes 2582
1528 | stvl set volume Command Standard Additions : Miscellaneous Commands 2583
1529 | STXT styled text Class AppleScript Language 2584
1530 | styl scrap styles Class AppleScript Language 2585
1531 | styl styled Clipboard text Class AppleScript Language 2586
1532 | suin type suite info Class AppleScript Language 2588
1533 | summ summarize Command Standard Additions : String Commands 2589
1534 | sun Sunday Class AppleScript Language 2590
1535 | sutx styled Unicode text Class AppleScript Language 2593
1536 | svnm from server Parameter of command: handle CGI request Standard Additions : Internet Suite 2594
1537 | svpt via port Parameter of command: handle CGI request Standard Additions : Internet Suite 2595
1538 | tab tab Property of class: application AppleScript Language 2599
1539 | tabB table Class System Events : Processes Suite 2600
1540 | tabB tables Class System Events : Processes Suite 2601
1541 | tabg tab group Class System Events : Processes Suite 2616
1542 | tabg tab groups Class System Events : Processes Suite 2617
1543 | tbar tool bar Class System Events : Processes Suite 2644
1544 | tbar tool bars Class System Events : Processes Suite 2645
1545 | tbvi toolbar visible Property of class: Finder window Finder : Window classes 2650
1546 | tdas dash style Class AppleScript Language 2651
1547 | tdfr data format Property of class: track System Events : QuickTime File Suite 2652
1548 | tell tell Command AppleScript Language 2659
1549 | temp temporary items Enumeration Standard Additions : File Commands 2660
1550 | temp temporary items folder Enumeration Standard Additions : File Commands 2661
1551 | temp temporary items folder Property of class: application System Events : System Events Suite 2662
1552 | temp temporary items folder Property of class: user domain object System Events : Disk-Folder-File Suite 2663
1553 | tend end tell Command AppleScript Language 2664
1554 | TEXT plain text Class AppleScript Language 2672
1555 | TEXT string Class AppleScript Language 2673
1556 | TEXT strings Class AppleScript Language 2674
1557 | thgh through Parameter of command: Call•subroutine AppleScript Language 2677
1558 | thru thru Parameter of command: Call•subroutine AppleScript Language 2678
1559 | thu Thursday Class AppleScript Language 2681
1560 | TIFF TIFF picture Class AppleScript Language 2682
1561 | time time Property of class: date AppleScript Language 2685
1562 | titl title Property of class: UI element System Events : Processes Suite 2703
1563 | tlnt telnet URL Enumeration Standard Additions : Internet Suite 2709
1564 | tmsc time scale Property of class: QuickTime data System Events : QuickTime File Suite 2710
1565 | to to Parameter of command: Call•subroutine AppleScript Language 2713
1566 | to to Parameter of command: make Finder : Standard Suite 2714
1567 | to to Parameter of command: random number Standard Additions : Miscellaneous Commands 2715
1568 | tpmm pixel map record Class AppleScript Language 2728
1569 | tr16 RGB16 color Class AppleScript Language 2729
1570 | tr96 RGB96 color Class AppleScript Language 2730
1571 | trak track Class System Events : QuickTime File Suite 2731
1572 | trak tracks Class System Events : QuickTime File Suite 2732
1573 | trot rotation Class AppleScript Language 2737
1574 | trpr target printer Property of class: print settings Cocoa Scripting : Type Definitions 2738
1575 | trsh trash Enumeration Standard Additions : File Commands 2739
1576 | trsh trash Property of class: application Finder : Finder Basics 2740
1577 | trsh trash Property of class: application System Events : System Events Suite 2741
1578 | trsh trash folder Enumeration Standard Additions : File Commands 2742
1579 | true true Enumeration AppleScript Language 2743
1580 | tstr time string Property of class: date AppleScript Language 2746
1581 | tsty text style info Class AppleScript Language 2747
1582 | tsty text style infos Class AppleScript Language 2748
1583 | ttos say Command Standard Additions : User Interaction 2750
1584 | ttrm abort transaction Command System Events : System Events Suite 2751
1585 | ttxt text returned Property of class: dialog reply Standard Additions : User Interaction 2753
1586 | tue Tuesday Class AppleScript Language 2754
1587 | txdl text item delimiters Property of class: application AppleScript Language 2755
1588 | txst style Property of class: text AppleScript Language 2756
1589 | txta text area Class System Events : Processes Suite 2757
1590 | txta text areas Class System Events : Processes Suite 2758
1591 | txtf text field Class System Events : Processes Suite 2759
1592 | txtf text fields Class System Events : Processes Suite 2760
1593 | type type Property of class: track System Events : QuickTime File Suite 2761
1594 | type type class Class AppleScript Language 2762
1595 | uacc user Class System Events : Accounts Suite 2764
1596 | uacc users Class System Events : Accounts Suite 2765
1597 | uiel UI element Class System Events : Processes Suite 2766
1598 | uiel UI elements Class System Events : Processes Suite 2767
1599 | uien UI elements enabled Property of class: application System Events : System Events Suite 2768
1600 | uldp directory server URL Enumeration Standard Additions : Internet Suite 2769
1601 | undl underline Enumeration AppleScript Language 2770
1602 | undr under Parameter of command: Call•subroutine AppleScript Language 2771
1603 | unfs network file system URL Enumeration Standard Additions : Internet Suite 2772
1604 | upop mail server URL Enumeration Standard Additions : Internet Suite 2779
1605 | urdt uses relative dates Property of class: list view options Finder : Type Definitions 2781
1606 | url URL Class Standard Additions : Internet Suite 2782
1607 | url URL Property of class: disk item System Events : Disk-Folder-File Suite 2783
1608 | url? unknown URL Enumeration Standard Additions : Internet Suite 2784
1609 | USER as user name Parameter of command: mount volume Standard Additions : File Commands 2788
1610 | user from user Parameter of command: handle CGI request Standard Additions : Internet Suite 2790
1611 | usin using Parameter of command: open Finder : Standard Suite 2792
1612 | usrs users folder Enumeration Standard Additions : File Commands 2793
1613 | ustl uniform styles Property of class: text AppleScript Language 2796
1614 | uti$ utilities folder Property of class: domain System Events : Disk-Folder-File Suite 2798
1615 | utiƒ utilities folder Enumeration Standard Additions : File Commands 2799
1616 | utid type identifier Property of class: alias System Events : Disk-Folder-File Suite 2800
1617 | utid type identifier Property of class: file System Events : Disk-Folder-File Suite 2801
1618 | utid type identifier Property of class: file information Standard Additions : File Commands 2802
1619 | utiQ utilities folder Property of class: application System Events : System Events Suite 2803
1620 | utxt Unicode text Class AppleScript Language 2804
1621 | vali value indicator Class System Events : Processes Suite 2805
1622 | vali value indicators Class System Events : Processes Suite 2806
1623 | valL value Property of class: attribute System Events : Processes Suite 2811
1624 | valL value Property of class: property list item System Events : Property List Suite 2812
1625 | valL value Property of class: UI element System Events : Processes Suite 2813
1626 | valL value Property of class: XML attribute System Events : XML Suite 2814
1627 | valL value Property of class: XML element System Events : XML Suite 2815
1628 | vcdp video depth Property of class: track System Events : QuickTime File Suite 2817
1629 | vdvd video DVD appeared Command Digital Hub OSAX : Digital Hub Actions 2818
1630 | vect vector Class AppleScript Language 2819
1631 | vect vectors Class AppleScript Language 2820
1632 | ver2 product version Property of class: alias System Events : Disk-Folder-File Suite 2823
1633 | ver2 product version Property of class: application Finder : Finder Basics 2824
1634 | ver2 product version Property of class: file Finder : Files 2825
1635 | ver2 product version Property of class: file System Events : Disk-Folder-File Suite 2826
1636 | vers version Class AppleScript Language 2829
1637 | vers version Enumeration Finder : Enumerations 2830
1638 | vers version Property of class: alias System Events : Disk-Folder-File Suite 2831
1639 | vers version Property of class: application AppleScript Language 2832
1640 | vers version Property of class: application Cocoa Scripting : Standard Suite 2834
1641 | vers version Property of class: application Finder : Finder Basics 2835
1642 | vers version Property of class: file Finder : Files 2836
1643 | vers version Property of class: file System Events : Disk-Folder-File Suite 2837
1644 | visu visual characteristic Property of class: track System Events : QuickTime File Suite 2849
1645 | vlst volume settings Class Standard Additions : Miscellaneous Commands 2850
1646 | VOIC using Parameter of command: say Standard Additions : User Interaction 2851
1647 | volu volume Property of class: disk item System Events : Disk-Folder-File Suite 2853
1648 | volu volume Property of class: folder action System Events : Folder Actions Suite 2854
1649 | vpnl Preview panel Enumeration Finder : Enumerations 2855
1650 | warN warning Enumeration Standard Additions : User Interaction 2857
1651 | warn warns before emptying Property of class: trash-object Finder : Containers and folders 2858
1652 | wed Wednesday Class AppleScript Language 2864
1653 | week weeks Property of class: application AppleScript Language 2865
1654 | wfsp waiting until completion Parameter of command: say Standard Additions : User Interaction 2866
1655 | whit white space Enumeration AppleScript Language 2867
1656 | with with Parameter of command: Call•subroutine AppleScript Language 2889
1657 | wkdy weekday Class AppleScript Language 2896
1658 | wkdy weekday Property of class: date AppleScript Language 2897
1659 | wkdy weekdays Class AppleScript Language 2898
1660 | wout without Parameter of command: Call•subroutine AppleScript Language 2899
1661 | wrat starting at Parameter of command: write Standard Additions : File Read/Write 2901
1662 | wrcd in Parameter of command: class info AppleScript Language 2902
1663 | wrcd in Parameter of command: event info AppleScript Language 2903
1664 | wrcd in Parameter of command: suite info AppleScript Language 2904
1665 | writ write Command Standard Additions : File Read/Write 2905
1666 | writ write only Enumeration Finder : Enumerations 2906
1667 | wshd collapsed Property of class: window Finder : Window classes 2909
1668 | xmla XML attribute Class System Events : XML Suite 2911
1669 | xmla XML attributes Class System Events : XML Suite 2912
1670 | xmld XML data Class System Events : XML Suite 2913
1671 | xmle XML element Class System Events : XML Suite 2914
1672 | xmle XML elements Class System Events : XML Suite 2915
1673 | xmlf XML file Class System Events : XML Suite 2916
1674 | xmlf XML files Class System Events : XML Suite 2917
1675 | yard yards Class AppleScript Language 2918
1676 | year year Property of class: date AppleScript Language 2919
1677 | yes yes Enumeration AppleScript Language 2920
1678 | yes yes Enumeration Cocoa Scripting : Standard Suite 2921
1679 | yes yes Enumeration Standard Additions : Scripting Commands 2922
1680 | ZONE in AppleTalk zone Parameter of command: mount volume Standard Additions : File Commands 2923
1681 | zumf zoomed full size Property of class: window Finder : Window classes 2924
1682 | 0x00000000 stop Enumeration Standard Additions : User Interaction 2925
1683 | 0x00000001 note Enumeration Standard Additions : User Interaction 2926
1684 | 0x00000002 caution Enumeration Standard Additions : User Interaction 2927
1685 | 0x6b732400 return key Enumeration AppleScript Language 2928
1686 | 0x6b733000 tab key Enumeration AppleScript Language 2929
1687 | 0x6b733300 delete key Enumeration AppleScript Language 2930
1688 | 0x6b733500 escape key Enumeration AppleScript Language 2931
1689 | 0x6b734700 clear key Enumeration AppleScript Language 2932
1690 | 0x6b734c00 enter key Enumeration AppleScript Language 2933
1691 | 0x6b736000 F5 key Enumeration AppleScript Language 2934
1692 | 0x6b736100 F6 key Enumeration AppleScript Language 2935
1693 | 0x6b736200 F7 key Enumeration AppleScript Language 2936
1694 | 0x6b736300 F3 key Enumeration AppleScript Language 2937
1695 | 0x6b736400 F8 key Enumeration AppleScript Language 2938
1696 | 0x6b736500 F9 key Enumeration AppleScript Language 2939
1697 | 0x6b736700 F11 key Enumeration AppleScript Language 2940
1698 | 0x6b736900 F13 key Enumeration AppleScript Language 2941
1699 | 0x6b736b00 F14 key Enumeration AppleScript Language 2942
1700 | 0x6b736d00 F10 key Enumeration AppleScript Language 2943
1701 | 0x6b736f00 F12 key Enumeration AppleScript Language 2944
1702 | 0x6b737100 F15 key Enumeration AppleScript Language 2945
1703 | 0x6b737200 help key Enumeration AppleScript Language 2946
1704 | 0x6b737300 home key Enumeration AppleScript Language 2947
1705 | 0x6b737400 page up key Enumeration AppleScript Language 2948
1706 | 0x6b737500 forward del key Enumeration AppleScript Language 2949
1707 | 0x6b737600 F4 key Enumeration AppleScript Language 2950
1708 | 0x6b737700 end key Enumeration AppleScript Language 2951
1709 | 0x6b737800 F2 key Enumeration AppleScript Language 2952
1710 | 0x6b737900 page down key Enumeration AppleScript Language 2953
1711 | 0x6b737a00 F1 key Enumeration AppleScript Language 2954
1712 | 0x6b737b00 left arrow key Enumeration AppleScript Language 2955
1713 | 0x6b737c00 right arrow key Enumeration AppleScript Language 2956
1714 | 0x6b737d00 down arrow key Enumeration AppleScript Language 2957
1715 | 0x6b737e00 up arrow key Enumeration AppleScript Language 2958
1716 |
--------------------------------------------------------------------------------
/docs/CNAME:
--------------------------------------------------------------------------------
1 | applescript.chri.sk
--------------------------------------------------------------------------------
/docs/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-modernist
--------------------------------------------------------------------------------
/scripts/Append PDF Language To Filename.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Append PDF Language To Filename.applescript
--------------------------------------------------------------------------------
/scripts/Create Ad-Hoc Network.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Create Ad-Hoc Network.applescript
--------------------------------------------------------------------------------
/scripts/Finder#Ascend.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Finder#Ascend.applescript
--------------------------------------------------------------------------------
/scripts/Finder#New Text File.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Finder#New Text File.applescript
--------------------------------------------------------------------------------
/scripts/Finder#Paste Clipboard As File.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Finder#Paste Clipboard As File.applescript
--------------------------------------------------------------------------------
/scripts/Finder#Scroll To Top.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Finder#Scroll To Top.applescript
--------------------------------------------------------------------------------
/scripts/Get Calendar Events.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Get Calendar Events.applescript
--------------------------------------------------------------------------------
/scripts/Get Library Handlers.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Get Library Handlers.applescript
--------------------------------------------------------------------------------
/scripts/Get Mouse Position | Identify UI Element.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Get Mouse Position | Identify UI Element.applescript
--------------------------------------------------------------------------------
/scripts/Get Selected Text.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Get Selected Text.applescript
--------------------------------------------------------------------------------
/scripts/Hostnames.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Hostnames.applescript
--------------------------------------------------------------------------------
/scripts/KM#Create Dictionary.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/KM#Create Dictionary.applescript
--------------------------------------------------------------------------------
/scripts/KM#Get Macro Properties.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/KM#Get Macro Properties.applescript
--------------------------------------------------------------------------------
/scripts/KM#Reveal External File.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/KM#Reveal External File.applescript
--------------------------------------------------------------------------------
/scripts/List & Record Printer.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/List & Record Printer.applescript
--------------------------------------------------------------------------------
/scripts/Move Window Left or Right.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Move Window Left or Right.applescript
--------------------------------------------------------------------------------
/scripts/Parse AppleScript Dictionary (SDEF).applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Parse AppleScript Dictionary (SDEF).applescript
--------------------------------------------------------------------------------
/scripts/Quit All Apps.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Quit All Apps.applescript
--------------------------------------------------------------------------------
/scripts/Quit Dock Application.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Quit Dock Application.applescript
--------------------------------------------------------------------------------
/scripts/Screen Capture.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Screen Capture.applescript
--------------------------------------------------------------------------------
/scripts/Terminate Processes.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/Terminate Processes.applescript
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleAllowMixedLocalizations
6 |
7 | CFBundleDevelopmentRegion
8 | English
9 | CFBundleExecutable
10 | applet
11 | CFBundleIconFile
12 | applet
13 | CFBundleIdentifier
14 | chri.sk.URLHandler
15 | CFBundleInfoDictionaryVersion
16 | 6.0
17 | CFBundleName
18 | URL Handler
19 | CFBundlePackageType
20 | APPL
21 | CFBundleShortVersionString
22 | 1.0
23 | CFBundleSignature
24 | aplt
25 | CFBundleURLTypes
26 |
27 |
28 | CFBundleURLName
29 | URL Handler
30 | CFBundleURLSchemes
31 |
32 | km
33 | applescript
34 |
35 |
36 |
37 | LSMinimumSystemVersionByArchitecture
38 |
39 | x86_64
40 | 10.6
41 |
42 | LSRequiresCarbon
43 |
44 | NSHumanReadableCopyright
45 | © CK 2018
46 | WindowState
47 |
48 | bundleDividerCollapsed
49 |
50 | bundlePositionOfDivider
51 | 0.0
52 | dividerCollapsed
53 |
54 | eventLogLevel
55 | 2
56 | name
57 | ScriptWindowState
58 | positionOfDivider
59 | 461
60 | savedFrame
61 | 868 1 542 877 0 0 1440 878
62 | selectedTab
63 | result
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/MacOS/applet:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/URL Handler.app/Contents/MacOS/applet
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/PkgInfo:
--------------------------------------------------------------------------------
1 | APPLaplt
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/Resources/Scripts/URL Parser#applescript.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/URL Handler.app/Contents/Resources/Scripts/URL Parser#applescript.applescript
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/Resources/Scripts/URL Parser#km.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/URL Handler.app/Contents/Resources/Scripts/URL Parser#km.applescript
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/Resources/Scripts/main.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/URL Handler.app/Contents/Resources/Scripts/main.scpt
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/Resources/applet.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/URL Handler.app/Contents/Resources/applet.icns
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/Resources/applet.rsrc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/URL Handler.app/Contents/Resources/applet.rsrc
--------------------------------------------------------------------------------
/scripts/URL Handler.app/Contents/Resources/description.rtfd/TXT.rtf:
--------------------------------------------------------------------------------
1 | {\rtf1\ansi\ansicpg1252\cocoartf1561\cocoasubrtf600
2 | {\fonttbl}
3 | {\colortbl;\red255\green255\blue255;}
4 | {\*\expandedcolortbl;;}
5 | }
--------------------------------------------------------------------------------
/scripts/iTunes#Download Album Artwork.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/iTunes#Download Album Artwork.applescript
--------------------------------------------------------------------------------
/scripts/lib/+arrays.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +ARRAYS
4 | # nmxt: .applescript
5 | # pDSC: List manipulation handlers
6 | --------------------------------------------------------------------------------
7 | # sown: CK
8 | # ascd: 2018-08-23
9 | # asmo: 2019-05-08
10 | --------------------------------------------------------------------------------
11 | property name : "arrays"
12 | property id : "chri.sk.applescript.lib:arrays"
13 | property version : 1.0
14 | property parent: AppleScript
15 | --------------------------------------------------------------------------------
16 | # HANDLERS & SCRIPT OBJECTS:
17 |
18 | # make [ see: array(), emptyarray() ]
19 | # Generates a list of N objects, which are, by default, the integers from 1
20 | # to +N in order. If +x is supplied, the generated list contains +N
21 | # occurrences of the object +x. pseudorandomness takes priority over +x, and
22 | # will cause the generated list to contain +N random integers no greater in
23 | # value than +N.
24 | to make N at x : null given pseudorandomness:random as boolean : false
25 | local N, x, random
26 |
27 | script
28 | property list : {}
29 | end script
30 |
31 | tell the result
32 | if random then
33 | repeat with i from 1 to N
34 | set end of its list to random number to N
35 | end repeat
36 | else if x = null then
37 | repeat with i from 1 to N
38 | set end of its list to i
39 | end repeat
40 | else
41 | repeat N times
42 | set end of its list to x
43 | end repeat
44 | end if
45 |
46 | its list
47 | end tell
48 | end make
49 | on array(N) -- Generates a list of integers from 1 to +N
50 | make N
51 | end array
52 | on emptyarray(N) -- Generates a list of +N missing values
53 | make N at missing value
54 | end emptyarray
55 |
56 | # offset
57 | # Lists the indices of each occurrence of the item +x in list +L
58 | on offset of x in L
59 | local x, L
60 |
61 | if x is not in L then return {}
62 |
63 | script
64 | on found(x)
65 | script
66 | on fn(y, |ξ|, i)
67 | if y = x then set end of |ξ| to i
68 | |ξ|
69 | end fn
70 | end script
71 | end found
72 | end script
73 |
74 | foldItems from L at {} given handler:result's found(x)
75 | end offset
76 |
77 | # __()
78 | # Wraps handler or list class data in a script object.
79 | # For handlers, increases versatility for creating complex functions used by
80 | # other handlers; for lists, decreases access time to items in large sets.
81 | on __(obj)
82 | local obj
83 |
84 | if the class of obj = handler then
85 | script
86 | property fn : obj
87 | end script
88 | return the result
89 | else if the class of obj = list then
90 | script
91 | property list : obj
92 | end script
93 | return a reference to the result's list
94 | end if
95 |
96 | return obj
97 | end __
98 |
99 | # iterate [ see: generator() ]
100 | # Returns a script object that acts as a generator to obtain the next item
101 | # in a potentially infinite list of items where each item is generated from
102 | # the last by repeated application of a function.
103 | on iterate for N : 0 from y : 1 to max : null given handler:function
104 | script
105 | property list : {}
106 | property length : N
107 | property item : y
108 | property index : 0
109 | property func : function
110 |
111 | on x()
112 | tell my list
113 | set its end to its last item
114 | a reference to its last item
115 | end tell
116 | end x
117 |
118 | to next()
119 | set index to index + 1
120 | if index = 1 then return my item
121 |
122 | tell __(func) to set my item to the ¬
123 | fn(my item, my index, my list)
124 | end next
125 |
126 | to yield(N)
127 | local N
128 |
129 | repeat N times
130 | set end of my list to next()
131 | end repeat
132 |
133 | my list
134 | end yield
135 |
136 | on upto(max)
137 | local max
138 |
139 | repeat
140 | if next() > max then return my list
141 | set end of my list to my item
142 | end repeat
143 | end upto
144 | end script
145 |
146 | tell the result
147 | if N > 0 then return its yield(N)
148 | if max ≠ null then return upto(max)
149 | it
150 | end tell
151 | end iterate
152 | on generator(fn, y)
153 | iterate from y given handler:fn
154 | end generator
155 |
156 | # mapItems
157 | # Applies a given handler (function) to each item in a list (+L). The items
158 | # of the supplied list are overwritten with their new values.
159 | to mapItems from L as list given handler:function
160 | local L, function
161 |
162 | script
163 | property list : L
164 | end script
165 |
166 | tell (a reference to the result's list)
167 | repeat with i from 1 to its length
168 | set x to (a reference to its item i)
169 | copy fn(x's contents, i, it) ¬
170 | of my __(function) ¬
171 | to the contents of x
172 | end repeat
173 | end tell
174 |
175 | L
176 | end mapItems
177 |
178 | # filterItems
179 | # Filters a list (+L) to include only those items that pass a given test as
180 | # defined by a predicate (function). The original list remains in tact.
181 | to filterItems from L as list into R as list : null given handler:function
182 | local L, R
183 |
184 | if R = null then set R to {}
185 |
186 | script
187 | property list : L
188 | property result : R
189 | end script
190 |
191 | tell the result to repeat with x in its list
192 | if my __(function)'s fn(x, L, R) then set ¬
193 | end of its result to x's contents
194 | end repeat
195 |
196 | R
197 | end filterItems
198 |
199 | # foldItems
200 | # Reduces a list through a specificed handler (function), accumulating the
201 | # result as it goes, returning the accumulated value. The original list
202 | # remains unchanged.
203 | to foldItems from L at |ξ| : 0 given handler:function
204 | local L, |ξ|, function
205 |
206 | script
207 | property list : L
208 | end script
209 |
210 | tell the result's list to repeat with i from 1 to its length
211 | set x to its item i
212 | tell my __(function)'s fn(x, |ξ|, i, L)
213 | if it = null then exit repeat
214 | set |ξ| to it
215 | end tell
216 | end repeat
217 |
218 | |ξ|
219 | end foldItems
220 |
221 | # replaceItems
222 | # Overwrites items in |L₁| starting at the specified +index using the items
223 | # taken, in order, from |L₂|, extending the original list if necessary. If
224 | # passing an +index of 0, the items are appended.
225 | to replaceItems from |L₂| as list : {} into |L₁| as list at index : 0
226 | local xs, L, index
227 |
228 | set N to |L₁|'s length
229 | set i to (index + N + 1) mod (N + 1)
230 | if i = 0 then set i to N + 1
231 | script
232 | property list : |L₁|
233 | property xs : |L₂|
234 | end script
235 |
236 | tell the result
237 | repeat with x in its xs
238 | if i ≤ N then
239 | set its list's item i to x's contents
240 | else
241 | set end of its list to x's contents
242 | end if
243 |
244 | set i to i + 1
245 | end repeat
246 |
247 | return its list
248 | end tell
249 | end replaceItems
250 |
251 | # pushItems
252 | # Inserts a list of items (+xs) into a given list (+L) at index +i, moving the
253 | # existing items to its right the appropriate number of places. The original
254 | # list is not affected. The resulting list can be longer than the original
255 | # if the number of items to be pushed extend beyond the number of items the
256 | # original list can accommodate.
257 | to pushItems onto L as list at i as integer : 0 given list:A as list : {}
258 | local L, i, A
259 |
260 | script
261 | property list : L
262 | property xs : A
263 | property N : L's length
264 | property index : (i + N + 1) mod (N + 1)
265 | end script
266 |
267 | tell the result
268 | set i to its index
269 | if i = 0 then
270 | set its list to its list & its xs
271 | else if i = 1 then
272 | set its list to its xs & its list
273 | else
274 | set its list to ¬
275 | (its list's items 1 thru (i - 1)) & ¬
276 | (its xs) & ¬
277 | (its list's items i thru -1)
278 |
279 | its list
280 | end if
281 | end tell
282 | end pushItems
283 |
284 | # difference()
285 | # Returns the difference of two lists, i.e. the items in +A that are not
286 | # present in +B, A - B.
287 | on difference(A as list, B as list)
288 | local A, B
289 |
290 | script
291 | on notMember(M)
292 | script
293 | on fn(x)
294 | x is not in M
295 | end fn
296 | end script
297 | end notMember
298 | end script
299 |
300 | filterItems from A given handler:result's notMember(B)
301 | end difference
302 |
303 | # intersection()
304 | # Returns the intersection of two lists, i.e. those items in +A that are also
305 | # in +B.
306 | on intersection(A as list, B as list)
307 | local A, B
308 |
309 | script
310 | on member(M)
311 | script
312 | on fn(x)
313 | x is in M
314 | end fn
315 | end script
316 | end member
317 | end script
318 |
319 | filterItems from A given handler:result's member(B)
320 | end intersection
321 |
322 | # union()
323 | # Returns the union of two lists, i.e. merges the items of both lists
324 | on union(A as list, B as list)
325 | local A, B
326 |
327 | script
328 | on insert(x, L)
329 | set end of L to x
330 | L
331 | end insert
332 | end script
333 |
334 | foldItems from A at B given handler:result's insert
335 | end union
336 |
337 | # unique:
338 | # Returns every item in a list as a unique entity in a new list, i.e. makes
339 | # list +L into a pseudoset
340 | on unique:L
341 | local L
342 |
343 | script
344 | on notMember(x, i, L)
345 | x is not in L
346 | end notMember
347 | end script
348 |
349 | filterItems from L given handler:result's notMember
350 | end unique:
351 |
352 | # zip()
353 | # Takes the corresponding items from two lists and concatenates them into
354 | # a list of lists
355 | to zip(A, B)
356 | local L
357 |
358 | script
359 | to concat(x, |ξ|, i)
360 | set item i of |ξ| to {} & item i of |ξ| & x as list
361 | |ξ|
362 | end concat
363 | end script
364 |
365 | foldItems from B at A given handler:result's concat
366 | end zip
367 |
368 | # multiply()
369 | # Multiples two values together. If the second value, +L, is a list, then
370 | # every item in that list is multiplied by +x.
371 | to multiply(x, L)
372 | local x, L
373 |
374 | set unary to L's class ≠ list
375 |
376 | script
377 | to multiplyBy:x
378 | script
379 | on fn(y)
380 | x * y
381 | end fn
382 | end script
383 | end multiplyBy:
384 | end script
385 |
386 | set R to mapItems from L given handler:result's multiplyBy:x
387 | if unary then set [R] to R
388 | R
389 | end multiply
390 |
391 | # add()
392 | # Adds two values together. If the second value, +L, is a list, then +x is
393 | # added to every item in that list.
394 | to add(x, L)
395 | local x, L
396 |
397 | set unary to L's class ≠ list
398 |
399 | script
400 | to add:x
401 | script
402 | on fn(y)
403 | x + y
404 | end fn
405 | end script
406 | end add:
407 | end script
408 |
409 | set R to mapItems from L given handler:result's add:x
410 | if unary then set [R] to R
411 | R
412 | end add
413 |
414 | # sum:
415 | # Returns the sum of a list of numbers
416 | on sum:L
417 | foldItems from L given handler:add
418 | end sum:
419 |
420 |
421 | on product:L
422 | foldItems from L at 1 given handler:multiply
423 | end product:
424 |
425 | # max:
426 | # Returns the maximum value from a list of numbers (or strings)
427 | on max:L
428 | local L
429 |
430 | script
431 | on maximum(x, y)
432 | if x ≥ y then return x
433 | y
434 | end maximum
435 | end script
436 |
437 | foldItems from L given handler:result's maximum
438 | end max:
439 |
440 | # min:
441 | # Returns the minimum value from a list of numbers (or strings)
442 | on min:L
443 | local L
444 |
445 | script
446 | on minimum(x, y)
447 | if x ≤ y then return x
448 | y
449 | end minimum
450 | end script
451 |
452 | foldItems from L at L's first item given handler:result's minimum
453 | end min:
454 |
455 | # min:
456 | # Returns the mean value of a list of numbers
457 | on mean:L
458 | local L
459 |
460 | (my sum:L) / (length of L)
461 | end mean:
462 |
463 | # swap()
464 | # Swaps the items at indices +i and +j in a list (+L) with one another
465 | on swap(L, i, j)
466 | local L, i, j
467 |
468 | set [item i of L, item j of L] to [item j, item i] of L
469 | L
470 | end swap
471 |
472 | # sort:
473 | # Sorts a list of numbers in ascending numerical value. The original list
474 | # is overwritten as it is sorted. This is an inefficient algorithm.
475 | to sort:(L as list)
476 | local L
477 |
478 | if L = {} then return {}
479 | if L's length = 1 then return L
480 |
481 | script
482 | property list : L
483 | end script
484 |
485 | tell (a reference to the result's list)
486 | set [x, xs] to [¬
487 | a reference to its item 1, ¬
488 | a reference to rest of it]
489 | set [i] to my (offset of (my min:it) in it)
490 | if i ≠ 1 then my swap(it, 1, i)
491 |
492 | set its contents to {x's contents} & (my sort:(xs))
493 | it
494 | end tell
495 | end sort:
496 |
497 | # rotate:
498 | # Rotates a list by one anti-clockwise. The original list is overwritten.
499 | to rotate:L
500 | local L
501 |
502 | if length of L < 2 then return L
503 |
504 | script
505 | property list : L
506 | property x : item 1 of my list
507 |
508 | to unshift(x, i, L)
509 | local x, i, L
510 |
511 | if i = L's length then return missing value
512 | item (i + 1) of L
513 | end unshift
514 | end script
515 |
516 | mapItems from L given handler:result's unshift
517 | set last item of L to x
518 | L
519 | end rotate:
520 |
521 | # cycle:
522 | # Like rotate: but preserves the original list, and is therefore much faster
523 | on cycle:L
524 | local L
525 |
526 | (rest of L) & item 1 of L
527 | end cycle:
528 |
529 | # flatten:
530 | # Returns a flattened version a nested list as a one-dimensional list
531 | to flatten:L
532 | foldItems from L at {} given handler:union
533 | end flatten:
534 |
535 | # head:
536 | # Returns the first item of a list, overwriting the original
537 | on head:L
538 | local L
539 |
540 | tell (a reference to L)
541 | set its contents to item 1
542 | return its contents
543 | end tell
544 | end head:
545 |
546 | # tail: [ syn.
547 | # Returns all but the first item of a list, ovverwriting the original
548 | on tail:L
549 | local L
550 |
551 | tell (a reference to L)
552 | set its contents to the rest of L
553 | return its contents
554 | end tell
555 | end tail:
556 | to shift(L)
557 | tail_(L)
558 | end shift
559 |
560 | # body:
561 | # Returns all but the last item of a list
562 | on body:L
563 | if L's length < 2 then return null
564 | items 1 thru -2 of L
565 | end body:
566 |
567 | # anus:
568 | # Returns the last item of a list
569 | on anus:L
570 | if L's length < 1 then return null
571 | item -1 of L
572 | end anus:
573 |
574 | # torso:
575 | # Returns all but the first and last items of a list
576 | on torso:L
577 | if L's length < 2 then return null
578 | tail_(body_(L))
579 | end torso:
580 | ---------------------------------------------------------------------------❮END❯
--------------------------------------------------------------------------------
/scripts/lib/+class.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/lib/+class.applescript
--------------------------------------------------------------------------------
/scripts/lib/+crypto.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +CRYPTO
4 | # nmxt: .applescript
5 | # pDSC: A library containing cryptographic and encoding functions
6 | --------------------------------------------------------------------------------
7 | # sown: CK
8 | # ascd: 2018-12-10
9 | # asmo: 2019-05-07
10 | --------------------------------------------------------------------------------
11 | property name : "crypto"
12 | property id : "chri.sk.applescript.lib:crypto"
13 | property version : 1.0
14 | property parent: AppleScript
15 | --------------------------------------------------------------------------------
16 | use framework "Foundation"
17 |
18 | property this : a reference to current application
19 | property NSString : a reference to NSString of this
20 | property NSData : a reference to NSData of this
21 | property NSDataBase64Encoding64CharacterLineLength : a reference to 1
22 | property NSDataBase64DecodingIgnoreUnknownCharacters : a reference to 1
23 | property NSUTF8StringEncoding : a reference to 4
24 | --------------------------------------------------------------------------------
25 | # APPLESCRIPT-OBJC HANDLERS:
26 |
27 | # base64Decode()
28 | # Decodes a base-64 string to UTF-8
29 | on base64Decode(s)
30 | (NSString's alloc()'s initWithData:(NSData's alloc()'s ¬
31 | initWithBase64EncodedString:s options:1) ¬
32 | encoding:(NSUTF8StringEncoding)) as text
33 | end base64Decode
34 |
35 | # base64Encode()
36 | # Encodes a string to base-64
37 | on base64Encode(s)
38 | (((NSString's stringWithString:s)'s ¬
39 | dataUsingEncoding:(NSUTF8StringEncoding))'s ¬
40 | base64EncodedStringWithOptions:1) as text
41 | end base64Encode
42 |
43 | # base64EncodeFromFile:
44 | # Encodes a file to a base-64 string
45 | on base64EncodeFromFile:fp
46 | set d to NSData's dataWithContentsOfFile:fp
47 | (d's base64EncodedStringWithOptions:(NSDataBase64Encoding64CharacterLineLength)) as text
48 | end base64EncodeFromFile:
--------------------------------------------------------------------------------
/scripts/lib/+date.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +DATE
4 | # nmxt: .applescript
5 | # pDSC: Date and time handlers
6 | --------------------------------------------------------------------------------
7 | # sown: CK
8 | # ascd: 2018-09-06
9 | # asmo: 2019-05-10
10 | --------------------------------------------------------------------------------
11 | property name : "date"
12 | property id : "chrisk.applescript.lib:date"
13 | property version : 1.0
14 | property parent: AppleScript
15 | --------------------------------------------------------------------------------
16 | property UnixEpoch : {year:1970, month:January, day:1}
17 | property AppleEpoch : {year:2001, month:January, day:1}
18 | --------------------------------------------------------------------------------
19 | # HANDLERS & SCRIPT OBJECTS:
20 |
21 | # make
22 | # Creates an AppleScript date object set to a date and time specified by the
23 | # supplied values. Year (+y), month (+m), and day (+d) are required values,
24 | # whereas the time components are optional, and default to midnight.
25 | to make at {year:y, month:m, day:d} ¬
26 | given time:{hours:h, minutes:mm, seconds:s} ¬
27 | : {hours:0, minutes:0, seconds:0}
28 | local y, m, d, h, mm, s
29 |
30 | tell (the current date) to set ¬
31 | [ASdate, year, day, its month, day, time] to ¬
32 | [it, y, 1, m, d, h * hours + mm * minutes + s]
33 | ASdate
34 | end make
35 |
36 | # ISOdate
37 | # Takes an AppleScript date object and returns a record with the date string
38 | # and time string formatted similar to IS0-8601 representation.
39 | on ISOdate from ASdate as date
40 | ASdate as «class isot» as string
41 | return {date string:text 1 thru 10 ¬
42 | , time string:text 12 thru 19} of the result
43 |
44 | -- Alternative method:
45 | set [y, m, d, t] to [year, month, day, time string] of ASdate
46 | return [the contents of [y, ¬
47 | "-", text -1 thru -2 of ("0" & (m as integer)), ¬
48 | "-", text -1 thru -2 of ("0" & (d as integer))] ¬
49 | as text, t]
50 | end ISOdate
51 |
52 | # unixtime()
53 | # The number of seconds transpired since 1970-01-01
54 | on unixtime()
55 | ((current date) - (make at UnixEpoch)) as yards as text
56 | end unixtime
57 |
58 | # appletime()
59 | # The number of seconds transpired since 2001-01-01
60 | on appletime()
61 | ((current date) - (make at AppleEpoch)) as yards as text
62 | end appletime
63 |
64 | # unixtimeToDate()
65 | # Converts Unix time to an AppleScript date object
66 | on unixtimeToDate(t as number)
67 | local t
68 |
69 | (make at UnixEpoch) + t
70 | end unixtimeToDate
71 |
72 | # appletimeToDate()
73 | # Converts Cocoa time to an AppleScript date object
74 | on appletimeToDate(t as number)
75 | local t
76 |
77 | (make at AppleEpoch) + t
78 | end appletimeToDate
79 |
80 | # timer::
81 | # A timer script object to monitor durations of elapsed time between different
82 | # points in a script's execution
83 | script timer
84 | to make at initialTime : 0
85 | script timer
86 | property now : initialTime
87 | property duration : missing value
88 | property running : false
89 | property reference : a reference to my [start ¬
90 | , pause, reset]
91 |
92 | on t()
93 | the (current date)'s time
94 | end t
95 |
96 | to start()
97 | if running then return false
98 | set now to now + t()
99 | set running to true
100 | end start
101 |
102 | to pause()
103 | if not running then return
104 | set duration to t() - now
105 | set now to 0
106 | set running to false
107 | end pause
108 |
109 | to reset()
110 | set now to the initialTime
111 | set duration to missing value
112 | set running to false
113 | end reset
114 |
115 | to run
116 | start()
117 | end run
118 |
119 | to idle
120 | pause()
121 | end idle
122 | end script
123 | end make
124 | end script
125 | --------------------------------------------------------------------------------
126 | # APPLESCRIPT-OBJC HANDLERS:
127 | use framework "Foundation"
128 |
129 | property this : a reference to current application
130 | property NSDate : a reference to NSDate of this
131 |
132 | # microtime()
133 | # Unix time in microseconds
134 | on microtime()
135 | NSDate's |date|()'s timeIntervalSince1970()
136 | result * 1000000 as yards as text
137 | end microtime
138 | ---------------------------------------------------------------------------❮END❯
--------------------------------------------------------------------------------
/scripts/lib/+files.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +FILES
4 | # nmxt: .applescript
5 | # pDSC: File manipulation handlers that specialise in POSIX path handling
6 | --------------------------------------------------------------------------------
7 | # sown: CK
8 | # ascd: 2018-08-31
9 | # asmo: 2019-05-18
10 | --------------------------------------------------------------------------------
11 | property name : "files"
12 | property id : "chri.sk.applescript.lib:files"
13 | property version : 1.5
14 | property parent: AppleScript
15 | --------------------------------------------------------------------------------
16 | property sys : application "System Events"
17 | property Finder : application "Finder"
18 | --------------------------------------------------------------------------------
19 | # FINDER TAGS:
20 | property unset : 0
21 | property orange : 1
22 | property red : 2
23 | property yellow : 3
24 | property blue : 4
25 | property purple : 5
26 | property green : 6
27 | property grey : 7
28 | --------------------------------------------------------------------------------
29 | # APPLESCRIPT HANDLERS & SCRIPT OBJECTS:
30 |
31 | # make
32 | # Create a new file or folder at the given file +path. To create a folder,
33 | # terminate the +path with "/".
34 | to make new fileitem : file at path as text
35 | if the path exists then return false
36 |
37 | tell sys to make new fileitem with properties {name:path}
38 | alias (path of result)
39 | end make
40 |
41 | # __sys__()
42 | # Create a System Events file reference
43 | on __sys__(fp as text)
44 | a reference to sys's alias fp
45 | end __sys__
46 |
47 | # __alias__()
48 | # Create an alias object
49 | to __alias__(fp as text)
50 | #POSIX file («class posx» of __sys__(fp)) as alias
51 | try
52 | __sys__(fp) as alias
53 | on error
54 | false
55 | end try
56 | end __alias__
57 |
58 | # __finder__()
59 | # Create a Finder file reference
60 | on __finder__(fp as text)
61 | Finder's item __alias__(fp)
62 | end __finder__
63 |
64 | # exists
65 | # Determines whether or not a file exists at the specified path
66 | on exists (fp as text)
67 | __sys__(fp) exists
68 | end exists
69 |
70 | # delete
71 | # Moves the files at the specified paths to the Trash
72 | to delete fs
73 | repeat with f in fs
74 | set f's contents to __finder__(f)
75 | end repeat
76 |
77 | delete fs
78 | end delete
79 |
80 | # dir()
81 | # Returns the parent (containing) directory
82 | on dir(fp as text)
83 | [__alias__(fp), "::"] as text as alias
84 | POSIX path of result
85 | end dir
86 |
87 | # resolve()
88 | # Standardises the filepath (expanding tildes, removing double /), and
89 | # resolves alias links, returning the path to the original file
90 | to resolve(fp as text)
91 | if not (exists fp) then return false
92 | set f to __finder__(fp)
93 | if f's class = «class alia» then tell ¬
94 | f's «class orig» to if (exists) ¬
95 | then return resolve(it as alias)
96 | POSIX path of (f as alias)
97 | end resolve
98 |
99 | # classOfFile()
100 | # Returns the type of file object at the given filepath, e.g. folder, file,
101 | # package file, etc.
102 | on classOfFile(fp as text)
103 | if not (exists fp) then return false
104 | class of sys's item fp
105 | end classOfFile
106 |
107 | # show()
108 | # Reveals the files at the given filepaths in Finder
109 | to show:fs
110 | repeat with f in fs
111 | set f's contents to __finder__(f)
112 | end repeat
113 |
114 | activate Finder
115 | continue «event miscmvis» fs
116 | end show:
117 | using terms from application "Finder"
118 | on reveal fs
119 | show_(fs)
120 | end reveal
121 | end using terms from
122 |
123 | # tag()
124 | # Tags a file in Finder with a colour
125 | to tag(fp as text, index)
126 | if not (exists fp) then return false
127 | set f to __finder__(fp)
128 | set «class labi» of f to index
129 | f
130 | end tag
131 | to untag(fp)
132 | tag(fp, 0)
133 | end untag
134 |
135 | # filename()
136 | # Returns the name of the object at the specified filepath, including any
137 | # extension
138 | on filename(fp as text)
139 | if not (exists fp) then return false
140 | name of __sys__(fp)
141 | end filename
142 |
143 | # ext()
144 | # Returns the file extension of the file at the specified filepath
145 | on ext(fp as text)
146 | if not (exists fp) then return false
147 | «class extn» of __sys__(fp)
148 | end ext
149 |
150 | # defaultApp
151 | # Returns the path to the default application used to open the file at +fp
152 | on defaultApp for fp as text
153 | default application of __sys__(fp) as alias
154 | return the name of the application named result
155 | end defaultApp
156 |
157 | # appicon
158 | # Returns the application icon for the application used to open the file at
159 | # the specified filepath
160 | on appIcon for fp as text
161 | set A to application named (defApp for fp)
162 | set infoPlist to [path to A, "Contents:Info.plist"] as text
163 |
164 | tell application "System Events" to get value of ¬
165 | property list item "CFBundleIconFile" of ¬
166 | property list file infoPlist
167 | set filename to the result
168 |
169 | try
170 | path to resource filename in bundle A
171 | on error
172 | try
173 | path to resource filename & ".icns" in bundle A
174 | on error
175 | return false
176 | end try
177 | end try
178 |
179 | POSIX path of result
180 | end appIcon
181 | --------------------------------------------------------------------------------
182 | # APPLESCRIPT-OBJC HANDLERS:
183 | use framework "AppKit"
184 | use scripting additions
185 |
186 | property this : a reference to current application
187 | property nil : a reference to missing value
188 | property _1 : a reference to reference
189 | --Cocoa Class Objects
190 | property AMWorkflow : a reference to AMWorkflow of this
191 | property JSContext : a reference to JSContext of this
192 | property NSArray : a reference to NSArray of this
193 | property NSDictionary : a reference to NSDictionary of this
194 | property NSFileManager : a reference to NSFileManager of this
195 | property NSMetadataItem : a reference to NSMetadataItem of this
196 | property NSMetadataQuery : a reference to NSMetadataQuery of this
197 | property NSMutableArray : a reference to NSMutableArray of this
198 | property NSPasteboard : a reference to NSPasteboard of this
199 | property NSPredicate : a reference to NSPredicate of this
200 | property NSSortDescriptor : a reference to NSSortDescriptor of this
201 | property NSString : a reference to NSString of this
202 | property NSURL : a reference to NSURL of this
203 | property NSWorkspace : a reference to NSWorkspace of this
204 |
205 | property FileManager : a reference to NSFileManager's defaultManager
206 | property Pasteboard : a reference to NSPasteboard's generalPasteboard
207 | property Workspace : a reference to NSWorkspace's sharedWorkspace
208 | --Directory Enumeration Constants
209 | property SkipHiddenFiles : a reference to 4
210 | property SkipPackageDescendants : a reference to 2
211 | --NSURL Property Keys
212 | property CreationDateKey : "NSURLCreationDateKey"
213 | property FileSizeKey : "NSURLFileSizeKey"
214 | property IsDirectoryKey : "NSURLIsDirectoryKey"
215 | property ModificationDateKey : "NSURLContentModificationDateKey"
216 | property NameKey : "NSURLNameKey"
217 | property ParentURLKey : "NSURLParentDirectoryURLKey"
218 | property PathKey : "_NSURLPathKey"
219 | --NSMetadataItem Attribute Keys
220 | property kMDPathKey : "kMDItemPath"
221 |
222 | to __NSString__(str)
223 | (NSString's stringWithString:str)'s ¬
224 | stringByStandardizingPath()
225 | end __NSString__
226 |
227 | to __NSURL__(|URL|)
228 | if (|URL| exists) then return NSURL's ¬
229 | fileURLWithPath:__NSString__(|URL|)
230 |
231 | NSURL's URLWithString:|URL|
232 | end __NSURL__
233 |
234 | to __NSArray__(obj)
235 | try
236 | NSArray's arrayWithArray:obj
237 | on error
238 | NSArray's arrayWithObject:obj
239 | end try
240 | end __NSArray__
241 |
242 | to __any__(obj)
243 | (__NSArray__([obj]) as list)'s item 1
244 | end __any__
245 |
246 | on fileExtensionForType:(UTI as text)
247 | local UTI
248 |
249 | (Workspace()'s preferredFilenameExtensionForType:UTI) as text
250 | end fileExtensionForType:
251 |
252 | # bundleIDsForType: [ see apps ]
253 | # Lists the bundle IDs of apps registered on the system to open files of the
254 | # specified uniform type identifier. The convenience function, apps, accepts
255 | # a uniform type identifier or a file extension.
256 | on bundleIDsForType:(UTI as text)
257 | local UTI
258 |
259 | try
260 | run script "
261 | ObjC.import('CoreServices');
262 | ObjC.deepUnwrap(
263 | $.LSCopyAllRoleHandlersForContentType(
264 | " & UTI's quoted form & ",
265 | $.kLSRolesAll
266 | ));" in "JavaScript"
267 | on error
268 | missing value
269 | end try
270 | end bundleIDsForType:
271 | on apps for typeOrExtension as text
272 | local typeOrExtension
273 |
274 | if typeOrExtension contains "." then return ¬
275 | bundleIDsForType_(typeOrExtension)
276 |
277 | repeat with dir in [¬
278 | "~/Documents", ¬
279 | "~/Desktop", ¬
280 | "~/Downloads", ¬
281 | "~/Pictures"]
282 | tell (deepDive into dir for typeOrExtension) to if it ≠ {} ¬
283 | then return (my bundleIDsForType:((my Workspace())'s ¬
284 | typeOfFile:(its some item) |error|:nil))
285 | end repeat
286 | end apps
287 |
288 | to runWorkflow at fp as text given input:fs as list
289 | local fp, fs
290 |
291 | AMWorkflow's runWorkflowAtURL:__NSURL__(fp) withInput:fs |error|:_1
292 | set [output, E] to the result
293 | if E ≠ missing value then return E's localizedDescription() as text
294 |
295 | __any__(output)
296 | end runWorkflow
297 |
298 | # metadata()
299 | # Returns a record containing the filesystem's metadata for the given
300 | # reference at the filepath
301 | on metadata for fp
302 | set mdItem to NSMetadataItem's alloc()'s initWithURL:__alias__(fp)
303 | tell (mdItem's attributes() as list) to if {} ≠ it then ¬
304 | return (mdItem's valuesForAttributes:it) as record
305 |
306 | {}
307 | end metadata
308 |
309 | # mdQuery
310 | # Performs a Spotlight metadata +query/search, limiting the search scope to
311 | # the optionally specified list of +directories. Returns a list of file paths
312 | # whose metadata satisfy the query.
313 | on mdQuery at directories as list : {"~/"} given query:query
314 | local query
315 |
316 | repeat with dir in directories
317 | set dir's contents to __alias__(dir)
318 | end repeat
319 |
320 | tell NSMetadataQuery's new()
321 | setSearchScopes_(directories)
322 | setPredicate_(NSPredicate's predicateWithFormat:query)
323 |
324 | startQuery()
325 |
326 | with timeout of 10 seconds
327 | repeat while isGathering() as boolean
328 | delay 0.1
329 | end repeat
330 | end timeout
331 |
332 | stopQuery()
333 |
334 | (results()'s valueForKey:kMDPathKey) as list
335 | end tell
336 | end mdQuery
337 |
338 | # cbSet: [ syn. cbSet() ]
339 | # Writes the file object references at the specified filepaths to the
340 | # clipboard
341 | on cbSet:(fs as list)
342 | local fs
343 |
344 | repeat with f in fs
345 | set f's contents to __alias__(f)
346 | end repeat
347 |
348 | tell the Pasteboard
349 | clearContents()
350 | writeObjects_(aliases in fs)
351 | end tell
352 | end cbSet:
353 | on cbSet(fs)
354 | cbSet_(fs)
355 | end cbSet
356 |
357 | # cbGet()
358 | # Retrieves a list of file object references currently on the clipboard
359 | on cbGet()
360 | (Pasteboard's readObjectsForClasses:[NSURL] options:[]) as list
361 | end cbGet
362 |
363 | # deepDive
364 | # Performs a deep enumeration of a directory returning a record of keys that
365 | # correspond to properties of each file requested/excluded by passing the
366 | # appropriate boolean parameter
367 | on deepDive into dir for filetypes as text : ("") ¬
368 | given name:filename as boolean : false ¬
369 | , path:filepath as boolean : true ¬
370 | , size:filesize as boolean : false ¬
371 | , creation date:cdate as boolean : false ¬
372 | , parent:container as boolean : false ¬
373 | , folders:directories as boolean : true ¬
374 | , modification date:mdate as boolean : false
375 | local dir, filename, filepath, filesize, cdate, container
376 | local directories, mdate, filetypes
377 |
378 | set keys to {IsDirectoryKey}
379 | if filepath then set end of keys to PathKey
380 | if filesize then set end of keys to FileSizeKey
381 | if filename then set end of keys to NameKey
382 | if container then set end of keys to ParentURLKey
383 | if cdate then set end of keys to CreationDateKey
384 | if mdate then set end of keys to ModificationDateKey
385 |
386 | set fURLs to NSMutableArray's array()
387 |
388 | fURLs's addObjectsFromArray:((FileManager's ¬
389 | enumeratorAtURL:__NSURL__(dir) ¬
390 | includingPropertiesForKeys:keys ¬
391 | options:(SkipHiddenFiles + SkipPackageDescendants) ¬
392 | errorHandler:nil)'s allObjects())
393 |
394 | set predicate to "ANY %@ ==[c] pathExtension"
395 | if filetypes begins with "!" then set predicate ¬
396 | to ["!", predicate] as text
397 | set filetypes to the words of filetypes
398 | set |?| to NSPredicate's predicateWithFormat_(predicate, filetypes)
399 | if {} ≠ filetypes then fURLs's filterUsingPredicate:|?|
400 |
401 | repeat with f in fURLs
402 | if directories or (((f's ¬
403 | resourceValuesForKeys:[IsDirectoryKey] |error|:nil)'s ¬
404 | valueForKey:IsDirectoryKey) as boolean = false) then
405 |
406 | (f's resourceValuesForKeys:(rest of keys) |error|:nil)
407 | # (fs's addObject:result)
408 | else
409 | null
410 | end if
411 | set f's contents to the result
412 | end repeat
413 |
414 | fURLs's removeObject:(null)
415 | if the number of keys > 2 then return fURLs as list
416 | fURLs's sortUsingDescriptors:[NSSortDescriptor's alloc()'s ¬
417 | initWithKey:(end of keys) ascending:yes]
418 | (fURLs's valueForKey:(end of keys)) as list
419 | end deepDive
420 |
421 | # filesTagged
422 | # Performs a Spotlight metadata query to obtain a list of files in the
423 | # user domain that have any tags containing the +tag string
424 | on filesTagged by tag given caseMatching:matchCase as boolean : false ¬
425 | , fuzziness:fuzzy as boolean : true
426 | local tag, matchCase, fuzzy
427 |
428 | set [op, flag] to ["CONTAINS", "[c] "]
429 | if matchCase then set flag to " "
430 | if not fuzzy then set op to "=="
431 |
432 | set query to ["kMDItemUserTags", space, op, flag, tag's quoted form]
433 | mdQuery given query:query as text
434 | end filesTagged
435 | ---------------------------------------------------------------------------❮END❯
--------------------------------------------------------------------------------
/scripts/lib/+maths.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +MATHS
4 | # nmxt: .applescript
5 | # pDSC: Mathematical functions. Loading this library also loads _lists lib.
6 | --------------------------------------------------------------------------------
7 | # sown: CK
8 | # ascd: 2018-11-04
9 | # asmo: 2019-05-07
10 | --------------------------------------------------------------------------------
11 | property name : "maths"
12 | property id : "chri.sk.applescript.lib:maths"
13 | property version : 1.0
14 | property libload : script "load.scpt"
15 | property parent : libload's load("arrays")
16 | --------------------------------------------------------------------------------
17 | # HANDLERS & SCRIPT OBJECTS:
18 |
19 | # Node::
20 | # Binary tree representation
21 | script Node
22 | to make with data d
23 | script
24 | property data : d
25 | property |left| : null
26 | property |right| : null
27 | end script
28 | end make
29 | end script
30 |
31 | # Complex::
32 | # Complex number representation and arithmetic
33 | script Complex
34 | to make at {x as real, y as real}
35 | script
36 | property class : "complex"
37 | property real : x
38 | property imaginary : y
39 | property arg : atan(y / x)
40 | property R : sqrt(x ^ 2 + y ^ 2)
41 |
42 | to add(z)
43 | local z
44 |
45 | set my real to (my real) + (z's real)
46 | set my imaginary to (my imaginary) + ¬
47 | (z's imaginary)
48 |
49 | update()
50 | end add
51 |
52 | to rotate(theta)
53 | set arg to arg + theta
54 |
55 | update_polar()
56 | end rotate
57 |
58 | to update()
59 | set arg to atan((my imaginary) / (my real))
60 | set R to sqrt((my real) ^ 2 + ¬
61 | (my imaginary) ^ 2)
62 | end update
63 |
64 | to update_polar()
65 | set my real to cos(arg)
66 | set my imaginary to sin(arg)
67 | end update_polar
68 | end script
69 | end make
70 |
71 | to add(z1, z2)
72 | local z1, z2
73 |
74 | set x to (z1's real) + (z2's real)
75 | set y to (z1's imaginary) + (z2's imaginary)
76 | make Complex at {x, y}
77 | end add
78 | end script
79 |
80 | # Fraction::
81 | # A script object to represent fractions
82 | script Fraction
83 | to make given numerator:a, denominator:b : 1
84 | if b = 0 then return false
85 |
86 | script
87 | property class : "fraction"
88 | property numerator : a
89 | property denominator : b
90 | property HCF : its GCD:{numerator, denominator}
91 | property value : numerator / denominator
92 | property integer : numerator div denominator
93 | property fractional : value - (my integer)
94 | property list : [a reference to numerator, ¬
95 | a reference to denominator]
96 |
97 | to simplify()
98 | set numerator to numerator / HCF
99 | set denominator to denominator / HCF
100 | set HCF to 1
101 |
102 | my list
103 | end simplify
104 |
105 | on reciprocal()
106 | set [numerator, denominator] to ¬
107 | [denominator, numerator]
108 |
109 | update()
110 |
111 | my list
112 | end reciprocal
113 |
114 | on continuedFraction()
115 | continuedFraction for numerator ¬
116 | over denominator
117 | end continuedFraction
118 |
119 | to add(x)
120 | local x
121 |
122 | set [a, b] to contents of x's list
123 |
124 | set my numerator to ¬
125 | (my numerator) * b + ¬
126 | (my denominator) * a
127 | set my denominator to (my denominator) * b
128 |
129 | update()
130 | simplify()
131 |
132 | me
133 | end add
134 |
135 | to update()
136 | set HCF to its GCD:{numerator, denominator}
137 | set value to numerator / denominator
138 | set my integer to numerator div denominator
139 | set fractional to value - (my integer)
140 |
141 | me
142 | end update
143 | end script
144 | end make
145 |
146 | to multiply(x, y)
147 | local x, y
148 |
149 | set a to (x's numerator) * (y's numerator)
150 | set b to (x's denominator) * (y's denominator)
151 | make Fraction given numerator:a, denominator:b
152 | end multiply
153 |
154 | to add(x, y)
155 | local x, y
156 |
157 | set b to its LCM:{x's denominator, y's denominator}
158 | set a to (b * (x's numerator) / (x's denominator)) + ¬
159 | (b * (y's numerator) / (y's denominator))
160 |
161 | set R to make Fraction given numerator:a, denominator:b
162 | tell R to simplify()
163 | R
164 | end add
165 | end script
166 |
167 | # ||()
168 | # A basic ternary function that evaluates a predicate, +a, to determine which
169 | # of two results, +b or +c, it ought to return
170 | on ||(a, b, c)
171 | local a, b, c
172 |
173 | if a then return b
174 | c
175 | end ||
176 |
177 | # GCD:
178 | # Returns the greatest common divisor of a list of integers
179 | on GCD:L
180 | local L
181 |
182 | script
183 | property array : L
184 |
185 | on GCD(x, y)
186 | local x, y
187 |
188 | repeat
189 | if x = 0 then return y
190 | set [x, y] to [y mod x, x]
191 | end repeat
192 | end GCD
193 | end script
194 |
195 | tell the result to foldItems from its array ¬
196 | at item 1 of its array ¬
197 | given handler:its GCD
198 | end GCD:
199 |
200 | # LCM:
201 | # Returns the lowest common multiple of a list of integers
202 | on LCM:L
203 | local L
204 |
205 | script
206 | property array : L
207 |
208 | on LCM(x, y)
209 | local x, y
210 |
211 | set xy to x * y
212 |
213 | repeat
214 | if x = 0 then return xy / y as integer
215 | set [x, y] to [y mod x, x]
216 | end repeat
217 | end LCM
218 | end script
219 |
220 | tell the result to foldItems from its array ¬
221 | at item 1 of its array ¬
222 | given handler:its LCM
223 | end LCM:
224 |
225 | # floor()
226 | # Returns the greatest integer less than or equal to the supplied value
227 | to floor(x)
228 | local x
229 |
230 | x - 0.5 + 1.0E-15 as integer
231 | end floor
232 |
233 | # ceil()
234 | # Returns the lowest integer greater than or equal to the supplied value
235 | on ceil(x)
236 | local x
237 |
238 | floor(x) + 1
239 | end ceil
240 |
241 | # sqrt()
242 | # Returns the positive square root of a number
243 | to sqrt(x)
244 | local x
245 |
246 | x ^ 0.5
247 | end sqrt
248 |
249 | # abs()
250 | # Returns the absolute value of a number
251 | on abs(x)
252 | local x
253 |
254 | if x < 0 then return -x
255 | x
256 | end abs
257 |
258 | # sign()
259 | # Returns the sign of a number
260 | on sign(x)
261 | local x
262 |
263 | if x < 0 then return -1
264 | if x > 0 then return 1
265 | 0
266 | end sign
267 |
268 | # Roman()
269 | # Returns a number formatted as Roman numerals
270 | to Roman(N as integer)
271 | local N
272 |
273 | script numerals
274 | property list : "Ⅰ Ⅳ Ⅴ Ⅸ Ⅹ ⅩⅬ Ⅼ ⅩⅭ Ⅽ ⅭⅮ Ⅾ ⅭⅯ Ⅿ"
275 | property value : "1 4 5 9 10 40 50 90 100 400 500 900 1000"
276 | property string : {}
277 | end script
278 |
279 |
280 | repeat with i from length of words of list of numerals to 1 by -1
281 | set glyph to item i in the words of list of numerals
282 | set x to item i in the words of numerals's value
283 |
284 | make (N div x) at glyph
285 | set string of numerals to string of numerals & result
286 | set N to N mod x
287 | end repeat
288 |
289 | return the string of numerals as linked list as text
290 | end Roman
291 |
292 | # hex
293 | # Converts a decimal number to hexadecimal
294 | to hex from decimal as integer
295 | local decimal
296 |
297 | set hexchars to "0123456789ABCDEF"
298 |
299 | set [int, i] to [decimal div 16, decimal mod 16 + 1]
300 | set hexchar to character i of hexchars
301 |
302 | if int = 0 then return hexchar
303 | (hex from int) & hexchar
304 | end hex
305 |
306 | # decimal
307 | # Converts a number from hexadecimal to decimal
308 | to decimal from hex as text
309 | local hex
310 |
311 | script
312 | property hexchars : "0123456789ABCDEF"
313 |
314 | on fn(power, chars)
315 | if chars = {} then return 0
316 |
317 | set [char] to chars
318 | set i to offset of char in hexchars
319 | set x to (i - 1) * power
320 |
321 | return x + fn(power * 16, rest of chars)
322 | end fn
323 | end script
324 |
325 | result's fn(1, reverse of hex's characters)
326 | end decimal
327 |
328 | # digitalRoot()
329 | # Calculates the digital root of a number. The digital root is the repeated
330 | # sum of a number's digits.
331 | on digitalRoot(N)
332 | local N
333 |
334 | tell generator(my digitalSum, N) to repeat
335 | tell next() to if it < 10 then return it
336 | end repeat
337 | end digitalRoot
338 |
339 | # digitalSum()
340 | # Sums the digits of a number
341 | on digitalSum(x)
342 | local x
343 |
344 | set digits to characters of (x as text)
345 | sum_(digits)
346 | end digitalSum
347 |
348 | # continuedFraction
349 | # Returns a number represented as a continued fraction
350 | on continuedFraction for a over b : 1
351 | local a, b
352 |
353 | script CF
354 | on fn(a, b)
355 | local a, b
356 |
357 | if b = 0 then return {}
358 |
359 | set c to a div b
360 | set d to a - (b * c)
361 |
362 | {c} & fn(b, d)
363 | end fn
364 | end script
365 |
366 | tell CF's fn(a, b) to return [item 1, rest] of it
367 | end continuedFraction
368 |
369 | # convergentFraction
370 | # Returns a script object representing the fraction denoted by the supplied
371 | # continued fraction
372 | on convergentFraction for CF
373 | script quotient
374 | on fn(x, |ξ|)
375 | set [a, b, c, d] to |ξ|
376 |
377 | set numerator to a * x + c
378 | set denominator to b * x + d
379 |
380 | [numerator, denominator, a, b]
381 | end fn
382 | end script
383 |
384 | set [x, y] to foldItems from rest of CF ¬
385 | at {item 1 of CF, 1, 1, 0} ¬
386 | given handler:quotient
387 |
388 | make Fraction given numerator:x, denominator:y
389 | end convergentFraction
390 |
391 | # primes()
392 | # Efficient and fast prime number generation for primes ≤ +N
393 | to primes(N)
394 | local N
395 |
396 | if N < 2 then return {}
397 |
398 | script
399 | on nextPrime(x, i, L)
400 | local x, i, L
401 |
402 | script primes
403 | property list : L
404 | end script
405 |
406 | repeat
407 | set x to x + 2
408 | repeat with p in the list of primes
409 | if x mod p = 0 then exit repeat
410 | if x < p ^ 2 then return x
411 | end repeat
412 | end repeat
413 | end nextPrime
414 | end script
415 |
416 | {2} & (iterate from 3 to N given handler:result's nextPrime)
417 | end primes
418 |
419 | # factorise()
420 | # Factorises an integer into a list of prime factors
421 | to factorise(N as integer)
422 | local N
423 |
424 | script decompose
425 | on fn(p, |ξ|)
426 | set y to a reference to item 1 of |ξ|
427 | repeat
428 | if y mod p ≠ 0 then return |ξ|
429 |
430 | set y's contents to y / p
431 | set end of |ξ| to p
432 | end repeat
433 | end fn
434 | end script
435 |
436 | tell the rest of (foldItems from primes(N / 2) at {N} ¬
437 | given handler:decompose)
438 | if {} = it then return N
439 | it
440 | end tell
441 | end factorise
442 |
443 | # factorial()
444 | # Calculates the factorial of a number
445 | on factorial(N)
446 | if N = 0 then return 1
447 |
448 | script
449 | on fn(x, i)
450 | x * i
451 | end fn
452 | end script
453 |
454 | tell generator(result's fn, 1) to repeat N times
455 | next()
456 | end repeat
457 | end factorial
458 |
459 | # e()
460 | # Returns the value of e
461 | on e()
462 | script Engel
463 | on fn(x, i)
464 | x + 1 / (factorial(i))
465 | end fn
466 | end script
467 |
468 | tell generator(Engel, 2) to repeat 15 times
469 | next()
470 | end repeat
471 | end e
472 |
473 | # partialSum
474 | # Sums the first N terms of a series defined by the handler +NthTerm
475 | on partialSum given handler:NthTerm
476 | local NthTerm
477 |
478 | set [N, u, sum] to [0, 1, 0]
479 | repeat until abs(u) < 1.0E-15
480 | set N to N + 1
481 |
482 | set u to __(NthTerm)'s fn(N)
483 | set sum to sum + u
484 | end repeat
485 |
486 | if abs(sum) < 4.9E-15 then set sum to 0.0
487 | sum
488 | end partialSum
489 |
490 | # sin()
491 | # Calculates the sine of a number
492 | on sin(x)
493 | local x
494 |
495 | set x to x mod (2 * pi)
496 |
497 | script sine
498 | on fn(N)
499 | (-1) ^ (N + 1) ¬
500 | * (x ^ (2 * N - 1)) ¬
501 | / (factorial(2 * N - 1))
502 | end fn
503 | end script
504 |
505 | partialSum given handler:sine
506 | end sin
507 |
508 | # cos()
509 | # Calculates the cosine of a number
510 | on cos(x)
511 | local x
512 |
513 | set x to x mod (2 * pi)
514 |
515 | script cosine
516 | on fn(N)
517 | (-1) ^ (N + 1) ¬
518 | * (x ^ (2 * N - 2)) ¬
519 | / (factorial(2 * N - 2))
520 | end fn
521 | end script
522 |
523 | partialSum given handler:cosine
524 | end cos
525 |
526 | # ln()
527 | # Calculates the natural logarithm of a number for small +x
528 | on ln(x)
529 | local x
530 |
531 | script logE
532 | on fn(N)
533 | (-1) ^ (N + 1) * ((x - 1) ^ N) / N
534 | end fn
535 | end script
536 |
537 | partialSum given handler:logE
538 | end ln
539 | ---------------------------------------------------------------------------❮END❯
--------------------------------------------------------------------------------
/scripts/lib/+regex.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +REGEX
4 | # nmxt: .applescript
5 | # pDSC: Regular Expression functions. Loading this library also loads _text
6 | # lib.
7 | --------------------------------------------------------------------------------
8 | # sown: CK
9 | # ascd: 2018-12-05
10 | # asmo: 2019-05-18
11 | --------------------------------------------------------------------------------
12 | property name : "regex"
13 | property id : "chri.sk.applescript.lib:regex"
14 | property version : 1.0
15 | property libload : script "load.scpt"
16 | property parent : libload's load("strings")
17 | --------------------------------------------------------------------------------
18 | use framework "Foundation"
19 |
20 | property this : a reference to current application
21 | property nil : a reference to missing value
22 | property _1 : a reference to reference
23 |
24 | property NSDataDetector : a reference to NSDataDetector of this
25 | property NSDictionary : a reference to NSDictionary of this
26 | property NSMutableArray : a reference to NSMutableArray of this
27 | property NSPredicate : a reference to NSPredicate of this
28 | property NSRange : a reference to NSRange of this
29 | property NSRegularExpression : a reference to NSRegularExpression of this
30 | property NSSet : a reference to NSSet of this
31 | property NSString : a reference to NSString of this
32 | property NSURL : a reference to NSURL of this
33 |
34 | property NSRegExSearch : a reference to 1024
35 | property NSTextCheckingTypeLink : a reference to 32
36 | property UTF8 : a reference to 4
37 | --------------------------------------------------------------------------------
38 | # APPLESCRIPT-OBJC HANDLERS:
39 |
40 | to __NSString__(str)
41 | NSString's stringWithString:str
42 | end __NSString__
43 |
44 | to __any__(obj)
45 | item 1 of ((NSArray's arrayWithObject:obj) as list)
46 | end __any__
47 |
48 | # match()
49 | # Returns a list of regular expression pattern matches within the supplied
50 | # string.
51 | to match(str as text, re)
52 | local str, re
53 |
54 | set str to __NSString__(str)
55 | set range to str's rangeOfString:re options:NSRegExSearch
56 | if range's |length| = 0 then return {}
57 | set x to NSRange's NSMaxRange(range)
58 | set s to (str's substringWithRange:range) as text
59 | {s} & match(str's substringWithRange:{¬
60 | x, (str's |length|()) - x}, re)
61 | end match
62 |
63 | # replace()
64 | # Replaces all occurrences of substrings matched by the regular expression
65 | # with the replacement string, +rs, which may include references to sub-
66 | # patterns within the search pattern.
67 | to replace(str as text, re, t)
68 | local str, re, t
69 |
70 | set str to __NSString__(str's contents)
71 | (str's stringByReplacingOccurrencesOfString:re ¬
72 | withString:t options:NSRegExSearch ¬
73 | range:{0, str's |length|()}) as text
74 | end replace
75 |
76 | # map()
77 | # Returns a list of regular expression pattern matches mapped onto a new
78 | # template string formatted using references to subpatterns within the search
79 | # pattern. The search is case-insensitive. Other flags are activated from
80 | # within the regular expression, i.e. (?m), (?s), (?sm), etc.
81 | to map(str as text, re, t)
82 | local str, re, t
83 |
84 | set results to NSMutableArray's array()
85 |
86 | tell (NSRegularExpression's regularExpressionWithPattern:re ¬
87 | options:1 |error|:nil) to repeat with match in ¬
88 | (its matchesInString:str options:0 range:{0, str's length})
89 |
90 | (results's addObject:(its replacementStringForResult:match ¬
91 | inString:str offset:0 template:t))
92 | end repeat
93 |
94 | results as list
95 | end map
96 |
97 | # extractLinks
98 | # Extracts email address and URLs from the +input, which can be a string
99 | # or a path to a file whose contents is to be searched
100 | to extractLinks from input as text
101 | set input to __NSString__(input)
102 | set predicate to "self BEGINSWITH[c] 'mailto:'"
103 |
104 | tell (NSString's stringWithContentsOfURL:(NSURL's ¬
105 | fileURLWithPath:(input's stringByStandardizingPath())) ¬
106 | encoding:UTF8 |error|:nil) to if missing value ≠ it ¬
107 | then set input to it
108 |
109 | set matches to NSSet's setWithArray:((NSDataDetector's ¬
110 | dataDetectorWithTypes:NSTextCheckingTypeLink |error|:nil)'s ¬
111 | matchesInString:input options:0 range:[0, input's |length|()])
112 |
113 | tell (matches's valueForKeyPath:"URL.absoluteString") to set ¬
114 | results to {emails:filteredSetUsingPredicate_(NSPredicate's ¬
115 | predicateWithFormat:predicate)'s allObjects() as list ¬
116 | , URLs:filteredSetUsingPredicate_(NSPredicate's ¬
117 | predicateWithFormat:("!" & predicate))'s allObjects() as list}
118 |
119 | repeat with email in (a reference to emails of results)
120 | tell the email to set its contents to text 8 thru -1 of it
121 | end repeat
122 |
123 | return the results
124 | end extractLinks
125 | ---------------------------------------------------------------------------❮END❯
--------------------------------------------------------------------------------
/scripts/lib/+strings.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +STRINGS
4 | # nmxt: .applescript
5 | # pDSC: String manipulation handlers. Loading this library also loads _lists
6 | # lib. For a string replace function, use _regex lib.
7 | --------------------------------------------------------------------------------
8 | # sown: CK
9 | # ascd: 2018-08-31
10 | # asmo: 2019-05-17
11 | --------------------------------------------------------------------------------
12 | property name : "strings"
13 | property id : "chri.sk.applescript.lib:strings"
14 | property version : 1.5
15 | property libload : script "load.scpt"
16 | property parent : libload's load("arrays")
17 | --------------------------------------------------------------------------------
18 | property lower : "abcdefghijklmnopqrstuvwxyz"
19 | property upper : "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
20 | property whitespace : [tab, space, linefeed, return]
21 | property tids : my text item delimiters
22 | --------------------------------------------------------------------------------
23 | # HANDLERS & SCRIPT OBJECTS:
24 |
25 | # __string__()
26 | # Returns a string representation of an AppleScript object
27 | to __string__(obj)
28 | if class of obj = text then return obj
29 |
30 | try
31 | set s to {_:obj} as text
32 | on error E
33 | my tid:{"Can’t make {_:"}
34 | set s to text items 2 thru -1 of E as text
35 |
36 | my tid:{"} into type text."}
37 | set s to text items 1 thru -2 of s as text
38 |
39 | my tid:{}
40 | end try
41 |
42 | s
43 | end __string__
44 |
45 | # __text__() [ syn. concat() ]
46 | # Joins a list of text items together without any delimiters
47 | to __text__(t as linked list)
48 | t as text
49 | end __text__
50 | on concat(t)
51 | __text__(t)
52 | end concat
53 |
54 | # __class__()
55 | # Takes the text name of an AppleScript class and returns the corresponding
56 | # type class object, or 0 if the input doesn't correspond to an AppleScript
57 | # class. Chevron syntax codes can be used as input, e.g. __class__("orig").
58 | on __class__(str as text)
59 | local str
60 |
61 | try
62 | run script str & " as class"
63 | on error
64 | try
65 | set str to text 1 thru 4 of (str & " ")
66 | run script "«class " & str & "» as class"
67 | on error
68 | 0
69 | end try
70 | end try
71 | end __class__
72 |
73 | # tid: [ syn. tid() ]
74 | # Sets AppleScript's text item delimiters to the supplied value. If this
75 | # value is {} or 0, the text item delimiters are reset to their previous
76 | # value.
77 | on tid:(d as list)
78 | local d
79 |
80 | if d = {} or d = {0} then
81 | set d to tids
82 | else if d's item 1 = null then
83 | set N to random number from 0.0 to 1.0E+9
84 | set d's first item to N / pi
85 | end if
86 |
87 | set tids to my text item delimiters
88 | set my text item delimiters to d
89 | end tid:
90 | on tid(d)
91 | tid_(d)
92 | end tid
93 |
94 | # join() [ syn. glue() ]
95 | # Joins a list of items (+L) together using the supplied delimiter (+d)
96 | to join by d as list given list:L as list
97 | tid(d)
98 | set t to L as text
99 | tid(0)
100 | t
101 | end join
102 | to glue(t, d)
103 | join by d given list:L
104 | end glue
105 |
106 | # split() [ syn. unjoin(), unglue() ]
107 | # Splits text (+t) into a list of items wherever it encounters the supplied
108 | # delimiters (+d)
109 | on split at d as list given string:t as text
110 | tid(d)
111 | set L to text items of t
112 | tid(0)
113 | L
114 | end split
115 | to unjoin(t, d)
116 | split at d given string:t
117 | end unjoin
118 | to unglue(t, d)
119 | split at d given string:t
120 | end unglue
121 |
122 | # offset
123 | # Returns the indices of each occurrence of a substring in a given string
124 | on offset of needle in haystack
125 | local needle, haystack
126 |
127 | if the needle is not in the haystack then return {}
128 | tid(needle)
129 |
130 | script
131 | property N : needle's length
132 | property t : {1 - N} & haystack's text items
133 | end script
134 |
135 | tell the result
136 | repeat with i from 2 to (its t's length) - 1
137 | set x to item i of its t
138 | set y to item (i - 1) of its t
139 | set item i of its t to (its N) + (x's length) + y
140 | end repeat
141 |
142 | tid(0)
143 |
144 | items 2 thru -2 of its t
145 | end tell
146 | end offset
147 |
148 | # hasPrefix [ syn. startsWith() ]
149 | # Determines whether a given string starts with any one of a list of
150 | # +substrings, returning true or false
151 | on hasPrefix from substrings as list given string:t as text
152 | local substrings, t
153 |
154 | script prefixes
155 | property list : substrings
156 | end script
157 |
158 | repeat with prefix in the list of prefixes
159 | if t starts with prefix ¬
160 | then return true
161 | end repeat
162 |
163 | false
164 | end hasPrefix
165 | on startsWith(t as text, substrings as list)
166 | local t, substrings
167 | hasPrefix from substrings given string:t
168 | end startsWith
169 |
170 | # rev()
171 | # gnirts a sesreveR
172 | on rev(t as text)
173 | local t
174 |
175 | __text__(reverse of characters of t)
176 | end rev
177 |
178 | # uppercase()
179 | # RETURNS THE SUPPLIED STRING FORMATTED IN UPPERCASE (A-Z ONLY)
180 | to uppercase(t as text)
181 | local t
182 |
183 | script capitalise
184 | property chars : characters of t
185 |
186 | to fn(x)
187 | tell (offset of x in lower) to if it ≠ {} ¬
188 | then return upper's character it
189 | x's contents
190 | end fn
191 | end script
192 |
193 | mapItems from chars of capitalise given handler:capitalise
194 | __text__(result)
195 | end uppercase
196 |
197 | # lowercase()
198 | # returns the supplied string formatted in lowercase (a-z only)
199 | to lowercase(t as text)
200 | local t
201 |
202 | script decapitalise
203 | property chars : characters of t
204 |
205 | to fn(x)
206 | tell (offset of x in upper) to if it ≠ {} ¬
207 | then return lower's character it
208 | x's contents
209 | end fn
210 | end script
211 |
212 | mapItems from chars of decapitalise given handler:decapitalise
213 | __text__(result)
214 | end lowercase
215 |
216 | # titlecase()
217 | # Returns The Supplied String Formatted In Titlecase (A-Z Only)
218 | to titlecase(t as text)
219 | local t
220 |
221 | script titlecase
222 | property chars : characters of t
223 |
224 | to fn(x, i, L)
225 | if i = 1 or item (i - 1) of L ¬
226 | is in whitespace then ¬
227 | return uppercase(x)
228 |
229 | lowercase(x)
230 | end fn
231 | end script
232 |
233 | mapItems from chars of titlecase given handler:titlecase
234 | __text__(result)
235 | end titlecase
236 |
237 | # substrings()
238 | # Returns every substring of a given string
239 | on substrings from t as text
240 | local t
241 |
242 | script
243 | property chars : characters of t
244 | property result : {}
245 |
246 | to recurse thru s at i : 1 for N : 1
247 | local i, N, s
248 |
249 | if N > length of s then ¬
250 | return my result
251 |
252 | set j to i + N - 1
253 |
254 | if j > length of s then
255 | recurse thru s for N + 1
256 | return the result
257 | end if
258 |
259 | __text__(items i thru j of s)
260 | set end of my result to result
261 | recurse thru s at i + 1 for N
262 | end recurse
263 | end script
264 |
265 | tell the result to recurse thru its chars
266 | end substrings
267 | on substr(t)
268 | substrings from t
269 | end substr
270 |
271 | # LCS()
272 | # Returns the longest common substring of two strings
273 | on LCS(|s₀| as text, |t₀| as text)
274 | local |s₀|, |t₀|
275 |
276 | script
277 | property s : substr(|s₀|)
278 | property t : substr(|t₀|)
279 |
280 | property list : intersection(s, t)
281 | end script
282 |
283 | return the last item of the result's list
284 | end LCS
285 |
286 | # anagrams()
287 | # Lists every permutation of character arrangement for a given string
288 | on anagrams(t as text)
289 | local t
290 |
291 | script
292 | property s : characters of t
293 | property result : {}
294 |
295 | to permute(i, k)
296 | local i, k
297 |
298 | if i > k then set end of my result to s as text
299 |
300 | repeat with j from i to k
301 | swap(s, i, j)
302 | permute(i + 1, k)
303 | swap(s, i, j)
304 | end repeat
305 | end permute
306 | end script
307 |
308 | tell the result
309 | permute(1, length of t)
310 | unique_(its result)
311 | end tell
312 | end anagrams
313 | ---------------------------------------------------------------------------❮END❯
--------------------------------------------------------------------------------
/scripts/lib/+utils.applescript:
--------------------------------------------------------------------------------
1 | #!/usr/bin/osascript
2 | --------------------------------------------------------------------------------
3 | # pnam: +UTILS
4 | # nmxt: .applescript
5 | # pDSC: System information, interface and utility handlers
6 | --------------------------------------------------------------------------------
7 | # sown: CK
8 | # ascd: 2018-11-17
9 | # asmo: 2019-05-23
10 | --------------------------------------------------------------------------------
11 | property name : "utils"
12 | property id : "chri.sk.applescript.lib:utils"
13 | property version : 1.5
14 | property parent: AppleScript
15 | --------------------------------------------------------------------------------
16 | use framework "Automator"
17 | use framework "CoreWLAN"
18 | use framework "Foundation"
19 | use framework "JavaScriptCore"
20 | use scripting additions
21 |
22 | property parent : script "load.scpt"
23 | property this : a reference to current application
24 | property nil : a reference to missing value
25 | property _1 : a reference to reference
26 |
27 | property AMWorkflow : a reference to AMWorkflow of this
28 | property CWWiFiClient : a reference to CWWiFiClient of this
29 | property JSContext : a reference to JSContext of this
30 | property NSArray : a reference to NSArray of this
31 | property NSBundle : a reference to NSBundle of this
32 | property NSDictionary : a reference to NSDictionary of this
33 | property NSPredicate : a reference to NSPredicate of this
34 | property NSString : a reference to NSString of this
35 | property NSURL : a reference to NSURL of this
36 | property NSWorkspace : a reference to NSWorkspace of this
37 |
38 | property interface : a reference to CWWiFiClient's sharedWiFiClient's interface
39 | property Workspace : a reference to NSWorkspace's sharedWorkspace
40 |
41 | property UTF8 : a reference to 4
42 | property WEP104 : a reference to 2
43 |
44 | property WiFiChannels : {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 36, 40, 44, 48}
45 | --------------------------------------------------------------------------------
46 | # HANDLERS & SCRIPT OBJECTS:
47 | # WiFiOn:
48 | # If +state is a boolean value, then this handler sets the power state of the
49 | # WiFi interface accordingly: true/yes -> On, false/no -> Off. Otherwise,
50 | # the handler retrieves the current power state of the interface.
51 | on WiFiOn:state
52 | tell the interface()
53 | if state is not in [true, false, yes, no] ¬
54 | then return its powerOn() as boolean
55 |
56 | its setPower:state |error|:nil
57 | end tell
58 |
59 | WiFiOn_(null)
60 | end WiFiOn:
61 |
62 | # WiFiStrengths()
63 | # Returns a records containing the signal strengths of nearby WiFi networks
64 | # labelled according to their SSIDs
65 | on WiFiStrengths()
66 | tell the interface()
67 | if not (its powerOn() as boolean) then return false
68 |
69 | its scanForNetworksWithName:nil |error|:nil
70 | set networks to the result's allObjects()
71 | end tell
72 | set SSIDs to networks's valueForKey:"ssid"
73 | set RSSIValues to networks's valueForKey:"rssiValue"
74 |
75 | NSDictionary's dictionaryWithObjects:RSSIValues forKeys:SSIDs
76 | result as record
77 | end WiFiStrengths
78 |
79 | # joinNetwork
80 | # Turns on the WiFi interface and attempts to search for visible networks
81 | # with the specified +ssid, joining the first one that matches
82 | to joinNetwork given name:ssid as text, password:pw as text : missing value
83 | local ssid, pw
84 |
85 | set predicate to "self.ssid == %@"
86 | set |?| to NSPredicate's predicateWithFormat_(predicate, ssid)
87 |
88 | tell the interface()
89 | its setPower:true |error|:nil
90 |
91 | set networks to {}
92 | tell cachedScanResults() to if it ≠ missing value then ¬
93 | set networks to filteredSetUsingPredicate_(|?|)
94 |
95 | if the number of networks = 0 then set networks to ¬
96 | (its scanForNetworksWithName:ssid |error|:nil)
97 |
98 | set network to (allObjects() in networks)'s firstObject()
99 | its associateToNetwork:network |password|:pw |error|:_1
100 | set [success, E] to the result
101 | if E ≠ missing value then return ¬
102 | E's localizedDescription() ¬
103 | as text
104 | success
105 | end tell
106 | end joinNetwork
107 |
108 | # createAdHocNetwork:
109 | # creates and joins an ad-hoc local Wi-Fi network using the supplied +ssid,
110 | # and password (+pw), broadcasting on the specified +channel
111 | to createAdHocNetwork:{name:ssid as text ¬
112 | , password:pw as text ¬
113 | , channel:channel as integer}
114 | local ssid, pw, channel
115 |
116 | if channel is not in WiFiChannels then set ¬
117 | channel to some item of WiFiChannels
118 |
119 | interface()'s startIBSSModeWithSSID:((NSString's ¬
120 | stringWithString:ssid)'s ¬
121 | dataUsingEncoding:UTF8) ¬
122 | security:WEP104 channel:channel ¬
123 | |password|:pw |error|:_1
124 | set [success, E] to the result
125 | if E ≠ missing value then return E's localizedDescription() as text
126 |
127 | success
128 | end createAdHocNetwork:
129 |
130 | # publicIP() [ syn. externalIP() ]
131 | # Retrieves the public IPv4 address of your router assigned by the ISP
132 | on publicIP()
133 | (NSString's stringWithContentsOfURL:(NSURL's ¬
134 | URLWithString:"https://api.ipify.org/") ¬
135 | encoding:UTF8 |error|:nil) as text
136 | end publicIP
137 | on externalIP()
138 | publicIP()
139 | end externalIP
140 |
141 | # battery()
142 | # Battery information
143 | on battery()
144 | script battery
145 | use framework "IOKit"
146 | property parent : this
147 |
148 | on info()
149 | IOPSCopyPowerSourcesInfo() of this
150 | result as record
151 | end info
152 | end script
153 |
154 | battery's info()
155 | end battery
156 |
157 | # defaultBrowser()
158 | # Returns the name of the system's default web browser
159 | on defaultBrowser()
160 | (NSWorkspace's sharedWorkspace()'s ¬
161 | URLForApplicationToOpenURL:(NSURL's URLWithString:"http:"))'s ¬
162 | lastPathComponent()'s stringByDeletingPathExtension() as text
163 | end defaultBrowser
164 |
165 | # colour [ syn. colorAt() ]
166 | # Returns the RGBA colour value of the pixel at coordinates {+x, +y}.
167 | # Pass either ordinate as null to use the mouse cursor location. RGB
168 | # values' ranges are all 0-255; the alpha value range is 0.0-1.0.
169 | on colour at {x, y}
170 | local x, y
171 |
172 | if {x, y} contains null then set {x, y} to {"mouseLoc.x", "mouseLoc.y"}
173 | set coords to [x, ",", space, y] as text
174 |
175 | run script "
176 | ObjC.import('Cocoa');
177 |
178 | var mouseLoc = $.NSEvent.mouseLocation;
179 | var screenH = $.NSScreen.mainScreen.frame.size.height;
180 | mouseLoc.y = screenH - mouseLoc.y;
181 |
182 | var image = $.CGDisplayCreateImageForRect(
183 | $.CGMainDisplayID(),
184 | $.CGRectMake(" & coords & ", 1, 1)
185 | );
186 |
187 | var bitmap = $.NSBitmapImageRep.alloc.initWithCGImage(image);
188 | $.CGImageRelease(image);
189 |
190 | var color = bitmap.colorAtXY(0,0);
191 | bitmap.release;
192 |
193 | var r = Ref(), g = Ref(), b = Ref(), a = Ref();
194 | color.getRedGreenBlueAlpha(r,g,b,a);
195 |
196 | var rgba = [r[0]*255, g[0]*255, b[0]*255, a[0]];
197 | rgba;" in "JavaScript"
198 | end colour
199 | on colorAt(x, y)
200 | colour at {x, y}
201 | end colorAt
202 |
203 | # mouse
204 | # Moves the mouse cursor to a new position specified by {+x, +y}, relative to
205 | # the top-left corner of the screen
206 | on mouse to {x, y}
207 | local x, y
208 |
209 | run script "
210 | ObjC.import('CoreGraphics');
211 |
212 | $.CGDisplayMoveCursorToPoint(
213 | $.CGMainDisplayID(),
214 | {x:" & x & ", y:" & y & "}
215 | );" in "JavaScript"
216 | end mouse
217 |
218 | # click [ syn. clickAt() ]
219 | # Issues a mouse click at coordinates {+x, +y}, or at the current mouse
220 | # cursor location if either ordinate is passed null
221 | to click at {x, y}
222 | local x, y
223 |
224 | if {x, y} contains null then set {x, y} to {"mouseLoc.x", "mouseLoc.y"}
225 |
226 | run script "
227 | ObjC.import('Cocoa');
228 | nil=$();
229 |
230 | var mouseLoc = $.NSEvent.mouseLocation;
231 | var screenH = $.NSScreen.mainScreen.frame.size.height;
232 | mouseLoc.y = screenH - mouseLoc.y;
233 |
234 | var coords = {x: " & x & ", y: " & y & "};
235 |
236 | var mousedownevent = $.CGEventCreateMouseEvent(nil,
237 | $.kCGEventLeftMouseDown,
238 | coords,
239 | nil);
240 |
241 | var mouseupevent = $.CGEventCreateMouseEvent(nil,
242 | $.kCGEventLeftMouseUp,
243 | coords,
244 | nil);
245 |
246 | $.CGEventPost($.kCGHIDEventTap, mousedownevent);
247 | $.CGEventPost($.kCGHIDEventTap, mouseupevent);
248 | $.CFRelease(mousedownevent);
249 | $.CFRelease(mouseupevent);" in "JavaScript"
250 | end click
251 | to clickAt(x, y)
252 | click at {x, y}
253 | end clickAt
254 |
255 | # scrollY()
256 | # Issues a mousewheel vertical scrolling event with velocity +dx
257 | to scrollY(dx)
258 | local dx
259 |
260 | run script "ObjC.import('CoreGraphics');
261 | nil=$();
262 |
263 | event = $.CGEventCreateScrollWheelEvent(
264 | nil,
265 | $.kCGScrollEventUnitLine,
266 | 1,
267 | " & dx & "
268 | );
269 | $.CGEventPost($.kCGHIDEventTap, event);
270 | $.CFRelease(event)" in "JavaScript"
271 | end scrollY
272 |
273 | # sendKeyCode [ see: press: ]
274 | # Sends a keyboard event to an application, +A, specified by name (or as an
275 | # application reference). Boolean options are available to simulate key
276 | # modifier buttons, but these currently don't work due to a bug in the
277 | # API.
278 | to sendKeyCode at key to A as text given shift:shift as boolean : false ¬
279 | , command:cmd as boolean : false, option:alt as boolean : false
280 | local key, A, shift, cmd, alt
281 |
282 | shiftkey(shift)
283 | cmdKey(cmd)
284 | altKey(alt)
285 |
286 | run script "
287 | ObjC.import('Cocoa');
288 | nil=$();
289 |
290 | var app = '" & A & "';
291 | var bundleID = Application(app).id();
292 | var pid = ObjC.unwrap($.NSRunningApplication
293 | .runningApplicationsWithBundleIdentifier(
294 | bundleID))[0].processIdentifier;
295 |
296 | var keydownevent = $.CGEventCreateKeyboardEvent(nil," & key & ",true);
297 | var keyupevent = $.CGEventCreateKeyboardEvent(nil," & key & ",false);
298 |
299 | $.CGEventPostToPid(pid, keydownevent);
300 | $.CGEventPostToPid(pid, keyupevent);
301 |
302 | $.CFRelease(keydownevent);
303 | $.CFRelease(keyupevent);" in "JavaScript"
304 |
305 | shiftkey(up)
306 | cmdKey(up)
307 | altKey(up)
308 | end sendKeyCode
309 |
310 | # sendChar / sendChars
311 | # Similar to sendKeyCode but receives text instead of a keycode
312 | to sendChar to (A as text) given character:char as text ¬
313 | , shift:shift as boolean : false, command:cmd as boolean : false ¬
314 | , option:alt as boolean : false
315 | local char, A, shift, cmd, alt
316 |
317 | set uchar to (NSString's stringWithString:char)'s uppercaseString()
318 | read (path to "KEYCODES") as «class utf8» using delimiter linefeed
319 | set code to (NSArray's arrayWithArray:result)'s indexOfObject:uchar
320 |
321 | considering case
322 | set shift to char = (uchar as text)
323 | end considering
324 |
325 | sendKeyCode at code to A given shift:shift, command:cmd, option:alt
326 | end sendChar
327 | to sendChars to A as text given string:chars as text ¬
328 | , shift:shift as boolean : false, command:cmd as boolean : false ¬
329 | , option:alt as boolean : false
330 | local char, A, shift, cmd, alt
331 |
332 | repeat with char in characters of chars
333 | sendChar to A given character:char ¬
334 | , shift:shift, command:cmd ¬
335 | , option:alt
336 | end repeat
337 | end sendChars
338 |
339 | # setModifier:toState:
340 | # Set the state of a modifier key
341 | to setModifier:(modifier as constant) toState:(state as text)
342 | tell application "System Events"
343 | if state is in ["down", "true", "yes"] ¬
344 | then return (key down modifier)
345 | key up modifier
346 | end tell
347 | end setModifier:toState:
348 |
349 | using terms from application "System Events"
350 | # shiftKey()
351 | # Declare the state of the shift key
352 | on shiftkey(state as {text, boolean, constant})
353 | my setModifier:shift toState:state
354 | end shiftkey
355 |
356 | # cmdKey()
357 | # Declare the state of the command key
358 | on cmdKey(state as {text, boolean, constant})
359 | my setModifier:command toState:state
360 | end cmdKey
361 |
362 | # altKey()
363 | # Declare the state of the option key
364 | on altKey(state as {text, boolean, constant})
365 | my setModifier:option toState:state
366 | end altKey
367 |
368 | # ctrlKey()
369 | # Declare the state of the control key
370 | on ctrlKey(state as {text, boolean, constant})
371 | my setModifier:control toState:state
372 | end ctrlKey
373 | end using terms from
374 |
375 | # define() [ syn. synonyms ]
376 | # Look up a word in the system's default dictionary or thesaurus
377 | to define(w as text)
378 | local w
379 |
380 | run script "ObjC.import('CoreServices');
381 | nil = $();
382 | var word = '" & w & "';
383 | ObjC.unwrap(
384 | $.DCSCopyTextDefinition(
385 | nil,
386 | word,
387 | $.NSMakeRange(0, word.length)
388 | ));" in "JavaScript"
389 | end define
390 | on synonyms for w
391 | define(w)
392 | end synonyms
393 |
394 | # listFrameworks()
395 | # Returns a list of all the frameworks containing Objective-C classes
396 | to listFrameworks()
397 | set allFrameworks to NSBundle's allFrameworks()'s bundlePath's ¬
398 | lastPathComponent's stringByDeletingPathExtension's ¬
399 | sortedArrayUsingSelector:"caseInsensitiveCompare:"
400 |
401 | set fp to path to [my rootdir, "Data", "/", "FRAMEWORKS"]
402 |
403 | (allFrameworks's componentsJoinedByString:linefeed) as text
404 | write the result to fp as «class utf8»
405 | end listFrameworks
406 | ---------------------------------------------------------------------------❮END❯
--------------------------------------------------------------------------------
/scripts/lib/load.applescript:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/lib/load.applescript
--------------------------------------------------------------------------------
/scripts/lib/load.scpt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ChristoferK/AppleScriptive/9b86ba8b84bf5c5b7982d2ee67660bdf9e4e81c5/scripts/lib/load.scpt
--------------------------------------------------------------------------------