Hello,
I am making an applescript that involved a text document with just a number in it.
This is the code I am having trouble with.
The Position.txt has just a single number in it but when i run it i get this error.
Cant make type 1 into number. (the error bit is the 1 after set theName to theName)
I have tried putting integer and number infront of both theName and the actual 1 but i still get the same error.
DoubleJGames
I am making an applescript that involved a text document with just a number in it.
This is the code I am having trouble with.
Code:
set posFileLoc to ((path to home folder as text) & "TestFolder:Position.txt")
set theName to (do shell script "cat " & quoted form of (POSIX path of posFileLoc))
set theName to theName + 1
Cant make type 1 into number. (the error bit is the 1 after set theName to theName)
I have tried putting integer and number infront of both theName and the actual 1 but i still get the same error.
DoubleJGames