rb-appscript 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +19 -0
- data/LICENSE +1 -1
- data/README +5 -5
- data/TODO +3 -1
- data/doc/aem-manual/01_introduction.html +2 -2
- data/doc/aem-manual/02_apioverview.html +2 -2
- data/doc/aem-manual/03_packingandunpackingdata.html +2 -2
- data/doc/aem-manual/04_references.html +9 -21
- data/doc/aem-manual/05_targettingapplications.html +3 -3
- data/doc/aem-manual/06_buildingandsendingevents.html +2 -2
- data/doc/aem-manual/07_findapp.html +2 -2
- data/doc/aem-manual/08_examples.html +3 -3
- data/doc/aem-manual/index.html +2 -2
- data/doc/appscript-manual/01_introduction.html +2 -2
- data/doc/appscript-manual/02_aboutappscripting.html +2 -2
- data/doc/appscript-manual/03_quicktutorial.html +2 -2
- data/doc/appscript-manual/04_gettinghelp.html +2 -2
- data/doc/appscript-manual/05_keywordconversion.html +2 -2
- data/doc/appscript-manual/06_classesandenums.html +2 -2
- data/doc/appscript-manual/07_applicationobjects.html +2 -2
- data/doc/appscript-manual/08_realvsgenericreferences.html +2 -2
- data/doc/appscript-manual/09_referenceforms.html +3 -3
- data/doc/appscript-manual/10_referenceexamples.html +2 -2
- data/doc/appscript-manual/11_applicationcommands.html +2 -2
- data/doc/appscript-manual/12_commandexamples.html +2 -2
- data/doc/appscript-manual/13_performanceissues.html +2 -2
- data/doc/appscript-manual/14_notes.html +2 -2
- data/doc/appscript-manual/index.html +2 -2
- data/doc/{appscript-manual/full.css → full.css} +0 -0
- data/doc/index.html +2 -2
- data/doc/mactypes-manual/index.html +2 -2
- data/doc/osax-manual/index.html +6 -6
- data/extconf.rb +13 -3
- data/rb-appscript.gemspec +2 -1
- data/src/lib/_aem/aemreference.rb +22 -31
- data/src/lib/_aem/codecs.rb +21 -19
- data/src/lib/_aem/connect.rb +7 -3
- data/src/lib/_aem/findapp.rb +7 -3
- data/src/lib/_aem/mactypes.rb +22 -14
- data/src/lib/_aem/send.rb +7 -3
- data/src/lib/_aem/typewrappers.rb +7 -3
- data/src/lib/_appscript/defaultterminology.rb +7 -3
- data/src/lib/_appscript/referencerenderer.rb +7 -3
- data/src/lib/_appscript/reservedkeywords.rb +8 -3
- data/src/lib/_appscript/safeobject.rb +12 -2
- data/src/lib/_appscript/terminology.rb +31 -15
- data/src/lib/aem.rb +8 -3
- data/src/lib/appscript.rb +74 -46
- data/src/lib/osax.rb +7 -6
- data/src/rbae.c +46 -77
- data/test/test_aemreference.rb +10 -4
- data/test/test_appscriptcommands.rb +3 -1
- data/test/test_appscriptreference.rb +5 -3
- data/test/test_codecs.rb +3 -1
- data/test/test_findapp.rb +3 -1
- data/test/test_mactypes.rb +12 -6
- data/test/test_osax.rb +3 -6
- metadata +44 -38
- data/doc/aem-manual/full.css +0 -21
data/CHANGES
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
2008-02-18 -- 0.5.1
|
2
|
+
|
3
|
+
- fixed bug in Appscript::Application#launch where calling it on an application specified by_pid/by_url/by_aem_app would raise error -1708
|
4
|
+
|
5
|
+
- aem by-range specifiers now accept non-reference values (these are expanded to con-based references when packed)
|
6
|
+
|
7
|
+
- fixed bug in Appscript::Reference#_send_command method's auto-reconnection code where a re-sent event that fails now raises the correct CommandError (previously re-raised the original 'invalid connection' error)
|
8
|
+
|
9
|
+
- fixed bug when packing Fixnums in 64-bit Ruby
|
10
|
+
|
11
|
+
- fixed a memory leak in AE.get_app_terminology
|
12
|
+
|
13
|
+
- fixed minor bug and improved error reporting in Appscript::Reference#[]
|
14
|
+
|
15
|
+
- removed AEMReference::PositionSpecifier's #and, #or, #not methods as these shortcuts are no longer supported
|
16
|
+
|
17
|
+
- basic Ruby 1.9 compatibility
|
18
|
+
|
19
|
+
|
1
20
|
2007-12-18 -- 0.5.0 (beta 2)
|
2
21
|
|
3
22
|
- OSAX module no longer errors on import in 10.5 if a ScriptingAdditions folder (e.g. ~/Library/ScriptingAdditions) doesn't exist
|
data/LICENSE
CHANGED
@@ -7,7 +7,7 @@ All code is released under the MIT License, except for the following:
|
|
7
7
|
======================================================================
|
8
8
|
MIT LICENSE
|
9
9
|
|
10
|
-
Copyright (C) 2006
|
10
|
+
Copyright (C) 2006-2008 HAS
|
11
11
|
|
12
12
|
======================================================================
|
13
13
|
THE RUBY LICENSE
|
data/README
CHANGED
@@ -22,16 +22,16 @@ $ sudo make install
|
|
22
22
|
|
23
23
|
-------
|
24
24
|
|
25
|
-
Please note that the version of Ruby included with Mac OS X 10.4 is missing the header files needed to build appscript on PPC-based Macs.
|
25
|
+
Please note that the version of Ruby included with Mac OS X 10.4 (Tiger) is missing the header files needed to build appscript on PPC-based Macs. Tiger users can avoid this issue by installing the latest version of Ruby from <http://www.ruby-lang.org/en/downloads/> and updating their shell login profiles to suit.
|
26
26
|
|
27
27
|
======================================================================
|
28
28
|
NOTES
|
29
29
|
|
30
|
-
-
|
30
|
+
- This is a beta release. Please file bug reports if you encounter any problems.
|
31
31
|
|
32
|
-
- rb-appscript 0.5.
|
32
|
+
- rb-appscript 0.5.1 contains bug and compatibility fixes; see the CHANGES file and documentation for details.
|
33
33
|
|
34
|
-
- rb-appscript
|
34
|
+
- rb-appscript currently provides 64-bit support for OS X 10.5 in the following modules: AE, AEM, Appscript. The OSAX module provides partial 64-bit support; see the osax manual for details.
|
35
35
|
|
36
36
|
- ASDictionary 0.9.0 or later is required to use rb-appscript's built-in #help method. If ASDictionary isn't installed, interactive help won't be available but appscript will continue to operate as normal.
|
37
37
|
|
@@ -44,6 +44,6 @@ AUTHOR
|
|
44
44
|
======================================================================
|
45
45
|
COPYRIGHT
|
46
46
|
|
47
|
-
Copyright (C) 2006
|
47
|
+
Copyright (C) 2006-2008 HAS
|
48
48
|
|
49
49
|
Appscript is released under the MIT License. See the LICENSE file for more information.
|
data/TODO
CHANGED
@@ -8,4 +8,6 @@ TO DO
|
|
8
8
|
|
9
9
|
- _aem/connect.rb module refers directly to Send::Event instead of going via the AEM::Application::Event hook, which might cause problems when used in an OSA component or other situation where client needs to customise all event creation and/or dispatch.
|
10
10
|
|
11
|
-
- #== and #hash methods in MacTypes::Alias, MacTypes::FileURL lack robustness; see notes in mactypes manual for details. Could these be improved? (Note: some mactypes unit tests may fail in some situations due to 'dumb' nature of these methods.)
|
11
|
+
- #== and #hash methods in MacTypes::Alias, MacTypes::FileURL lack robustness; see notes in mactypes manual for details. Could these be improved? (Note: some mactypes unit tests may fail in some situations due to 'dumb' nature of these methods.)
|
12
|
+
|
13
|
+
- support string encodings in Ruby 1.9
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 1. Introduction</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -43,6 +43,6 @@
|
|
43
43
|
</div>
|
44
44
|
|
45
45
|
<!--footer-->
|
46
|
-
<p class="footer">©
|
46
|
+
<p class="footer">© 2006-2008 HAS</p>
|
47
47
|
</body>
|
48
48
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 2. API overview</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -84,6 +84,6 @@
|
|
84
84
|
</div>
|
85
85
|
|
86
86
|
<!--footer-->
|
87
|
-
<p class="footer">©
|
87
|
+
<p class="footer">© 2006-2008 HAS</p>
|
88
88
|
</body>
|
89
89
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 3. Packing and unpacking data</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -93,6 +93,6 @@ AEKey < AETypeBase -- represents an AE object of typeKeyword</code></pre>
|
|
93
93
|
</div>
|
94
94
|
|
95
95
|
<!--footer-->
|
96
|
-
<p class="footer">©
|
96
|
+
<p class="footer">© 2006-2008 HAS</p>
|
97
97
|
</body>
|
98
98
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 4. References</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -232,18 +232,7 @@ TO DO: finish
|
|
232
232
|
|
233
233
|
is_in(val) -- self is in value
|
234
234
|
val : anything
|
235
|
-
Result : Test
|
236
|
-
|
237
|
-
and(*operands) -- equivalent to self.eq(True).and(*operands)
|
238
|
-
operands : Test/Test
|
239
|
-
Result : Test
|
240
|
-
|
241
|
-
or(*operands) -- equivalent to self.eq(True).or(*operands)
|
242
|
-
operands : Test/Test
|
243
|
-
Result : Test
|
244
|
-
|
245
|
-
not
|
246
|
-
Result : Test -- equivalent to self.eq(True).not</code></pre>
|
235
|
+
Result : Test</code></pre>
|
247
236
|
|
248
237
|
|
249
238
|
<h3>Methods for all multi-element specifiers</h3>
|
@@ -362,12 +351,11 @@ ElementByRelativePosition < SingleElement -- refers to the previous or next e
|
|
362
351
|
|
363
352
|
ElementsByFilter < MultipleElements -- refers to all elements in the
|
364
353
|
referenced container object(s) that fulfill a given condition;
|
365
|
-
e.g. ref.by_filter(AEM.its.
|
354
|
+
e.g. ref.by_filter(AEM.its.property('pnam').begins_with('a'))
|
366
355
|
|
367
356
|
|
368
|
-
AllElements
|
369
|
-
|
370
|
-
e.g. ref.elements('docu')</code></pre>
|
357
|
+
AllElements < MultipleElements -- refers to all elements of the given class
|
358
|
+
in the referenced container object(s); e.g. ref.elements('docu')</code></pre>
|
371
359
|
|
372
360
|
|
373
361
|
<h3>Tests</h3>
|
@@ -379,13 +367,13 @@ AllElements(MultipleElements) -- refers to all elements of
|
|
379
367
|
|
380
368
|
<h3>Reference Roots</h3>
|
381
369
|
|
382
|
-
<pre><code>ApplicationRoot <
|
370
|
+
<pre><code>ApplicationRoot < PositionSpecifier -- AEM.app returns an instance of
|
383
371
|
this class
|
384
372
|
|
385
|
-
CurrentContainer <
|
373
|
+
CurrentContainer < PositionSpecifier -- AEM.con returns an instance of
|
386
374
|
this class
|
387
375
|
|
388
|
-
ObjectBeingExamined <
|
376
|
+
ObjectBeingExamined < PositionSpecifier -- AEM.its returns an instance
|
389
377
|
of this class</code></pre>
|
390
378
|
|
391
379
|
|
@@ -401,6 +389,6 @@ ObjectBeingExamined < PropertySpecifier -- AEM.its returns an instance
|
|
401
389
|
</div>
|
402
390
|
|
403
391
|
<!--footer-->
|
404
|
-
<p class="footer">©
|
392
|
+
<p class="footer">© 2006-2008 HAS</p>
|
405
393
|
</body>
|
406
394
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 5. Targetting Applications</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -103,7 +103,7 @@
|
|
103
103
|
|
104
104
|
<p>When targetting a local application by path, the full path to the application (or application bundle) must be given, including a <code>.app</code> suffix if present. Note that aem identifies local applications by process serial number for reliability. If the target application is not already running when a new <code>Application</code> instance is created, it will be started automatically so that a PSN can be acquired. If the application can't be launched for some reason (e.g. if it's in the Trash), an <code>AEM::CantLaunchApplicationError</code> error will be raised.</p>
|
105
105
|
|
106
|
-
<p>If the <code>by_url</code> constructor is used, its <code>url</code> argument should be an eppc URL string. Aem will pack this as an <code>AEDesc</code> of <code>
|
106
|
+
<p>If the <code>by_url</code> constructor is used, its <code>url</code> argument should be an eppc URL string. Aem will pack this as an <code>AEDesc</code> of <code>typeApplicationURL</code>. The target machine must have Remote Apple Events enabled in its Sharing preferences.</p>
|
107
107
|
|
108
108
|
<p>Clients can also supply their own <code>AEAddressDesc</code> if they prefer. This should be an <code>AE::AEDesc</code> of one of the following types:</p>
|
109
109
|
|
@@ -150,6 +150,6 @@ KAE::TypeProcessSerialNumber</code></pre>
|
|
150
150
|
</div>
|
151
151
|
|
152
152
|
<!--footer-->
|
153
|
-
<p class="footer">©
|
153
|
+
<p class="footer">© 2006-2008 HAS</p>
|
154
154
|
</body>
|
155
155
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 6. Building and sending events</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -170,6 +170,6 @@ KAE::KAECanSwitchLayer</code></pre>
|
|
170
170
|
</div>
|
171
171
|
|
172
172
|
<!--footer-->
|
173
|
-
<p class="footer">©
|
173
|
+
<p class="footer">© 2006-2008 HAS</p>
|
174
174
|
</body>
|
175
175
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 7. Locating applications</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -49,6 +49,6 @@ by_creator(creator) -- Find the application with the given creator type.
|
|
49
49
|
</div>
|
50
50
|
|
51
51
|
<!--footer-->
|
52
|
-
<p class="footer">©
|
52
|
+
<p class="footer">© 2006-2008 HAS</p>
|
53
53
|
</body>
|
54
54
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>aem | 8. Examples</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -56,7 +56,7 @@ AEM.app.elements('docu').by_index(1).elements('cpar').by_filter(AEM.its.ne("\n")
|
|
56
56
|
<h2>Sending events</h2>
|
57
57
|
|
58
58
|
<pre><code># quit TextEdit
|
59
|
-
textedit.event('
|
59
|
+
textedit.event('aevtquit').send
|
60
60
|
|
61
61
|
# name of TextEdit
|
62
62
|
p textedit.event('coregetd', {'----' => AEM.app.property('pnam')}).send
|
@@ -80,6 +80,6 @@ textedit.event('corecrel', {
|
|
80
80
|
</div>
|
81
81
|
|
82
82
|
<!--footer-->
|
83
|
-
<p class="footer">©
|
83
|
+
<p class="footer">© 2006-2008 HAS</p>
|
84
84
|
</body>
|
85
85
|
</html>
|
data/doc/aem-manual/index.html
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | Contents</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -37,6 +37,6 @@
|
|
37
37
|
</div>
|
38
38
|
|
39
39
|
<!--footer-->
|
40
|
-
<p class="footer">©
|
40
|
+
<p class="footer">© 2006-2008 HAS</p>
|
41
41
|
</body>
|
42
42
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 1. Introduction</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -78,6 +78,6 @@ app('TextEdit').documents.end.make(
|
|
78
78
|
</div>
|
79
79
|
|
80
80
|
<!--footer-->
|
81
|
-
<p class="footer">©
|
81
|
+
<p class="footer">© 2006-2008 HAS</p>
|
82
82
|
</body>
|
83
83
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 2. About Application Scripting</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -231,6 +231,6 @@ app('TextEdit').documents[1].text.paragraphs</code></pre>
|
|
231
231
|
</div>
|
232
232
|
|
233
233
|
<!--footer-->
|
234
|
-
<p class="footer">©
|
234
|
+
<p class="footer">© 2006-2008 HAS</p>
|
235
235
|
</body>
|
236
236
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 3. Quick Tutorial</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -151,6 +151,6 @@ irb> te.documents.text.get
|
|
151
151
|
</div>
|
152
152
|
|
153
153
|
<!--footer-->
|
154
|
-
<p class="footer">©
|
154
|
+
<p class="footer">© 2006-2008 HAS</p>
|
155
155
|
</body>
|
156
156
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 4. Getting Help</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -155,6 +155,6 @@ p te.parameters('make')
|
|
155
155
|
</div>
|
156
156
|
|
157
157
|
<!--footer-->
|
158
|
-
<p class="footer">©
|
158
|
+
<p class="footer">© 2006-2008 HAS</p>
|
159
159
|
</body>
|
160
160
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 5. Keyword Conversion</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -86,6 +86,6 @@ id wait_reply</code></pre>
|
|
86
86
|
</div>
|
87
87
|
|
88
88
|
<!--footer-->
|
89
|
-
<p class="footer">©
|
89
|
+
<p class="footer">© 2006-2008 HAS</p>
|
90
90
|
</body>
|
91
91
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 6. Classes and Enumerated Types</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -150,6 +150,6 @@ $KCODE = "UTF8"</code></pre>
|
|
150
150
|
</div>
|
151
151
|
|
152
152
|
<!--footer-->
|
153
|
-
<p class="footer">©
|
153
|
+
<p class="footer">© 2006-2008 HAS</p>
|
154
154
|
</body>
|
155
155
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 7. Application Objects</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -204,6 +204,6 @@ te.launch
|
|
204
204
|
</div>
|
205
205
|
|
206
206
|
<!--footer-->
|
207
|
-
<p class="footer">©
|
207
|
+
<p class="footer">© 2006-2008 HAS</p>
|
208
208
|
</body>
|
209
209
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 8. Real vs. Generic References</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -81,6 +81,6 @@ puts app('Finder').home == app('Finder').home.get
|
|
81
81
|
</div>
|
82
82
|
|
83
83
|
<!--footer-->
|
84
|
-
<p class="footer">©
|
84
|
+
<p class="footer">© 2006-2008 HAS</p>
|
85
85
|
</body>
|
86
86
|
</html>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<title>appscript | 9. Reference Forms</title>
|
6
6
|
|
7
7
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
8
|
-
<style type="text/css" media="all"><!--@import url(full.css);--></style>
|
8
|
+
<style type="text/css" media="all"><!--@import url(../full.css);--></style>
|
9
9
|
|
10
10
|
</head>
|
11
11
|
<body>
|
@@ -158,7 +158,7 @@ text[con.characters[5], con.words[-2]]</code></pre>
|
|
158
158
|
its.size
|
159
159
|
its.words.first</code></pre></li>
|
160
160
|
|
161
|
-
<li><p>One or more conditional tests, implemented as methods on the reference being tested. Each method takes a test reference or a value as
|
161
|
+
<li><p>One or more conditional tests, implemented as methods on the reference being tested. Each method takes a test reference or a value as its sole argument.</p>
|
162
162
|
|
163
163
|
<p>Syntax:</p>
|
164
164
|
<pre><code>reference.lt(value) # <
|
@@ -225,6 +225,6 @@ paragraphs[1].before</code></pre>
|
|
225
225
|
</div>
|
226
226
|
|
227
227
|
<!--footer-->
|
228
|
-
<p class="footer">©
|
228
|
+
<p class="footer">© 2006-2008 HAS</p>
|
229
229
|
</body>
|
230
230
|
</html>
|