Hey all, I’m fairly new to apple script studio and I’m getting an NSCannotCreateScriptCommandError (10) error with the following code:
on clicked object
set theAmount to 1
set theEuros to 1
set theRate to 1.1253
set the contents of the text field "dollars" to theAmount as number -- <-- Problem is here
end clicked
This is a simple currency converter app using a rate*originalValue=result formula, although the rest of the code is not here for debugging purposes. The error is in the “set the contents” lline. I apologize if I seem incredibly n00b like, but I am quite new to the apple script. Any help is greatly appreciated. Thanks in advance.