-- Run AE Installer v1.0 -- for Anniversary Edition Seven -- by Iritscen -- ***NOTE: Save as an application, place inside Contents/Resources/ folder -- of Anniversary Edition Setup after building that script as an application too. -- Serves as a forking alias which opens either the AE Installer, or, if the AEI is -- not found, the AEI Updater so it can install the Installer. Used as both a -- shortcut for the user and as a part of the AE Setup process. tell application "Finder" set myFolder to alias (parent of (path to me) as string) set sMyFolder to myFolder as string set AEIUfolder to sMyFolder & "AEInstaller" set AEIU to AEIUfolder & ":AEInstaller2Updater.jar" set AEIfolder to sMyFolder & "AEInstaller:bin" set AEI to AEIfolder & ":AEInstaller2.jar" if not (myFolder's name is "AE") then display alert "Please put \"Run AE Installer\" in the \"AE\" folder so I can find the Installer." else if (AEI exists) then open AEI else if (AEIU exists) then open AEIU else display alert "Could not find AE Installer OR AE Installer Updater! You may need to re-install the AE." end if end tell