source: AE/Setup/Mac/Run AE Installer.scpt@ 928

Last change on this file since 928 was 788, checked in by iritscen, 12 years ago

Adding code and resources for Mac AE Setup app.

File size: 1.1 KB
RevLine 
[788]1-- Run AE Installer v1.0
2-- for Anniversary Edition Seven
3-- by Iritscen
4-- ***NOTE: Save as an application, place inside Contents/Resources/ folder
5-- of Anniversary Edition Setup after building that script as an application too.
6-- Serves as a forking alias which opens either the AE Installer, or, if the AEI is
7-- not found, the AEI Updater so it can install the Installer. Used as both a
8-- shortcut for the user and as a part of the AE Setup process.
9
10tell application "Finder"
11 set myFolder to alias (parent of (path to me) as string)
12 set sMyFolder to myFolder as string
13 set AEIUfolder to sMyFolder & "AEInstaller"
14 set AEIU to AEIUfolder & ":AEInstaller2Updater.jar"
15 set AEIfolder to sMyFolder & "AEInstaller:bin"
16 set AEI to AEIfolder & ":AEInstaller2.jar"
17
18 if not (myFolder's name is "AE") then
19 display alert "Please put \"Run AE Installer\" in the \"AE\" folder so I can find the Installer."
20 else if (AEI exists) then
21 open AEI
22 else if (AEIU exists) then
23 open AEIU
24 else
25 display alert "Could not find AE Installer OR AE Installer Updater! You may need to re-install the AE."
26 end if
27end tell
Note: See TracBrowser for help on using the repository browser.