My applescript has an error, and I can't fix it.

Hello, I am new to applescript and need to know how to fix somethings. I cannot seem to fix this:
display dialog "What feature of Bemin's Epic Script would you like to use?" buttons {"Quitter, "Bemin Quiz"}
if the button returned of the result is "Quitter" then
end if
display dialog "Is Chrome on?" buttons {"Yeah!", "No"}
if the button returned of the result is "Yeah!" then
          tell application "Google Chrome" to quit
          say "Trololololololol!" using "Alex"
          return
end if
if the button returned of the result is "Bemin Quiz" then
end if
display dialog "Beta"
return
Whenever I compile or run, applescript gives me this error: Expected “,” or “}” but found identifier. then highlights this: (in bold letters)
display dialog "What feature of Bemin's Epic Script would you like to use?" buttons {"Quitter, "Bemin Quiz"}
if the button returned of the result is "Quitter" then
end if
display dialog "Is Chrome on?" buttons {"Yeah!", "No"}
if the button returned of the result is "Yeah!" then
          tell application "Google Chrome" to quit
          say "Trololololololol!" using "Alex"
          return
end if
if the button returned of the result is "Bemin Quiz" then
end if
display dialog "Beta"
return
If your wondering about "Bemin", he is just a name I invented.

You forgot a quotation mark after the word Quitter on line one. Should be:
display dialog "What feature of Bemin's Epic Script would you like to use?" buttons {"Quitter", "Bemin Quiz"}

Similar Messages

  • My iPad has "Undefined error:31" how can I fix

    I am trying to sync my Ipad with my mac and continue to get the Undefined Error:31" what can I do to fix the problem

    What model iPad and what iTunes version is on your Mac?
    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
     Cheers, Tom

  • Apple Id has become corrupt and I can't fix it

    One of my Apple Ids is demanding a password and the one I have always used doesn't work any more.  I suspect it has been hacked because when I try to fix it I can't get past the security questions as it won't recognise my birth date.  Moreover, when I ask to reset the security via email, I never receive an email so it looks like the password, birth date and email address have all been changed. 
    When I say 'one of my Apple Ids' I mean this is an old one that I first set up when I got an iTunes account, before I got either my Mac or my iphone.  The account ID is an email address and to make things easier I'll call it by its short name of Lyonnesse.  When I finally went Apple I couldn't log on to the account and set up a new one in my proper name - Helen for short - using a gmail account
    My iphone is syncing to icloud using Helen and any photos I take on the phone have been finding their way onto my Mac, and into iphoto, but iphoto is now showing I have an issue with my icloud account - it tells me to check my settings.  Opening icloud in my system preferences shows me that Lyonnesse is the icloud account.  It won't let me change this without the password.  I tried to add Helen to the list by pressing the plus sign in the bottom left of the list but when I saved it, i got a message saying it was already logged in. 
    I genuinely don't know where to go next with this.  I'd ideally like to lose lyonnesse and just use Helen, but if I try to sign out of lyonnesse it says "Are you sure you want to turn off iCloud Photos?  Photos that have not been imported will be deleted from this computer".  I have to say, I find this immensely confusing.  From where I sit, if they've not been imported they can't be deleted
    How can I get back control of the lyonnesse account?  There doesn't seem to be any help available from Apple.  The Mac is outside its guarantee period so I can't get a call with a human being
    Sorry for the long message but I'm trying to give the right information

    Since have completely lost control of that Apple ID and neither recovery email nor security questions are working any more, you need to give Apple Support a call - only they will be able to help you. See this webpage on how to contact Apple Support in your country: There are either telephone numbers given or an email form:
         Apple ID: Contacting Apple for help with Apple ID account security
    Explain, that you need help with an account security problem.
    You can also try to email the iTunes Support using this form: https://ssl.apple.com/emea/support/itunes/contact.html

  • When I try to update my iTunes, it shows an error and I can't fix it. What can I do? (I have a pc, with window vista, old, I know)

    please, help!

    it says: errors occurred while installing the updates. If the problem persists, select "download only" and install them manually. (i had to translate because it is in spanish)

  • I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    I have installed the latest version of iTunes for Windows 8 but when I try to open it, it says Windows has an error and I simply can't open it any longer.  Any help is appreciated!

    Hey socestlavie,
    Thanks for the question. I understand you are experiencing issues with iTunes for Windows. The following resource may help to resolve your issue:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Thanks,
    Matt M.

  • Everytime i try to sign into my itunes account, it says: We could not complete your iTunes store request. An unknown error has occured (0x800b0101). What does this mean and how can i fix it?

    Everytime i try to sign into my iTunes account, it says: We could not complete your iTunes store request. An unknown error has occured (0x800B0101). What does this mean and how can i fix it?

    Hello zabetnz
    Start with the article below to get access to the iTunes Store. If it does not work, then there are some links towards the bottom of the article for additional troubleshooting.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    -Norm G.

  • Daughter has an iPhone and she can send me a text but when I text her back I get error code 2127

    My daughter has an iPhone and she can send me a text but when I try to text her back I get the error code 2127. Does anyone know what this means? Does this mean my messages to her are being blocked somehow?

    Usually it means you are texting a number which isn't 10 digits in length.  I would recommend that you delete the entry in your Contacts for your daughter, then find the text she sent you and create your new Contact from that. If she is listed in your favorites - delete her from there too, then re-add after a successful hook-up.

  • I'm trying to download office 365 small business package, and every time I try the website it says there is a runtime service error in the '/' application. Is this my mac or is it the website, and how can I fix it?

    I'm trying to download office 365 small business package, and every time I try the website it says there is a runtime service error in the '/' application. Is this my mac or is it the website, and how can I fix it?

    If a phone is sold from one friend to another and wants to use it on a different carrier the friend can contact the carrier it was sold by to request it unlocked.  I know AT&T, Verizon, and Sprint will give you the steps to unlock it as long as the original contract it was bought under has been completed.  eBay/Craigslist is really not the best place to try to get "unlocked phones" from, if it turns out the phone isn't unlocked then I'm really sorry you got stuck with that one and as stevejobsfan said above I would report them immediately and see if you can recover your money.  I sell phones for a living and this happens a lot

  • When I try to install ios lion the installer says my hard drive has SMART errors and that I need to buy a new Hard Drive, but my computer witch has snowleprd and runs just fine

    When I try to install ios lion the installer says my hard drive has SMART errors and that I need to buy a new Hard Drive, but my computer witch has snowleprd and runs just fine.

    SMART is a technology that monitors the drive for signs of impending failure. You can verify that SMART is indicating a problem in Disk Utility. Select the hard drive and look at the bottom of the window. It should look like this:
    If the SMART status is not "Verified" then you should back up your drive and start shopping for a new one.

  • Iphone has been in recovery mode for 4 hours and hasn't come back to the home screen and how can i fix this and get it back to working order?

    iphone has been in recovery mode for 4 hours and hasn't come back to the home screen and how can i fix this and get it back to working order?
    the iphone 4S has been in recovery mode for a long time and i have tried to press and hold the power and home buttons until the apple symbols comes on the screen again but it stay on the screen until the screen turns off and doesn't come back on to the home screen and have tried to sync with mac and doesn't do anything it does display the itunes and cable icons for a while but then goes back to the apple symbol and doers nothing what can I do to fix this  and not loose what is on the phone at all?

    Hi, simonRM.  
    Thank you for visiting Apple Support Communities. 
    I understand that you are unable to restore your iPhone.  Here are the best troubleshooting resources to start with when not being able to update or restore your iPhone.
    If you can't update or restore your iPhone, iPad, or iPod touch
    Resolve iOS update and restore errors in iTunes
    -Jason H.  

  • Java.exe has generated errors and will be closed by windows

    We are running win2000, with jre 1.4 and getting the following message at a particular point in our program:
    <b>"java.exe has generated errors and will be closed by windows. You will need to restart the program. An error log is being created."</b>
    I have 2 questions:
    1) does anyone know what would cause this?
    2) does anyone know where this log file is generated to?
    many thanks - there are a few duke dollars in it.

    We are getting same error with jdk1.6,
    we can get drwtsn32.log file for user home/documents folder by running with following option. -XX:+ShowMessageBoxOnError
    We got following log message:
    Application exception occurred:
    App: (pid=2288)
    When: 2/5/2008 @ 18:20:44.700
    Exception number: c0000005 (access violation)
    ----> System Information <----
    Computer Name: MAX-20
    User Name: Suresh.A
    Number of Processors: 1
    Processor Type: x86 Family 15 Model 2 Stepping 9
    Windows 2000 Version: 5.0
    Current Build: 2195
    Service Pack: 4
    Current Type: Uniprocessor Free
    Registered Organization: maxem
    Registered Owner: max-20
    has anybody found any solution / tools to identify this kind of issue?
    Thanks
    Nimalan

  • HT2693 it said activation Error,and i can't get in and see my serial number. what can i do?

    it said activation Error,and i can't get in and see my serial number.

    Hi tristanbolo,
    Thanks for visiting Apple Support Communities.
    If your iPad mini powered off unexpectedly and will not power on, try these steps, which apply to the iPad mini as well:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIs and corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Best,
    Jeremy

  • What does this error message when I try to do updates mean? And how can I fix it? Thanks.   The operation couldn't be completed. (NSURLErrorDomain error -1012.)

    What does this error message when I try to do updates mean? And how can I fix it? Thanks.   (The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    James
    maverick 10.9.1

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • HT1414 Why do I get 'This message has no content' with some e-mails on my iPad when the same messages can be received on my MacBook Pro without any problem, and how can I fix it?

    Why do I get - 'This message has no content' - with some e-mails on my iPad when the same messages can be received on my Mac Book Pro without any problem and how can I fix it?

    Is this a POP (POP3) email account?  If so, you MacBook Pro may be retrieving the email and deleting it off the server before your phone can.  Another possibility is that both your Mac and your phone are trying to retrieving it at the same time, and the POP server, which will only allow a single email client connection at a time, is locking out your phone resulting in the "has not been downloaded from the server" error.

  • Java.exe has generated errors and will be closed.....

    I have a java application installed on many PCs where it normally runs expect one (with Windows2000, as the other PCs): when I start the application the following error occurs:
    application error. java.exe has generated errors and will be closed by windows. You will need to restart he program
    (The application installs the directory jre with his java.exe that corresponds to jdk 1.2. The .bat that starts the application calls that java.exe specifying the correct classpath)
    Is ther anybody who knows how to explain/solve this problem?

    I have the same problem after installing Oracle Spatial 8.1.7 on a W2K PC with Pentium IV.
    I'm going crazy, because without Java I can't use DBA Studio...
    Anyone knows the solution?
    Thanks

Maybe you are looking for