if the optionKey is down or cd fld "Source" = "" then
answer file "Where is the source code?" of type text
if it = "" then exit mouseUp
set cursor to watch
put it into theFile
open file theFile
read from file theFile until eof
put it into cd fld "Source"
close file theFile
else
ask file "Where would you like the code saved?" with "FinderEvents.p"
if it = "" then exit mouseUp
set cursor to watch
put it into theFile
open file theFile
write cd fld "Source" to file theFile
close file theFile
end if
end mouseUp</script>
</part>
<part>
<id>29</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>210</left>
<top>311</top>
<right>295</right>
<bottom>333</bottom>
</rect>
<style>roundrect</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>Caveats</name>
<script>on mouseUp
toggleCaveats
end mouseUp</script>
</part>
<part>
<id>1</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>5</left>
<top>90</top>
<right>508</right>
<bottom>301</bottom>
</rect>
<style>rectangle</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<textHeight>12</textHeight>
<name></name>
<script></script>
</part>
<part>
<id>2</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>168</top>
<right>161</right>
<bottom>182</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>About</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>3</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>181</top>
<right>161</right>
<bottom>195</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Alias Selection</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>4</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>194</top>
<right>161</right>
<bottom>208</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Close About</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>5</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>207</top>
<right>161</right>
<bottom>221</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Close Window</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>6</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>220</top>
<right>161</right>
<bottom>234</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Drag Selection</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>7</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>233</top>
<right>161</right>
<bottom>247</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Duplicate Selection</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>8</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>246</top>
<right>161</right>
<bottom>260</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Empty Trash</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>9</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>259</top>
<right>161</right>
<bottom>273</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Get Info</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>10</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>11</left>
<top>272</top>
<right>161</right>
<bottom>286</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Hide Clipboard</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>11</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>168</top>
<right>331</right>
<bottom>182</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Move Selection</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>12</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>181</top>
<right>331</right>
<bottom>195</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Move Window</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>13</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>194</top>
<right>331</right>
<bottom>208</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Open Selection</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>14</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>207</top>
<right>331</right>
<bottom>221</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Page Setup</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>15</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>220</top>
<right>331</right>
<bottom>234</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Print Selection</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>16</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>233</top>
<right>331</right>
<bottom>247</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Print Window</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>17</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>246</top>
<right>331</right>
<bottom>260</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Put Away</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>18</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>259</top>
<right>331</right>
<bottom>273</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Resize Window</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>19</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>181</left>
<top>272</top>
<right>331</right>
<bottom>286</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Restart</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>20</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>351</left>
<top>168</top>
<right>501</right>
<bottom>182</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Reveal Selection</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>21</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>351</left>
<top>181</top>
<right>501</right>
<bottom>195</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Set View</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>22</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>351</left>
<top>194</top>
<right>501</right>
<bottom>208</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Sharing</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>23</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>351</left>
<top>207</top>
<right>501</right>
<bottom>221</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Show Clipboard</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>25</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>351</left>
<top>220</top>
<right>501</right>
<bottom>234</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Shut Down</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>26</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>351</left>
<top>233</top>
<right>501</right>
<bottom>247</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Sleep</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>24</id>
<type>field</type>
<visible> <false /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>0</left>
<top>22</top>
<right>512</right>
<bottom>303</bottom>
</rect>
<style>scrolling</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Monaco</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<textHeight>12</textHeight>
<name>Source</name>
<script>on mouseUp
hide me
end mouseUp
</script>
</part>
<part>
<id>31</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>351</left>
<top>246</top>
<right>501</right>
<bottom>260</bottom>
</rect>
<style>transparent</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <false /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>bold</textStyle>
<name>Zoom Window</name>
<script>on mouseUp
go cd short name of me
end mouseUp</script>
</part>
<part>
<id>27</id>
<type>field</type>
<visible> <false /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>5</left>
<top>90</top>
<right>508</right>
<bottom>301</bottom>
</rect>
<style>rectangle</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<textHeight>12</textHeight>
<name>Caveats</name>
<script>on mouseUp
toggleCaveats
end mouseUp
</script>
</part>
<part>
<id>30</id>
<type>field</type>
<visible> <false /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>5</left>
<top>90</top>
<right>508</right>
<bottom>301</bottom>
</rect>
<style>rectangle</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<textHeight>12</textHeight>
<name>Credits</name>
<script>on mouseUp
lock screen
hide me
unlock screen with dissolve
end mouseUp
</script>
</part>
<content>
<layer>card</layer>
<id>1</id>
<text><span class="style7">elcome to a demo of the currently available FinderEvents. These are a set of custom Apple events that the Finder in System 7.0 understands. Apple® will not support these events and warns you that they probably will change in the near future to conform to the standard Core suite of Apple events. In the meantime, here is an XCMD that will send FinderEvents and give you some degreee of control over the Finder from HyperTalk. The Finder is </span><span class="style8">not</span><span class="style7"> intended to be scriptable. This is version 1.2
</span><span class="style9">Click on the names below to see a description of that function and examples.</span><span class="style7">
This stack brought to you by Jon Pugh and Apple Computer, Inc. © 1991-92 Apple Computer, Inc.
</span></text>
</content>
<content>
<layer>card</layer>
<id>24</id>
<text>{$S FinderEvents }
UNIT DummyUnit;
(*
This XCMD sends FinderEvents to the System 7 Finder. These events are designed to
demonstrate some of the power of IAC on the Macintosh, but they are not meant as
an end all scripting capability. This will be added to the Finder at a later date.
The syntax of this command is convoluted and varies based on the values of the
parameters. The instructions are in the accompanying stack, which you should have
gotten.
This code, the XCMD, and the stack are all © 1991 by Apple Computer.
They were all written and directed by Jon Pugh.
To compile with MPW, use commands similar to the following. These require
Hypercard 2.1 and the sendAE tool from the Developer CD. This script also
assumes that you are using MPW 3.3 or later and that Hypercard is on your
<text><span class="style1"> lot of people want the Finder to do some real basic things that it just doesnΓÇÖt do right now. This explains a few of the limitations that the Finder operates under.
The most notable of these is the desire to get the current Finder selection. You canΓÇÖt. Yes, I know some people do, but they figured out how and know that it will break when the Finder gets changed. They have chosen to do that work and take that risk. You havenΓÇÖt. You want it handed to you. You canΓÇÖt have it that way. If you </span><span class="style10">really</span><span class="style1"> want to know then hop into Macsbug and find out. Save your notes because you will have to do it again when the Finder changes. Hopefully this situation will change when the Finder supports all Apple Events.
The Finder does not use the Apple Event Manager. It does everything on the fly using only high level events. This means that common AE things wonΓÇÖt work. You canΓÇÖt patch PACK 8 for example, because the Finder doesnΓÇÖt call it. Ever.
The early Registry makes claims to the effect that creating aliases, putting files away, and duplicating files returns a list of the new files. This XCMD doesnΓÇÖt. This is because the Finder doesnΓÇÖt either. Sorry, it lied.
Finally, there are probably secret events that the Finder understands, but this XCMD doesnΓÇÖt.</span></text>
<text>This event causes the Finder to display the dialog box which shows the amount of memory being used by each running program. This event is the same as pulling down the menu About This Macintosh.
The event id can be any one of "abou", "About", "AboutMacintosh", or "About Macintosh"
</text>
</content>
<content>
<layer>background</layer>
<id>7</id>
<text>FinderEvents "event ID"</text>
</content>
<name>About</name>
<script></script>
</card>
card_6935.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event creates an alias of the items listed in the folder specified as if they were selected and the Make Alias menu item were chosen from the File menu.
The event id can be any one of "sali", "Alias", "Make Alias", "Alias Selection", or "AliasSelection".
The folder path is the pathname of the parent folder which holds all of the items in the item list.
The item list is a single item name (not a pathname) or a comma delimited list of item names. If a folder is present, it must end in a colon.
If you want to create an alias of a hard disk then pass empty for the folder path and the hard disk name as the item list.</text>
</content>
<name>Alias Selection</name>
<script></script>
</card>
card_2302.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This is a fake event that closes the About window. This performs some black magic that I donΓÇÖt care to describe here. See the code if you have to know, but beware, it is very ugly.
The event id can be any one of "hdab", "HideAbout", "Hide About", "Close About" or "CloseAbout".</text>
</content>
<name>Close About</name>
<script></script>
</card>
card_8243.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event will close the window specified. This is the same as clicking in the close box of a window.
The event id can be any one of "clos", "Close", "CloseWindow", or "Close Window".
The window path is the pathname of the folder or file the window is based on. For example, a regular window has a folder pathname as itΓÇÖs window pathname, while a Get Info window has either a disk, a folder or a file as itΓÇÖs window pathname and a Sharing window has either a disk, a folder or an application as it's window pathname.
The optional window type is an integer that specifies the type of window you want closed. Regular folder windows have type 0, which is the default. Get Info windows have a type of 11 while Sharing windows have a type of 13.
There is no way to get a list of currently open windows.</text>
</content>
<name>Close Window</name>
<script></script>
</card>
card_7757.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This is essentially the copy command. It is the same as dragging the item to the point h,v in the destination folder with the option key down in the Finder.
The event ID can be any one of "drag", "Drag", "DragSelection", "Drag Selection", "Copy", "CopySelection", or "Copy Selection".
The destination folder is the pathname of the folder which the item in the item path will be copied into.
The item path list is the full pathname of the item to be copied or a list of full pathnames. If a folder is present, it must end in a colon.
The position of the item in the destination window is determined by adding the specified offset to the itemΓÇÖs offset in itΓÇÖs current window. This current offset is impossible to determine programatically making the determination of the offset to specify a hit and miss proposition.</text>
</content>
<name>Drag Selection</name>
<script></script>
</card>
card_6622.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event duplicates the specified items in the specified folder. This event is the same as selecting the items and choosing Duplicate from the File menu.
The event id can be any one of "sdup", "Duplicate", "DuplicateSelection", "Duplicate Selection".
The folder path is the pathname of the parent folder which holds all of the items in the item list.
The item list is a single item name (not a pathname) or a comma delimited list of item names. If a folder is present, it must end in a colon.</text>
</content>
<name>Duplicate Selection</name>
<script></script>
</card>
card_8065.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This is a fake event that closes the Clipboard window. This performs some black magic that I donΓÇÖt care to describe here. See the code if you have to know, but beware, it is very ugly.
The event id can be any one of "hdcl", "HideClipboard", "Hide Clipboard", "HideClip", or "Hide Clip".</text>
</content>
<name>Hide Clipboard</name>
<script></script>
</card>
card_7491.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event drags a specified item from itΓÇÖs current location to the specified destination folder and adds the specified point to itΓÇÖs final location in the destination window. This ignores the snap to grid setting from the Views panel.
The event id can be any one of "move", "MoveSelection", or "Move Selection".
The destination folder is the pathname of the folder which the item in the item path will be moved into.
The item path list is the full pathname of the item to be moved or a list of full pathnames. If these are folders, they must end in a colon.
The position of the item in the destination window is determined by adding the specified offset to the itemΓÇÖs offset in itΓÇÖs current window. This current offset is impossible to determine programatically making the determination of the offset to specify a hit and miss proposition.</text>
</content>
<name>Move Selection</name>
<script></script>
</card>
card_9837.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
FinderEvents Reveal, folderPath(), short name of this stack
if the result Γëá "" then put the result
put item 4 of the screenRect + 20 into v
FinderEvents MoveWindow, folderPath(), "20," & v
if the result Γëá "" then put the result
doMenu "Finder"
wait until the suspended
repeat until v < 50
FinderEvents MoveWindow, folderPath(), "20," & v
if the result Γëá "" then put the result
subtract 20 from v
end repeat
doMenu HyperAppName()
end mouseUp
</script>
</part>
<part>
<id>2</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>369</left>
<top>248</top>
<right>496</right>
<bottom>262</bottom>
</rect>
<style>rectangle</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<name>See also ΓÇ£Resize WindowΓÇ¥</name>
<script>on mouseUp
go cd "Resize Window"
end mouseUp</script>
</part>
<part>
<id>3</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>369</left>
<top>264</top>
<right>496</right>
<bottom>278</bottom>
</rect>
<style>rectangle</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<name>See also ΓÇ£Zoom WindowΓÇ¥</name>
<script>on mouseUp
go cd "Zoom Window"
end mouseUp</script>
</part>
<part>
<id>4</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>369</left>
<top>280</top>
<right>496</right>
<bottom>294</bottom>
</rect>
<style>rectangle</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<name>See also ΓÇ£Close WindowΓÇ¥</name>
<script>on mouseUp
go cd "Close Window"
end mouseUp</script>
</part>
<content>
<layer>background</layer>
<id>4</id>
<text>Move Window</text>
</content>
<content>
<layer>background</layer>
<id>5</id>
<text>This event sets the top left corner of the specified window to the point specified.
The event id can be any one of "posn", "Position", "MoveWindow", "Move Window".
The window path is the full pathname of the windowΓÇÖs folder.
The offset refers to the top left corner of the window, which is under the window title bar, but above the double line and disk statistics in the window. Remember that 0,20 is the top left corner of the screen under the menu bar (which is normally 20 pixels tall). To have a window completely on the screen (so that you can drag and zoom it) you must make v at least 38 since the window title bar is 18 pixels tall.</text>
<text><span class="style1">his is </span><span class="style2">the</span><span class="style1"> most useful FinderEvent. It causes the Finder to open the item(s) specified as if they were double clicked. It is one of the two events that works across the network (the other is Print Selection).
The event id can be any one of "sope", "Open", "OpenSelection", "Open Selection".
The folder path is the pathname of the parent folder which holds all of the items in the item list.
The item list is a single item name (not a pathname) or a comma delimited list of item names. If a folder is present, it must end in a colon.
If you want to open a disk, then the folder path should be empty and the item list should be the diskΓÇÖs name.
If you use the optional parameter to specify a remote Macintosh, then several more points need to be mentioned:
ΓÇó The specified folder pathname can be an alias of the remote folder on a local disk (see the example buttons below).
ΓÇó The zone and colon can be omitted and will default to the local zone.</span></text>
<text>This opens the specified window and brings up the Page Setup dialog as if you chose the Page Setup menu item from the File menu while the window was in front.
The event id can be any one of "pgsu", "PageSetup", or "Page Setup".
The window path is the full pathname of the windowΓÇÖs folder. </text>
</content>
<name>Page Setup</name>
<script></script>
</card>
card_5378.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event causes the Finder to print the files(s) specified as if they were selected and then Print chosen from the File menu. It is one of the two events that works across the network (the other is Open Selection).
The event id can be any one of "spri", "Print", "PrintSelection", "Print Selection".
The folder path is the pathname of the parent folder which holds all of the items in the file list.
The file list is a single file name (not a pathname) or a comma delimited list of file names.
If you use the optional parameter to specify a remote Macintosh, then several more points need to be mentioned:
ΓÇó The specified folder pathname can be an alias of the remote folder on a local disk (see the example buttons below).
ΓÇó The zone and colon can be omitted and will default to the local zone.</text>
</content>
<name>Print Selection</name>
<script></script>
</card>
card_9197.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event puts the specified items back in their original folders if they are either on the desktop or in the trash. This is the same as selecting the items and choosing Put Away from the File menu.
The event id can be any one of "sput", "PutAway", "Put Away", "Put Away Selection", or "PutAwaySelection".
The folder path is the pathname of the parent folder which holds all of the items in the item list.
The item list is a single item name (not a pathname) or a comma delimited list of item names. If a folder is present, it must end in a colon.</text>
</content>
<name>Put Away</name>
<script></script>
</card>
card_10237.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event sets the size of the window to the height and width specified. It does not move the window. It will open the window if it is not already open.
The event id can be any one of "grow", "GrowWindow", "Grow Window", "Resize", "ResizeWindow", or "Resize Window".
The window path is the full pathname of the windowΓÇÖs folder.
The height does not include the title bar of the window.</text>
</content>
<name>Resize Window</name>
<script></script>
</card>
card_4615.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
answer "Are you sure you want to Restart your computer?" with "No" or "Yes"
if it Γëá "Yes" then exit mouseUp
FinderEvents Restart
if the result Γëá "" then put the result
end mouseUp</script>
</part>
<part>
<id>3</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>369</left>
<top>248</top>
<right>496</right>
<bottom>262</bottom>
</rect>
<style>rectangle</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<name>See also ΓÇ£Shut DownΓÇ¥</name>
<script>on mouseUp
go cd "Shut Down"
end mouseUp</script>
</part>
<content>
<layer>background</layer>
<id>4</id>
<text>Restart</text>
</content>
<content>
<layer>background</layer>
<id>5</id>
<text>This event restarts the machine as if the Restart menu item in the Finder were selected. The Finder shuts down all open applications while allowing them to save their files and then restarts the machine.
The event id can be either "rest", or "Restart".</text>
</content>
<content>
<layer>background</layer>
<id>7</id>
<text>FinderEvents "event ID"</text>
</content>
<name>Restart</name>
<script></script>
</card>
card_6296.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This will cause the specified folder window to be opened and the items listed to be selected and hilited. There is no corresponding menu command for this, but the Find command makes use of this event.
The event id can be any one of "srev", "Reveal", "RevealSelection", or "Reveal Selection".
The folder path is the pathname of the parent folder which holds all of the items in the item list.
The item list is a single item name (not a pathname) or a comma delimited list of item names. If a folder is present, it must end in a colon.
If you want to select a disk, then the folder path should be empty and the item list should be the diskΓÇÖs name. Unfortunately, this event also opens the diskΓÇÖs window. I call that a bug.</text>
</content>
<name>Reveal Selection</name>
<script></script>
</card>
card_9698.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event changes the view in the selected window to the state specified. If the window is not open then this will open it before changing the view.
The event id can be any one of "view", "ChangeView", "Change View", "SetView", or "Set View".
The window path is the full pathname of the windowΓÇÖs folder.
The stateInteger is one of the following numbers:
0) Small Icon
1) Icon
2) Name
3) Size
4) Kind
5) Label
6) Date
7) Version
8) Comment</text>
</content>
<name>Set View</name>
<script></script>
</card>
card_6117.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event brings up the Sharing dialog for the specified application(s), disk(s) or folder(s). Since documents cannot be shared, they cannot be specified in this list. If an application is specified and linking is not on, the Finder will display a dialog asking if you want to turn linking on.
The event id can be any one of "sprv", Sharing", "GetPrivilage", "Get Privilage", "GetPrivilegeSelection", or "Get Privilege Selection".
The parent path is the pathname of the parent folder which holds all of the items in the item list.
The item list is a single folder or application name (not a pathname) or a comma delimited list of folder and application names. If a folder is present, it must end in a colon.
If you want to get sharing info on a disk, then the parent path should be empty and the folder list should be the diskΓÇÖs name.</text>
</content>
<name>Sharing</name>
<script></script>
</card>
card_3926.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
answer "Are you sure you want to Shutdown your computer?" with "No" or "Yes"
if it Γëá "Yes" then exit mouseUp
FinderEvents Shutdown
if the result Γëá "" then put the result
end mouseUp</script>
</part>
<part>
<id>2</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>369</left>
<top>248</top>
<right>496</right>
<bottom>262</bottom>
</rect>
<style>rectangle</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Geneva</font>
<textSize>9</textSize>
<textStyle>plain</textStyle>
<name>See also ΓÇ£RestartΓÇ¥</name>
<script>on mouseUp
go cd "Restart"
end mouseUp</script>
</part>
<content>
<layer>background</layer>
<id>4</id>
<text>Shut Down</text>
</content>
<content>
<layer>background</layer>
<id>5</id>
<text>This event shuts down the machine as if the Shut Down menu item in the Finder were selected. The Finder shuts down all open applications while allowing them to save their files and then shuts down the machine and switches it off if possible.
The event id can be either "shut" or "Shutdown".</text>
</content>
<content>
<layer>background</layer>
<id>7</id>
<text>FinderEvents "event ID"</text>
</content>
<name>Shut Down</name>
<script></script>
</card>
card_4395.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event puts the machine to sleep if it is capable of it. Sleep is a low power state provided for in the Macintosh portable line. This event does nothing on machines without this capability.
The event id can be either "slep" or "Sleep".</text>
</content>
<content>
<layer>background</layer>
<id>7</id>
<text>FinderEvents "event ID"</text>
</content>
<name>Sleep</name>
<script></script>
</card>
card_9466.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<text>This event zooms the window to the state specified. It is the same as clicking in the zoom box of the window except that this can control which way the zoom goes.
The event id can be any one of "zoom", "ZoomWindow", or "Zoom Window".
The window path is the full pathname of the windowΓÇÖs folder.
The stateInteger is 7 for the user state and 8 for the smallest possible window.</text>