Can some one help me i started terminal and the i started the script then i pressed play and clicked on terminal and it still gave me this error "Can’t make number into type integer." number -1700 from number to integer what should i do
here is how my script is
tell application "Terminal"
activate
tell application "System Events"
activate
delay 1
repeat (number) times
set texttotype to "cd ~/Users/user/Downloads/Bot"
keystroke texttotype
keystroke return
delay 5
set test to "java -jar /Users/user/Downloads/Bot/PokeBotNinja.jar"
keystroke test
keystroke return
delay 5400
tell application "Terminal" to close front window
keystroke return
delay 1
set tab to "n"
keystroke "tab" using command down
keystroke return
end repeat
end tell
end tell