Advertisement
Guest User

Untitled

a guest
Jul 30th, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.51 KB | None | 0 0
  1. - AppDelegate.applescript
  2. -- CCK
  3. --
  4. -- Created by eisnerguy1 on 12/27/17.
  5. -- Copyright © 2017 eisnerguy1. All rights reserved.
  6. --
  7.  
  8. script AppDelegate
  9.  
  10. property parent : class "NSObject"
  11.  
  12. -- IBOutlets
  13. property theWindow : missing value
  14.  
  15. on applicationWillFinishLaunching_(aNotification)
  16. -- Insert code here to initialize your application before any files are opened
  17. end applicationWillFinishLaunching_
  18.  
  19. on applicationShouldTerminate_(sender)
  20. -- Insert code here to do any housekeeping before your application quits
  21. return current application's NSTerminateNow
  22. end applicationShouldTerminate_
  23.  
  24. on buttonPushedKeen1_(sender) -- This is connected to the button on the interface builder
  25.  
  26. --set appLocation to path to me as string
  27.  
  28. -- set theFile to appLocation & "Contents:Resources:Episode One - Marooned on Mars.app" as alias
  29.  
  30. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Episode One - Marooned on Mars.app"
  31.  
  32. tell application "Finder" to open file theFile
  33.  
  34. --do shell script "open -b com.id.keen1"
  35.  
  36. return
  37.  
  38. end buttonPushedKeen1_
  39.  
  40. on buttonPushedKeen2_(sender) -- This is connected to the button on the interface builder
  41.  
  42. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Episode Two - The Earth Explodes.app"
  43. tell application "Finder" to open file theFile
  44.  
  45. return
  46.  
  47. end buttonPushedKeen2_
  48.  
  49. on buttonPushedKeen3_(sender) -- This is connected to the button on the interface builder
  50.  
  51. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Episode Three - Keen Must Die!.app"
  52. tell application "Finder" to open file theFile
  53.  
  54. return
  55.  
  56. end buttonPushedKeen3_
  57.  
  58. on buttonPushedKeenVorticonsHint_(sender) -- This is connected to the button on the interface builder
  59.  
  60. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Vorticons On-Disk Hint Sheet.app"
  61. tell application "Finder" to open file theFile
  62.  
  63. return
  64.  
  65. end buttonPushedKeenVorticonsHint_
  66.  
  67. on buttonPushedKeenDreams_(sender) -- This is connected to the button on the interface builder
  68.  
  69. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen3.5:Commander Keen in - Keen Dreams.app"
  70. tell application "Finder" to open file theFile
  71.  
  72. return
  73.  
  74. end buttonPushedKeenDreams_
  75.  
  76. on buttonPushedKeen4_(sender) -- This is connected to the button on the interface builder
  77.  
  78. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen45:Episode IV - Secret of the Oracle.app"
  79. tell application "Finder" to open file theFile
  80.  
  81. return
  82.  
  83. end buttonPushedKeen4_
  84.  
  85. on buttonPushedKeen5_(sender) -- This is connected to the button on the interface builder
  86.  
  87. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen45:Episode V - The Armageddon Machine.app"
  88. tell application "Finder" to open file theFile
  89.  
  90. return
  91.  
  92. end buttonPushedKeen5_
  93.  
  94. on buttonPushedKeenGGHint_(sender) -- This is connected to the button on the interface builder
  95.  
  96. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen45:Goodbye, Galaxy On-Disk Hint Sheet.app"
  97. tell application "Finder" to open file theFile
  98.  
  99. return
  100.  
  101. end buttonPushedKeenGGHint_
  102.  
  103. --on buttonPushedKeenDopefish_(sender) -- This is connected to the button on the interface builder
  104.  
  105. -- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen45:Dopefish.app"
  106. --tell application "Finder" to open file theFile
  107.  
  108. -- return
  109.  
  110. -- end PushedKeenDopefish_
  111.  
  112. on buttonPushedKeen6_(sender) -- This is connected to the button on the interface builder
  113.  
  114. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen6:Commander Keen in - Aliens Ate My Babysitter!.app"
  115. tell application "Finder" to open file theFile
  116.  
  117. return
  118.  
  119. end buttonPushedKeen6_
  120.  
  121. --Docs section--
  122.  
  123. on buttonPushedKeen123Cheats_(sender) -- This is connected to the button on the interface builder
  124.  
  125. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:keen123:Keen1-2-3-Keen-Vorticons-Cheat-Codes.txt"
  126. tell application "Finder" to open file theFile
  127.  
  128. return
  129.  
  130. end buttonPushedKeen123Cheats_
  131.  
  132. on buttonPushedKeen123Hints_(sender) -- This is connected to the button on the interface builder
  133.  
  134. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:keen123:Keen1-2-3-Keen_Vorticons_Hints.pdf"
  135. tell application "Finder" to open file theFile
  136.  
  137. return
  138.  
  139. end buttonPushedKeen123Hints_
  140.  
  141. on buttonPushedKeen123SGA_(sender) -- This is connected to the button on the interface builder
  142.  
  143. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:keen123:SGA-Keen3.png"
  144. tell application "Finder" to open file theFile
  145.  
  146. return
  147.  
  148. end buttonPushedKeen123SGA_
  149.  
  150. on buttonPushedKeenDreamsSolution_(sender) -- This is connected to the button on the interface builder
  151.  
  152. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_3.5:SOLUTION.TXT"
  153. tell application "Finder" to open file theFile
  154.  
  155. return
  156.  
  157. end PushedKeenDreamsSolution_
  158.  
  159. on buttonPushedKeenDreamsManual_(sender) -- This is connected to the button on the interface builder
  160.  
  161. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_3.5:Keen3.5-Keen_Dreams_Manual.pdf"
  162. tell application "Finder" to open file theFile
  163.  
  164. return
  165.  
  166. end PushedKeenDreamsManual_
  167.  
  168. on buttonPushedKeen45HintsDoc_(sender) -- This is connected to the button on the interface builder
  169.  
  170. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_4_5:Keen4-5-GGHINT.txt"
  171. tell application "Finder" to open file theFile
  172.  
  173. return
  174.  
  175. end PushedKeen45HintsDoc_
  176.  
  177. on buttonPushedKeen45CheatsDoc_(sender) -- This is connected to the button on the interface builder
  178.  
  179. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_4_5:Keen4-5-Keen-Galaxy-Cheat-Codes.txt"
  180. tell application "Finder" to open file theFile
  181.  
  182. return
  183.  
  184. end PushedKeen45CheatsDoc_
  185.  
  186. on buttonPushedKeen45HintsManual_(sender) -- This is connected to the button on the interface builder
  187.  
  188. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_4_5:Keen4-5-commander_keen_goodbye_galaxy_hints.pdf"
  189. tell application "Finder" to open file theFile
  190.  
  191. return
  192.  
  193. end PushedKeen45HintsManual_
  194.  
  195. on buttonPushedKeen6Hints_(sender) -- This is connected to the button on the interface builder
  196.  
  197. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Keen6-Aliens-Hints.pdf"
  198. tell application "Finder" to open file theFile
  199.  
  200. return
  201.  
  202. end buttonPushedKeen6Hints_
  203.  
  204. on buttonPushedKeen6Manual_(sender) -- This is connected to the button on the interface builder
  205.  
  206. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Keen6-Aliens-Manual_2.pdf"
  207. tell application "Finder" to open file theFile
  208.  
  209. return
  210.  
  211. end PushedKeen6Manual_
  212.  
  213. on buttonPushedKeen6Keening_(sender) -- This is connected to the button on the interface builder
  214.  
  215. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Keening.pdf"
  216. tell application "Finder" to open file theFile
  217.  
  218. return
  219.  
  220. end PushedKeen6Keening_
  221.  
  222. on buttonPushedKeen6SGA_(sender) -- This is connected to the button on the interface builder
  223.  
  224. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:SGA-Keen6_2x.png"
  225. tell application "Finder" to open file theFile
  226.  
  227. return
  228.  
  229. end buttonPushedKeen6SGA_
  230.  
  231.  
  232. on buttonPushedKeen123Floppy1_(sender) -- This is connected to the button on the interface builder
  233.  
  234. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:Keen123_Floppy_1.jpg"
  235. tell application "Finder" to open file theFile
  236.  
  237. return
  238.  
  239. end buttonPushedKeen123Floppy1_
  240.  
  241. on buttonPushedKeenCA123Box_(sender) -- This is connected to the button on the interface builder
  242.  
  243. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:ca_box_front.jpg"
  244. tell application "Finder" to open file theFile
  245.  
  246. return
  247.  
  248. end buttonPushedKeenCA123Box_
  249.  
  250. on buttonPushedKeenCA123Back_(sender) -- This is connected to the button on the interface builder
  251.  
  252. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:ca_box_back.jpg"
  253. tell application "Finder" to open file theFile
  254.  
  255. return
  256.  
  257. end buttonPushedKeenCA123Back_
  258.  
  259. on buttonPushedKeenCA123Floppy_(sender) -- This is connected to the button on the interface builder
  260.  
  261. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:ca_game_disk_front.jpg"
  262. tell application "Finder" to open file theFile
  263.  
  264. return
  265.  
  266. end buttonPushedKeenCA123Floppy_
  267.  
  268. on buttonPushedKeenCA123FloppyBack_(sender) -- This is connected to the button on the interface builder
  269.  
  270. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:ca_game_disk_back.jpg"
  271. tell application "Finder" to open file theFile
  272.  
  273. return
  274.  
  275. end buttonPushedKeenCA123FloppyBack_
  276.  
  277.  
  278. on buttonPushedKeen123Floppy2_(sender) -- This is connected to the button on the interface builder
  279.  
  280. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:Keen123_Floppy_2.jpg"
  281. tell application "Finder" to open file theFile
  282.  
  283. return
  284.  
  285. end buttonPushedKeen123Floppy2_
  286.  
  287. on buttonPushedKeenDreamsCover_(sender) -- This is connected to the button on the interface builder
  288.  
  289. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 3.5:Keen_Dreams_Cover.png"
  290. tell application "Finder" to open file theFile
  291.  
  292. return
  293.  
  294. end buttonPushedKeenDreamsCover_
  295.  
  296. on buttonPushedKeenDreamsBack_(sender) -- This is connected to the button on the interface builder
  297.  
  298. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 3.5:Keen_Dreams_Back.png"
  299. tell application "Finder" to open file theFile
  300.  
  301. return
  302.  
  303. end buttonPushedKeenDreamsBack_
  304.  
  305. on buttonPushedKeenDreamsFloppy_(sender) -- This is connected to the button on the interface builder
  306.  
  307. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 3.5:Keen_Dreams_Floppy.jpeg"
  308. tell application "Finder" to open file theFile
  309.  
  310. return
  311.  
  312. end buttonPushedKeenDreamsFloppy_
  313.  
  314. on buttonPushedKeenGGCover_(sender) -- This is connected to the button on the interface builder
  315.  
  316. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Front.jpg"
  317. tell application "Finder" to open file theFile
  318.  
  319. return
  320.  
  321. end buttonPushedKeenGGCover_
  322.  
  323.  
  324. on buttonPushedKeenGGBack_(sender) -- This is connected to the button on the interface builder
  325.  
  326. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Back.jpg"
  327. tell application "Finder" to open file theFile
  328.  
  329. return
  330.  
  331. end buttonPushedKeenGGBack_
  332.  
  333. on buttonPushedKeenGGFloppy1_(sender) -- This is connected to the button on the interface builder
  334.  
  335. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Floppy_1.jpg"
  336. tell application "Finder" to open file theFile
  337.  
  338. return
  339.  
  340. end buttonPushedKeenGGFloppy1_
  341.  
  342. on buttonPushedKeenGGFloppy2_(sender) -- This is connected to the button on the interface builder
  343.  
  344. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Floppy_2.jpg"
  345. tell application "Finder" to open file theFile
  346.  
  347. return
  348.  
  349. end buttonPushedKeenGGFloppy2_
  350.  
  351. on buttonPushedKeenGGFloppy3_(sender) -- This is connected to the button on the interface builder
  352.  
  353. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Floppy_3.jpg"
  354. tell application "Finder" to open file theFile
  355.  
  356. return
  357.  
  358. end buttonPushedKeenGGFloppy3_
  359.  
  360.  
  361. on buttonPushedKeen6DemoCover_(sender) -- This is connected to the button on the interface builder
  362.  
  363. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6 demo:Aliens_Demo_box_front.jpg"
  364. tell application "Finder" to open file theFile
  365.  
  366. return
  367.  
  368. end PushedKeen6DemoCover_
  369.  
  370. on buttonPushedKeen6DemoBack_(sender) -- This is connected to the button on the interface builder
  371.  
  372. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6 demo:Aliens_Demo_box_back.jpg"
  373. tell application "Finder" to open file theFile
  374.  
  375. return
  376.  
  377. end buttonPushedKeen6DemoBack_
  378.  
  379. on buttonPushedKeen6DemoFloppy_(sender) -- This is connected to the button on the interface builder
  380.  
  381. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6 demo:Aliens_Demo_disk_front.jpg"
  382. tell application "Finder" to open file theFile
  383.  
  384. return
  385.  
  386. end buttonPushedKeen6DemoFloppy
  387.  
  388. on buttonPushedKeen6DemoFloppyBack_(sender) -- This is connected to the button on the interface builder
  389.  
  390. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6 demo:Aliens_Demo_disk_back.jpg"
  391. tell application "Finder" to open file theFile
  392.  
  393. return
  394.  
  395. end buttonPushedKeen6DemoFloppyBack
  396.  
  397. on buttonPushedKeenAliensCover_(sender) -- This is connected to the button on the interface builder
  398.  
  399. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Box_Front.jpg"
  400. tell application "Finder" to open file theFile
  401.  
  402. return
  403.  
  404. end buttonPushedKeenAliensCover_
  405.  
  406.  
  407. on buttonPushedKeenAliensBack_(sender) -- This is connected to the button on the interface builder
  408.  
  409. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Box_Back.jpg"
  410. tell application "Finder" to open file theFile
  411.  
  412. return
  413.  
  414. end buttonPushedKeenAliensBack_
  415.  
  416.  
  417. on buttonPushedKeenAliensFloppy1_(sender) -- This is connected to the button on the interface builder
  418.  
  419. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Disk01.jpg"
  420. tell application "Finder" to open file theFile
  421.  
  422. return
  423.  
  424. end buttonPushedKeenAliensFloppy1_
  425.  
  426. on buttonPushedKeenAliensFloppy2_(sender) -- This is connected to the button on the interface builder
  427.  
  428. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Disk02.jpg"
  429. tell application "Finder" to open file theFile
  430.  
  431. return
  432.  
  433. end buttonPushedKeenAliensFloppy2_
  434.  
  435. on buttonPushedKeenAliensFloppy3_(sender) -- This is connected to the button on the interface builder
  436.  
  437. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Disk03.jpg"
  438. tell application "Finder" to open file theFile
  439.  
  440. return
  441.  
  442. end buttonPushedKeenAliensFloppy3_
  443.  
  444. --Ads
  445. on buttonPushedKeen123Ad_(sender) -- This is connected to the button on the interface builder
  446.  
  447. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:keen123:Apogee_Ad_Vorticons.png"
  448. tell application "Finder" to open file theFile
  449.  
  450. return
  451.  
  452. end buttonPushedKeen123Ad_
  453.  
  454. on buttonPushedKeen45Ad_(sender) -- This is connected to the button on the interface builder
  455.  
  456. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_4_5:Apogee_Ad_Galaxy.png"
  457. tell application "Finder" to open file theFile
  458.  
  459. return
  460.  
  461. end buttonPushedKeen45Ad_
  462.  
  463. on buttonPushedKeen6Ad_(sender) -- This is connected to the button on the interface builder
  464.  
  465. set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Apogee_Ad_Aliens.png"
  466. tell application "Finder" to open file theFile
  467.  
  468. return
  469.  
  470. end buttonPushedKeen6Ad_
  471.  
  472. end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement