Expected 'end', but concluded end script error. Anyone can solve this for me? THX.

I make a joke for my friend program but I can't seem to understand how to fix this script. I even deleted the "defective" part of the script and spruced up:

display dialog "our processor cannot handle the installation program. You can use the overclock button to use your CPU at full maximum performance. "Model: nVidia GeForce 1.88 Ghz Dual Core i5 CPU" buttons {"Cancel", "Overclock"} default button 2

If the button returned by the result is "Cancel" then

on the other

View dialog box "Are you sure you want to Overclock?" buttons {"Cancel", "Overclock"} default button 2

If the button returned by the result is "Cancel" then

on the other

display the dialog box "Where do you want to install?" buttons {"Macintosh HD"} 1 default button

show answer dialog "Please enter administrator password to continue" by default "Password" buttons {"OK"} default button 1

display dialog "error:-492 Macintosh HD not found" buttons {"Cancel"} 1 default button

display dialog "error:-492 Macintosh HD not found" with icon stop

end if

Complete script:

display the dialog box "You MUST close all applications EXCEPT this one. Macintosh may hang or lose data if some applications are open. It is recommended that save you all work"buttons {"OK"} 1 with icon stop default button

display the dialog box "PhotoShop install CS5 LS_20" buttons {"Cancel", "Install"} default button 2

  if the button returns the result is 'Cancel' and then

on the other

display the dialog box "Install LS_20 CS5 PhotoShop needs to restart. Please indicate the steps to reproduce this problem in the dialog below"default of answer" "buttons {"SEND"} default button 1

  end if

display the dialog box "You must restart your computer to complete your installation..." buttons {"Cancel", "Restart" key} by default 2

  if the button returns the result is 'Cancel' and then

on the other

display dialog "our processor cannot handle the installation program. You can use the overclock button to use your CPU at full maximum performance. "Model: nVidia GeForce 1.88 Ghz Dual Core i5 CPU" buttons {"Cancel", "Overclock"} default button 2

If the button returned by the result is "Cancel" then

on the other

View dialog box "Are you sure you want to Overclock?" buttons {"Cancel", "Overclock"} default button 2

If the button returned by the result is "Cancel" then

on the other

display the dialog box "Where do you want to install?" buttons {"Macintosh HD"} 1 default button

show answer dialog "Please enter administrator password to continue" by default "Password" buttons {"OK"} default button 1

display dialog "error:-492 Macintosh HD not found" buttons {"Cancel"} 1 default button

display dialog "error:-492 Macintosh HD not found" with icon stop

end if

Thank you for all who solves this problem

Add the following line at the end of this code segment:

end if

(142671)

Tags: iOS Developer

Similar Questions

Maybe you are looking for