home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 0a 5c 73 65 63 74 69 6f | 6e 7b 53 74 61 6e 64 61 |.\sectio|n{Standa|
|00000010| 72 64 20 6d 6f 64 75 6c | 65 20 5c 73 65 63 74 63 |rd modul|e \sectc|
|00000020| 6f 64 65 7b 6d 61 63 6f | 73 74 6f 6f 6c 73 7d 7d |ode{maco|stools}}|
|00000030| 0a 5c 73 74 6d 6f 64 69 | 6e 64 65 78 7b 6d 61 63 |.\stmodi|ndex{mac|
|00000040| 6f 73 74 6f 6f 6c 73 7d | 0a 0a 54 68 69 73 20 6d |ostools}|..This m|
|00000050| 6f 64 75 6c 65 20 63 6f | 6e 74 61 69 6e 73 20 73 |odule co|ntains s|
|00000060| 6f 6d 65 20 63 6f 6e 76 | 65 6e 69 65 6e 63 65 20 |ome conv|enience |
|00000070| 72 6f 75 74 69 6e 65 73 | 20 66 6f 72 20 66 69 6c |routines| for fil|
|00000080| 65 2d 6d 61 6e 69 70 75 | 6c 61 74 69 6f 6e 0a 6f |e-manipu|lation.o|
|00000090| 6e 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 2e |n the Ma|cintosh.|
|000000a0| 0a 0a 54 68 65 20 5c 63 | 6f 64 65 7b 6d 61 63 6f |..The \c|ode{maco|
|000000b0| 73 74 6f 6f 6c 73 7d 20 | 6d 6f 64 75 6c 65 20 64 |stools} |module d|
|000000c0| 65 66 69 6e 65 73 20 74 | 68 65 20 66 6f 6c 6c 6f |efines t|he follo|
|000000d0| 77 69 6e 67 20 66 75 6e | 63 74 69 6f 6e 73 3a 0a |wing fun|ctions:.|
|000000e0| 0a 5c 72 65 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |.\renewc|ommand{\|
|000000f0| 69 6e 64 65 78 73 75 62 | 69 74 65 6d 7d 7b 28 69 |indexsub|item}{(i|
|00000100| 6e 20 6d 6f 64 75 6c 65 | 20 6d 61 63 6f 73 74 6f |n module| macosto|
|00000110| 6f 6c 73 29 7d 0a 0a 5c | 62 65 67 69 6e 7b 66 75 |ols)}..\|begin{fu|
|00000120| 6e 63 64 65 73 63 7d 7b | 63 6f 70 79 7d 7b 73 72 |ncdesc}{|copy}{sr|
|00000130| 63 5c 2c 20 64 73 74 5c | 6f 70 74 69 6f 6e 61 6c |c\, dst\|optional|
|00000140| 7b 5c 2c 20 63 72 65 61 | 74 65 70 61 74 68 2c 20 |{\, crea|tepath, |
|00000150| 63 6f 70 79 74 69 6d 65 | 73 7d 7d 0a 43 6f 70 79 |copytime|s}}.Copy|
|00000160| 20 66 69 6c 65 20 5c 76 | 61 72 7b 73 72 63 7d 20 | file \v|ar{src} |
|00000170| 74 6f 20 5c 76 61 72 7b | 64 73 74 7d 2e 20 54 68 |to \var{|dst}. Th|
|00000180| 65 20 66 69 6c 65 73 20 | 63 61 6e 20 62 65 20 73 |e files |can be s|
|00000190| 70 65 63 69 66 69 65 64 | 20 61 73 0a 70 61 74 68 |pecified| as.path|
|000001a0| 6e 61 6d 65 73 20 6f 72 | 20 5c 63 6f 64 65 7b 46 |names or| \code{F|
|000001b0| 53 53 70 65 63 7d 20 6f | 62 6a 65 63 74 73 2e 20 |SSpec} o|bjects. |
|000001c0| 49 66 20 5c 76 61 72 7b | 63 72 65 61 74 65 70 61 |If \var{|createpa|
|000001d0| 74 68 7d 20 69 73 20 6e | 6f 6e 2d 7a 65 72 6f 0a |th} is n|on-zero.|
|000001e0| 5c 76 61 72 7b 64 73 74 | 7d 20 6d 75 73 74 20 62 |\var{dst|} must b|
|000001f0| 65 20 61 20 70 61 74 68 | 6e 61 6d 65 20 61 6e 64 |e a path|name and|
|00000200| 20 74 68 65 20 66 6f 6c | 64 65 72 73 20 6c 65 61 | the fol|ders lea|
|00000210| 64 69 6e 67 20 74 6f 20 | 74 68 65 0a 64 65 73 74 |ding to |the.dest|
|00000220| 69 6e 61 74 69 6f 6e 20 | 61 72 65 20 63 72 65 61 |ination |are crea|
|00000230| 74 65 64 20 69 66 20 6e | 65 63 65 73 73 61 72 79 |ted if n|ecessary|
|00000240| 2e 20 20 54 68 65 20 6d | 65 74 68 6f 64 20 63 6f |. The m|ethod co|
|00000250| 70 69 65 73 20 64 61 74 | 61 20 61 6e 64 0a 72 65 |pies dat|a and.re|
|00000260| 73 6f 75 72 63 65 20 66 | 6f 72 6b 20 61 6e 64 20 |source f|ork and |
|00000270| 73 6f 6d 65 20 66 69 6e | 64 65 72 20 69 6e 66 6f |some fin|der info|
|00000280| 72 6d 61 74 69 6f 6e 20 | 28 63 72 65 61 74 6f 72 |rmation |(creator|
|00000290| 2c 20 74 79 70 65 2c 20 | 66 6c 61 67 73 29 20 61 |, type, |flags) a|
|000002a0| 6e 64 0a 6f 70 74 69 6f | 6e 61 6c 6c 79 20 74 68 |nd.optio|nally th|
|000002b0| 65 20 63 72 65 61 74 69 | 6f 6e 2c 20 6d 6f 64 69 |e creati|on, modi|
|000002c0| 66 69 63 61 74 69 6f 6e | 20 61 6e 64 20 62 61 63 |fication| and bac|
|000002d0| 6b 75 70 20 74 69 6d 65 | 73 20 28 64 65 66 61 75 |kup time|s (defau|
|000002e0| 6c 74 20 69 73 20 74 6f | 0a 63 6f 70 79 20 74 68 |lt is to|.copy th|
|000002f0| 65 6d 29 2e 20 43 75 73 | 74 6f 6d 20 69 63 6f 6e |em). Cus|tom icon|
|00000300| 73 2c 20 63 6f 6d 6d 65 | 6e 74 73 20 61 6e 64 20 |s, comme|nts and |
|00000310| 69 63 6f 6e 20 70 6f 73 | 69 74 69 6f 6e 20 61 72 |icon pos|ition ar|
|00000320| 65 20 6e 6f 74 20 63 6f | 70 69 65 64 2e 0a 0a 49 |e not co|pied...I|
|00000330| 66 20 74 68 65 20 73 6f | 75 72 63 65 20 69 73 20 |f the so|urce is |
|00000340| 61 6e 20 61 6c 69 61 73 | 20 74 68 65 20 6f 72 69 |an alias| the ori|
|00000350| 67 69 6e 61 6c 20 74 6f | 20 77 68 69 63 68 20 74 |ginal to| which t|
|00000360| 68 65 20 61 6c 69 61 73 | 20 70 6f 69 6e 74 73 20 |he alias| points |
|00000370| 69 73 0a 63 6f 70 69 65 | 64 2c 20 6e 6f 74 20 74 |is.copie|d, not t|
|00000380| 68 65 20 61 6c 69 61 73 | 66 69 6c 65 2e 0a 5c 65 |he alias|file..\e|
|00000390| 6e 64 7b 66 75 6e 63 64 | 65 73 63 7d 0a 0a 5c 62 |nd{funcd|esc}..\b|
|000003a0| 65 67 69 6e 7b 66 75 6e | 63 64 65 73 63 7d 7b 63 |egin{fun|cdesc}{c|
|000003b0| 6f 70 79 74 72 65 65 7d | 7b 73 72 63 5c 2c 20 64 |opytree}|{src\, d|
|000003c0| 73 74 7d 0a 52 65 63 75 | 72 73 69 76 65 6c 79 20 |st}.Recu|rsively |
|000003d0| 63 6f 70 79 20 61 20 66 | 69 6c 65 20 74 72 65 65 |copy a f|ile tree|
|000003e0| 20 66 72 6f 6d 20 5c 76 | 61 72 7b 73 72 63 7d 20 | from \v|ar{src} |
|000003f0| 74 6f 20 5c 76 61 72 7b | 64 73 74 7d 2c 20 63 72 |to \var{|dst}, cr|
|00000400| 65 61 74 69 6e 67 0a 66 | 6f 6c 64 65 72 73 20 61 |eating.f|olders a|
|00000410| 73 20 6e 65 65 64 65 64 | 2e 20 5c 76 61 72 7b 53 |s needed|. \var{S|
|00000420| 72 63 7d 20 61 6e 64 20 | 5c 76 61 72 7b 64 73 74 |rc} and |\var{dst|
|00000430| 7d 20 73 68 6f 75 6c 64 | 20 62 65 20 73 70 65 63 |} should| be spec|
|00000440| 69 66 69 65 64 20 61 73 | 0a 70 61 74 68 6e 61 6d |ified as|.pathnam|
|00000450| 65 73 2e 0a 5c 65 6e 64 | 7b 66 75 6e 63 64 65 73 |es..\end|{funcdes|
|00000460| 63 7d 0a 0a 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |c}..\beg|in{funcd|
|00000470| 65 73 63 7d 7b 6d 6b 61 | 6c 69 61 73 7d 7b 73 72 |esc}{mka|lias}{sr|
|00000480| 63 5c 2c 20 64 73 74 7d | 0a 43 72 65 61 74 65 20 |c\, dst}|.Create |
|00000490| 61 20 66 69 6e 64 65 72 | 20 61 6c 69 61 73 20 5c |a finder| alias \|
|000004a0| 76 61 72 7b 64 73 74 7d | 20 70 6f 69 6e 74 69 6e |var{dst}| pointin|
|000004b0| 67 20 74 6f 20 5c 76 61 | 72 7b 73 72 63 7d 2e 20 |g to \va|r{src}. |
|000004c0| 42 6f 74 68 20 6d 61 79 | 20 62 65 0a 73 70 65 63 |Both may| be.spec|
|000004d0| 69 66 69 65 64 20 61 73 | 20 70 61 74 68 6e 61 6d |ified as| pathnam|
|000004e0| 65 73 20 6f 72 20 5c 76 | 61 72 7b 46 53 53 70 65 |es or \v|ar{FSSpe|
|000004f0| 63 7d 20 6f 62 6a 65 63 | 74 73 2e 0a 5c 65 6e 64 |c} objec|ts..\end|
|00000500| 7b 66 75 6e 63 64 65 73 | 63 7d 0a 0a 5c 62 65 67 |{funcdes|c}..\beg|
|00000510| 69 6e 7b 66 75 6e 63 64 | 65 73 63 7d 7b 74 6f 75 |in{funcd|esc}{tou|
|00000520| 63 68 65 64 7d 7b 64 73 | 74 7d 0a 54 65 6c 6c 20 |ched}{ds|t}.Tell |
|00000530| 74 68 65 20 66 69 6e 64 | 65 72 20 74 68 61 74 20 |the find|er that |
|00000540| 73 6f 6d 65 20 62 69 74 | 73 20 6f 66 20 66 69 6e |some bit|s of fin|
|00000550| 64 65 72 2d 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |der-info|rmation |
|00000560| 73 75 63 68 20 61 73 20 | 63 72 65 61 74 6f 72 0a |such as |creator.|
|00000570| 6f 72 20 74 79 70 65 20 | 66 6f 72 20 66 69 6c 65 |or type |for file|
|00000580| 20 5c 76 61 72 7b 64 73 | 74 7d 20 68 61 73 20 63 | \var{ds|t} has c|
|00000590| 68 61 6e 67 65 64 2e 20 | 54 68 65 20 66 69 6c 65 |hanged. |The file|
|000005a0| 20 63 61 6e 20 62 65 20 | 73 70 65 63 69 66 69 65 | can be |specifie|
|000005b0| 64 20 62 79 0a 70 61 74 | 68 6e 61 6d 65 20 6f 72 |d by.pat|hname or|
|000005c0| 20 66 73 73 70 65 63 2e | 20 54 68 69 73 20 63 61 | fsspec.| This ca|
|000005d0| 6c 6c 20 73 68 6f 75 6c | 64 20 70 72 6f 64 20 74 |ll shoul|d prod t|
|000005e0| 68 65 20 66 69 6e 64 65 | 72 20 69 6e 74 6f 20 72 |he finde|r into r|
|000005f0| 65 64 72 61 77 69 6e 67 | 20 74 68 65 0a 66 69 6c |edrawing| the.fil|
|00000600| 65 73 20 69 63 6f 6e 2e | 0a 5c 65 6e 64 7b 66 75 |es icon.|.\end{fu|
|00000610| 6e 63 64 65 73 63 7d 0a | 0a 5c 62 65 67 69 6e 7b |ncdesc}.|.\begin{|
|00000620| 64 61 74 61 64 65 73 63 | 7d 7b 42 55 46 53 49 5a |datadesc|}{BUFSIZ|
|00000630| 7d 0a 54 68 65 20 62 75 | 66 66 65 72 20 73 69 7a |}.The bu|ffer siz|
|00000640| 65 20 66 6f 72 20 5c 63 | 6f 64 65 7b 63 6f 70 79 |e for \c|ode{copy|
|00000650| 7d 2c 20 64 65 66 61 75 | 6c 74 20 31 20 6d 65 67 |}, defau|lt 1 meg|
|00000660| 61 62 79 74 65 2e 0a 5c | 65 6e 64 7b 64 61 74 61 |abyte..\|end{data|
|00000670| 64 65 73 63 7d 0a 0a 4e | 6f 74 65 20 74 68 61 74 |desc}..N|ote that|
|00000680| 20 74 68 65 20 70 72 6f | 63 65 73 73 20 6f 66 20 | the pro|cess of |
|00000690| 63 72 65 61 74 69 6e 67 | 20 66 69 6e 64 65 72 20 |creating| finder |
|000006a0| 61 6c 69 61 73 65 73 20 | 69 73 20 6e 6f 74 20 73 |aliases |is not s|
|000006b0| 70 65 63 69 66 69 65 64 | 20 69 6e 0a 74 68 65 20 |pecified| in.the |
|000006c0| 41 70 70 6c 65 20 64 6f | 63 75 6d 65 6e 74 61 74 |Apple do|cumentat|
|000006d0| 69 6f 6e 2e 20 48 65 6e | 63 65 2c 20 61 6c 69 61 |ion. Hen|ce, alia|
|000006e0| 73 65 73 20 63 72 65 61 | 74 65 64 20 77 69 74 68 |ses crea|ted with|
|000006f0| 20 5c 63 6f 64 65 7b 6d | 6b 61 6c 69 61 73 7d 0a | \code{m|kalias}.|
|00000700| 63 6f 75 6c 64 20 63 6f | 6e 63 65 69 76 61 62 6c |could co|nceivabl|
|00000710| 79 20 68 61 76 65 20 69 | 6e 63 6f 6d 70 61 74 69 |y have i|ncompati|
|00000720| 62 6c 65 20 62 65 68 61 | 76 69 6f 75 72 20 69 6e |ble beha|viour in|
|00000730| 20 73 6f 6d 65 20 63 61 | 73 65 73 2e 0a 0a 5c 73 | some ca|ses...\s|
|00000740| 65 63 74 69 6f 6e 7b 53 | 74 61 6e 64 61 72 64 20 |ection{S|tandard |
|00000750| 6d 6f 64 75 6c 65 20 5c | 73 65 63 74 63 6f 64 65 |module \|sectcode|
|00000760| 7b 66 69 6e 64 65 72 74 | 6f 6f 6c 73 7d 7d 0a 5c |{findert|ools}}.\|
|00000770| 73 74 6d 6f 64 69 6e 64 | 65 78 7b 66 69 6e 64 65 |stmodind|ex{finde|
|00000780| 72 74 6f 6f 6c 73 7d 0a | 0a 54 68 69 73 20 6d 6f |rtools}.|.This mo|
|00000790| 64 75 6c 65 20 63 6f 6e | 74 61 69 6e 73 20 72 6f |dule con|tains ro|
|000007a0| 75 74 69 6e 65 73 20 74 | 68 61 74 20 67 69 76 65 |utines t|hat give|
|000007b0| 20 50 79 74 68 6f 6e 20 | 70 72 6f 67 72 61 6d 73 | Python |programs|
|000007c0| 20 61 63 63 65 73 73 20 | 74 6f 20 73 6f 6d 65 0a | access |to some.|
|000007d0| 66 75 6e 63 74 69 6f 6e | 61 6c 69 74 79 20 70 72 |function|ality pr|
|000007e0| 6f 76 69 64 65 64 20 62 | 79 20 74 68 65 20 66 69 |ovided b|y the fi|
|000007f0| 6e 64 65 72 2e 20 54 68 | 65 79 20 61 72 65 20 69 |nder. Th|ey are i|
|00000800| 6d 70 6c 65 6d 65 6e 74 | 65 64 20 61 73 20 77 72 |mplement|ed as wr|
|00000810| 61 70 70 65 72 73 0a 61 | 72 6f 75 6e 64 20 74 68 |appers.a|round th|
|00000820| 65 20 41 70 70 6c 65 45 | 76 65 6e 74 20 69 6e 74 |e AppleE|vent int|
|00000830| 65 72 66 61 63 65 20 74 | 6f 20 74 68 65 20 66 69 |erface t|o the fi|
|00000840| 6e 64 65 72 2e 0a 0a 41 | 6c 6c 20 66 69 6c 65 20 |nder...A|ll file |
|00000850| 61 6e 64 20 66 6f 6c 64 | 65 72 20 70 61 72 61 6d |and fold|er param|
|00000860| 65 74 65 72 73 20 63 61 | 6e 20 62 65 20 73 70 65 |eters ca|n be spe|
|00000870| 63 69 66 69 65 64 20 65 | 69 74 68 65 72 20 61 73 |cified e|ither as|
|00000880| 20 66 75 6c 6c 0a 70 61 | 74 68 6e 61 6d 65 73 20 | full.pa|thnames |
|00000890| 6f 72 20 61 73 20 5c 63 | 6f 64 65 7b 46 53 53 70 |or as \c|ode{FSSp|
|000008a0| 65 63 7d 20 6f 62 6a 65 | 63 74 73 2e 0a 0a 54 68 |ec} obje|cts...Th|
|000008b0| 65 20 5c 63 6f 64 65 7b | 66 69 6e 64 65 72 74 6f |e \code{|finderto|
|000008c0| 6f 6c 73 7d 20 6d 6f 64 | 75 6c 65 20 64 65 66 69 |ols} mod|ule defi|
|000008d0| 6e 65 73 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |nes the |followin|
|000008e0| 67 20 66 75 6e 63 74 69 | 6f 6e 73 3a 0a 0a 5c 72 |g functi|ons:..\r|
|000008f0| 65 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 69 6e 64 |enewcomm|and{\ind|
|00000900| 65 78 73 75 62 69 74 65 | 6d 7d 7b 28 69 6e 20 6d |exsubite|m}{(in m|
|00000910| 6f 64 75 6c 65 20 6d 61 | 63 6f 73 74 6f 6f 6c 73 |odule ma|costools|
|00000920| 29 7d 0a 0a 5c 62 65 67 | 69 6e 7b 66 75 6e 63 64 |)}..\beg|in{funcd|
|00000930| 65 73 63 7d 7b 6c 61 75 | 6e 63 68 7d 7b 66 69 6c |esc}{lau|nch}{fil|
|00000940| 65 7d 0a 54 65 6c 6c 20 | 74 68 65 20 66 69 6e 64 |e}.Tell |the find|
|00000950| 65 72 20 74 6f 20 6c 61 | 75 6e 63 68 20 5c 76 61 |er to la|unch \va|
|00000960| 72 7b 66 69 6c 65 7d 2e | 20 57 68 61 74 20 6c 61 |r{file}.| What la|
|00000970| 75 6e 63 68 69 6e 67 20 | 6d 65 61 6e 73 20 64 65 |unching |means de|
|00000980| 70 65 6e 64 73 20 6f 6e | 20 74 68 65 20 66 69 6c |pends on| the fil|
|00000990| 65 3a 0a 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |e:.appli|cations |
|000009a0| 61 72 65 20 73 74 61 72 | 74 65 64 2c 20 66 6f 6c |are star|ted, fol|
|000009b0| 64 65 72 73 20 61 72 65 | 20 6f 70 65 6e 65 64 20 |ders are| opened |
|000009c0| 61 6e 64 20 64 6f 63 75 | 6d 65 6e 74 73 20 61 72 |and docu|ments ar|
|000009d0| 65 20 6f 70 65 6e 65 64 | 0a 69 6e 20 74 68 65 20 |e opened|.in the |
|000009e0| 63 6f 72 72 65 63 74 20 | 61 70 70 6c 69 63 61 74 |correct |applicat|
|000009f0| 69 6f 6e 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |ion..\en|d{funcde|
|00000a00| 73 63 7d 0a 0a 5c 62 65 | 67 69 6e 7b 66 75 6e 63 |sc}..\be|gin{func|
|00000a10| 64 65 73 63 7d 7b 50 72 | 69 6e 74 7d 7b 66 69 6c |desc}{Pr|int}{fil|
|00000a20| 65 7d 0a 54 65 6c 6c 20 | 74 68 65 20 66 69 6e 64 |e}.Tell |the find|
|00000a30| 65 72 20 74 6f 20 70 72 | 69 6e 74 20 61 20 66 69 |er to pr|int a fi|
|00000a40| 6c 65 20 28 61 67 61 69 | 6e 20 73 70 65 63 69 66 |le (agai|n specif|
|00000a50| 69 65 64 20 62 79 20 66 | 75 6c 6c 20 70 61 74 68 |ied by f|ull path|
|00000a60| 6e 61 6d 65 20 6f 72 0a | 46 53 53 70 65 63 29 2e |name or.|FSSpec).|
|00000a70| 20 54 68 65 20 62 65 68 | 61 76 69 6f 75 72 20 69 | The beh|aviour i|
|00000a80| 73 20 69 64 65 6e 74 69 | 63 61 6c 20 74 6f 20 73 |s identi|cal to s|
|00000a90| 65 6c 65 63 74 69 6e 67 | 20 74 68 65 20 66 69 6c |electing| the fil|
|00000aa0| 65 20 61 6e 64 20 75 73 | 69 6e 67 0a 74 68 65 20 |e and us|ing.the |
|00000ab0| 70 72 69 6e 74 20 63 6f | 6d 6d 61 6e 64 20 69 6e |print co|mmand in|
|00000ac0| 20 74 68 65 20 66 69 6e | 64 65 72 2e 0a 5c 65 6e | the fin|der..\en|
|00000ad0| 64 7b 66 75 6e 63 64 65 | 73 63 7d 0a 0a 5c 62 65 |d{funcde|sc}..\be|
|00000ae0| 67 69 6e 7b 66 75 6e 63 | 64 65 73 63 7d 7b 63 6f |gin{func|desc}{co|
|00000af0| 70 79 7d 7b 66 69 6c 65 | 2c 20 64 65 73 74 64 69 |py}{file|, destdi|
|00000b00| 72 7d 0a 54 65 6c 6c 20 | 74 68 65 20 66 69 6e 64 |r}.Tell |the find|
|00000b10| 65 72 20 74 6f 20 63 6f | 70 79 20 61 20 66 69 6c |er to co|py a fil|
|00000b20| 65 20 6f 72 20 66 6f 6c | 64 65 72 20 5c 76 61 72 |e or fol|der \var|
|00000b30| 7b 66 69 6c 65 7d 20 74 | 6f 20 66 6f 6c 64 65 72 |{file} t|o folder|
|00000b40| 0a 5c 76 61 72 7b 64 65 | 73 74 64 69 72 7d 2e 20 |.\var{de|stdir}. |
|00000b50| 54 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 72 65 74 |The func|tion ret|
|00000b60| 75 72 6e 73 20 61 6e 20 | 5c 63 6f 64 65 7b 41 6c |urns an |\code{Al|
|00000b70| 69 61 73 7d 20 6f 62 6a | 65 63 74 20 70 6f 69 6e |ias} obj|ect poin|
|00000b80| 74 69 6e 67 20 74 6f 0a | 74 68 65 20 6e 65 77 20 |ting to.|the new |
|00000b90| 66 69 6c 65 2e 0a 5c 65 | 6e 64 7b 66 75 6e 63 64 |file..\e|nd{funcd|
|00000ba0| 65 73 63 7d 0a 0a 5c 62 | 65 67 69 6e 7b 66 75 6e |esc}..\b|egin{fun|
|00000bb0| 63 64 65 73 63 7d 7b 6d | 6f 76 65 7d 7b 66 69 6c |cdesc}{m|ove}{fil|
|00000bc0| 65 2c 20 64 65 73 74 64 | 69 72 7d 0a 54 65 6c 6c |e, destd|ir}.Tell|
|00000bd0| 20 74 68 65 20 66 69 6e | 64 65 72 20 74 6f 20 6d | the fin|der to m|
|00000be0| 6f 76 65 20 61 20 66 69 | 6c 65 20 6f 72 20 66 6f |ove a fi|le or fo|
|00000bf0| 6c 64 65 72 20 5c 76 61 | 72 7b 66 69 6c 65 7d 20 |lder \va|r{file} |
|00000c00| 74 6f 20 66 6f 6c 64 65 | 72 0a 5c 76 61 72 7b 64 |to folde|r.\var{d|
|00000c10| 65 73 74 64 69 72 7d 2e | 20 54 68 65 20 66 75 6e |estdir}.| The fun|
|00000c20| 63 74 69 6f 6e 20 72 65 | 74 75 72 6e 73 20 61 6e |ction re|turns an|
|00000c30| 20 5c 63 6f 64 65 7b 41 | 6c 69 61 73 7d 20 6f 62 | \code{A|lias} ob|
|00000c40| 6a 65 63 74 20 70 6f 69 | 6e 74 69 6e 67 20 74 6f |ject poi|nting to|
|00000c50| 0a 74 68 65 20 6e 65 77 | 20 66 69 6c 65 2e 0a 5c |.the new| file..\|
|00000c60| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 0a 0a 5c |end{func|desc}..\|
|00000c70| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000c80| 73 6c 65 65 70 7d 7b 7d | 0a 54 65 6c 6c 20 74 68 |sleep}{}|.Tell th|
|00000c90| 65 20 66 69 6e 64 65 72 | 20 74 6f 20 70 75 74 20 |e finder| to put |
|00000ca0| 74 68 65 20 6d 61 63 20 | 74 6f 20 73 6c 65 65 70 |the mac |to sleep|
|00000cb0| 2c 20 69 66 20 79 6f 75 | 72 20 6d 61 63 68 69 6e |, if you|r machin|
|00000cc0| 65 20 73 75 70 70 6f 72 | 74 73 20 69 74 2e 0a 5c |e suppor|ts it..\|
|00000cd0| 65 6e 64 7b 66 75 6e 63 | 64 65 73 63 7d 0a 0a 5c |end{func|desc}..\|
|00000ce0| 62 65 67 69 6e 7b 66 75 | 6e 63 64 65 73 63 7d 7b |begin{fu|ncdesc}{|
|00000cf0| 72 65 73 74 61 72 74 7d | 7b 7d 0a 54 65 6c 6c 20 |restart}|{}.Tell |
|00000d00| 74 68 65 20 66 69 6e 64 | 65 72 20 74 6f 20 70 65 |the find|er to pe|
|00000d10| 72 66 6f 72 6d 20 61 6e | 20 6f 72 64 65 72 6c 79 |rform an| orderly|
|00000d20| 20 72 65 73 74 61 72 74 | 20 6f 66 20 74 68 65 20 | restart| of the |
|00000d30| 6d 61 63 68 69 6e 65 2e | 0a 5c 65 6e 64 7b 66 75 |machine.|.\end{fu|
|00000d40| 6e 63 64 65 73 63 7d 0a | 0a 5c 62 65 67 69 6e 7b |ncdesc}.|.\begin{|
|00000d50| 66 75 6e 63 64 65 73 63 | 7d 7b 73 68 75 74 64 6f |funcdesc|}{shutdo|
|00000d60| 77 6e 7d 7b 7d 0a 54 65 | 6c 6c 20 74 68 65 20 66 |wn}{}.Te|ll the f|
|00000d70| 69 6e 64 65 72 20 74 6f | 20 70 65 72 66 6f 72 6d |inder to| perform|
|00000d80| 20 61 6e 20 6f 72 64 65 | 72 6c 79 20 73 68 75 74 | an orde|rly shut|
|00000d90| 64 6f 77 6e 20 6f 66 20 | 74 68 65 20 6d 61 63 68 |down of |the mach|
|00000da0| 69 6e 65 2e 0a 5c 65 6e | 64 7b 66 75 6e 63 64 65 |ine..\en|d{funcde|
|00000db0| 73 63 7d 0a | |sc}. | |
+--------+-------------------------+-------------------------+--------+--------+