Applescript "Run Script" Error?
-
I get a variable error on this script: script EasScr repeat set num1 to random number from 1 to 10 set num2 to random number from 1 to 10 set sum to (num1 + num2) display dialog "Easy: " & num1 & " + " & num2 & " =" default answer "" if text returned of result is "" & sum then display dialog "Right!" buttons {"Cancel", "Difficulty", "New Number"} if button returned of result is "Difficulty" then run script DiffScr else if button returned of result is "New Number" then end if end if end repeat end script script MedScr display dialog "Medium" end script script HardScript display dialog "Hard" end script script DiffScr display dialog "Choose difficulty:" buttons {"Easy", "Medium", "Hard"} if button returned of result is "Easy" then run EasScr else if button returned of result is "Medium" then run MedScr else if button returned of result is "Hard" then run HardScr end if end script display dialog "Press Start." buttons {"Cancel", "Start"} run DiffScr It seems like I have to define "DiffScr" above "EasScr" but that will give an variable error for "EasScr". How can I fix this?
-
Answer:
The variable is the problem. Sort out your variables.
Oscar at Yahoo! Answers Visit the source
Other answers
The variable is the problem. Sort out your variables.
Related Q & A:
- How to convert Oracle script to MySQL script?Best solution by Stack Overflow
- How to solve the “Your search cannot be completed because of a service error” error in Search Center?Best solution by SharePoint
- How do you make a password in an Applescript?Best solution by Stack Overflow
- How to fix error printer Canon PIXMA iP1000 error msg The waste in absorber is full. Ink counter i reset?Best solution by Yahoo! Answers
- Why do I get the error "A network error occured while connecting to the server?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.