How to run an R script in Powershell?

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

Was this solution helpful to you?

Other answers

The variable is the problem. Sort out your variables.

Find solution

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.