Wie zu beheben Syntax Error: Expected end of line, etc. fand aber Ende des Skripts in applescript?

Erstelle ich ein Mod installer für Minecraft, die ist nur für den Mac. Es verwendet mehrere apps zu tun, eine Aufgabe, die jeder (Jeder von Ihnen war ein applescript-app). Aber heute habe ich angefangen, eine app, die alles macht. Wenn ich das fertige Skript und versucht zu kompilieren gibt er mir Syntax Error: Expected end of line, etc. fand aber Ende des Skripts.
Ich glaube, ich habe alles richtig gemacht aber ich weiß nicht, was dies verursacht.
Hier ist der code:

say "You are running iCraft version one point one for minecraft version 1.2.5"
display dialog "Which tool do you want to use?" buttons {"Mod Installer", "Backup", "Restore"} default button 3
set the button_pressed to the button returned of the result 
    if the button_pressed is "Mod Installer" then
        do shell script "~/desktop/iCraft/iCraft.app/contents/resources/scripts/installer.sh"
            display dialog "Insert all mod files into the Mods folder."
            display dialog "Have you inserted all Mod files into the Mods folder?" buttons {"Yes", "No"} default button 2
                    if the button_pressed is "Yes" then
                        do shell script "~/desktop/iCraft/iCraft.app/contents/resources/scripts/installer2.sh"
                                display dialog "Finished"
                        else
                            display dialog "Insert mod files into the Mods folder and restart iCraft.app."
                        end if
if the button_pressed is "Backup" then
    display dialog "Are you sure you want to backup your Minecraft.jar in it's current state?" buttons {"Yes", "No"} default button 2                       
            if the button_pressed is "Yes" then
                    do shell script "~/desktop/iCraft/iCraft.app/contents/resources/scripts/backup.sh"
                            display dialog "Finished, find it in your Backups directory in the iCraft folder"
            else
                display dialog "Backup aborted"             
            end if
else
    display dialog "Are you sure you want to restore your Minecraft.jar with your backup?" buttons {"Yes", "No"} default button 2
            if the button_pressed is "Yes" then
                do shell script "~/desktop/iCraft/iCraft.app/contents/resources/scripts/restore.sh"
                        display dialog "Restore finished"
            else
                display dialog "Restore aborted"            
end if
end
InformationsquelleAutor user1447526 | 2012-06-10
Schreibe einen Kommentar