Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - AppDelegate.applescript
- -- CCK
- --
- -- Created by eisnerguy1 on 12/27/17.
- -- Copyright © 2017 eisnerguy1. All rights reserved.
- --
- script AppDelegate
- property parent : class "NSObject"
- -- IBOutlets
- property theWindow : missing value
- on applicationWillFinishLaunching_(aNotification)
- -- Insert code here to initialize your application before any files are opened
- end applicationWillFinishLaunching_
- on applicationShouldTerminate_(sender)
- -- Insert code here to do any housekeeping before your application quits
- return current application's NSTerminateNow
- end applicationShouldTerminate_
- on buttonPushedKeen1_(sender) -- This is connected to the button on the interface builder
- --set appLocation to path to me as string
- -- set theFile to appLocation & "Contents:Resources:Episode One - Marooned on Mars.app" as alias
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Episode One - Marooned on Mars.app"
- tell application "Finder" to open file theFile
- --do shell script "open -b com.id.keen1"
- return
- end buttonPushedKeen1_
- on buttonPushedKeen2_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Episode Two - The Earth Explodes.app"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen2_
- on buttonPushedKeen3_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Episode Three - Keen Must Die!.app"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen3_
- on buttonPushedKeenVorticonsHint_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen123:Vorticons On-Disk Hint Sheet.app"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenVorticonsHint_
- on buttonPushedKeenDreams_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenDreams_
- on buttonPushedKeen4_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen4_
- on buttonPushedKeen5_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen45:Episode V - The Armageddon Machine.app"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen5_
- on buttonPushedKeenGGHint_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenGGHint_
- --on buttonPushedKeenDopefish_(sender) -- This is connected to the button on the interface builder
- -- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:games:keen45:Dopefish.app"
- --tell application "Finder" to open file theFile
- -- return
- -- end PushedKeenDopefish_
- on buttonPushedKeen6_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen6_
- --Docs section--
- on buttonPushedKeen123Cheats_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen123Cheats_
- on buttonPushedKeen123Hints_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen123Hints_
- on buttonPushedKeen123SGA_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:keen123:SGA-Keen3.png"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen123SGA_
- on buttonPushedKeenDreamsSolution_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_3.5:SOLUTION.TXT"
- tell application "Finder" to open file theFile
- return
- end PushedKeenDreamsSolution_
- on buttonPushedKeenDreamsManual_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end PushedKeenDreamsManual_
- on buttonPushedKeen45HintsDoc_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_4_5:Keen4-5-GGHINT.txt"
- tell application "Finder" to open file theFile
- return
- end PushedKeen45HintsDoc_
- on buttonPushedKeen45CheatsDoc_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end PushedKeen45CheatsDoc_
- on buttonPushedKeen45HintsManual_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end PushedKeen45HintsManual_
- on buttonPushedKeen6Hints_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Keen6-Aliens-Hints.pdf"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen6Hints_
- on buttonPushedKeen6Manual_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Keen6-Aliens-Manual_2.pdf"
- tell application "Finder" to open file theFile
- return
- end PushedKeen6Manual_
- on buttonPushedKeen6Keening_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Keening.pdf"
- tell application "Finder" to open file theFile
- return
- end PushedKeen6Keening_
- on buttonPushedKeen6SGA_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:SGA-Keen6_2x.png"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen6SGA_
- on buttonPushedKeen123Floppy1_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:Keen123_Floppy_1.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen123Floppy1_
- on buttonPushedKeenCA123Box_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:ca_box_front.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenCA123Box_
- on buttonPushedKeenCA123Back_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:ca_box_back.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenCA123Back_
- on buttonPushedKeenCA123Floppy_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenCA123Floppy_
- on buttonPushedKeenCA123FloppyBack_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenCA123FloppyBack_
- on buttonPushedKeen123Floppy2_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 1-3:Keen123_Floppy_2.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen123Floppy2_
- on buttonPushedKeenDreamsCover_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 3.5:Keen_Dreams_Cover.png"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenDreamsCover_
- on buttonPushedKeenDreamsBack_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 3.5:Keen_Dreams_Back.png"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenDreamsBack_
- on buttonPushedKeenDreamsFloppy_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 3.5:Keen_Dreams_Floppy.jpeg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenDreamsFloppy_
- on buttonPushedKeenGGCover_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Front.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenGGCover_
- on buttonPushedKeenGGBack_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Back.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenGGBack_
- on buttonPushedKeenGGFloppy1_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Floppy_1.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenGGFloppy1_
- on buttonPushedKeenGGFloppy2_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Floppy_2.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenGGFloppy2_
- on buttonPushedKeenGGFloppy3_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 4-5:GG_Floppy_3.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenGGFloppy3_
- on buttonPushedKeen6DemoCover_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end PushedKeen6DemoCover_
- on buttonPushedKeen6DemoBack_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen6DemoBack_
- on buttonPushedKeen6DemoFloppy_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen6DemoFloppy
- on buttonPushedKeen6DemoFloppyBack_(sender) -- This is connected to the button on the interface builder
- 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"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen6DemoFloppyBack
- on buttonPushedKeenAliensCover_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Box_Front.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenAliensCover_
- on buttonPushedKeenAliensBack_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Box_Back.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenAliensBack_
- on buttonPushedKeenAliensFloppy1_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Disk01.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenAliensFloppy1_
- on buttonPushedKeenAliensFloppy2_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Disk02.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenAliensFloppy2_
- on buttonPushedKeenAliensFloppy3_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:scans:Keen 6:Aliens_Disk03.jpg"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeenAliensFloppy3_
- --Ads
- on buttonPushedKeen123Ad_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:keen123:Apogee_Ad_Vorticons.png"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen123Ad_
- on buttonPushedKeen45Ad_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_4_5:Apogee_Ad_Galaxy.png"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen45Ad_
- on buttonPushedKeen6Ad_(sender) -- This is connected to the button on the interface builder
- set theFile to "Macintosh HD:Applications:Commander Keen Collection:Commander Keen Collection.app:Contents:Resources:files:docs:Keen_6:Apogee_Ad_Aliens.png"
- tell application "Finder" to open file theFile
- return
- end buttonPushedKeen6Ad_
- end script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement