-- -- AppDelegate.applescript -- PrimerAppleScript -- -- Created by Robert Metcalfe on 6/05/13. -- Copyright (c) 2013 Robert Metcalfe. All rights reserved. -- script AppDelegate property parent : class "NSObject" on applicationWillFinishLaunching_(aNotification) -- Insert code here to initialize your application before any files are opened tell application "Finder" open file "Tapioca_FiveWays.png" of folder "htdocs" of folder "MAMP" of folder "Applications" of startup disk open file "Tapioca_FiveWays.MP3" of folder "htdocs" of folder "MAMP" of folder "Applications" of startup disk end tell tell application "Safari" open location "http://localhost:8888/audiotest.html" end tell end applicationWillFinishLaunching_ on applicationShouldTerminate_(sender) -- Insert code here to do any housekeeping before your application quits return current application's NSTerminateNow end applicationShouldTerminate_ end script