Hey guys,
This might be very basic but I am stumped. I am trying to pass a numerical variable to a keystroke. I know I could use a string but i want to use a loop and increment the number. I am unable to do so. Here is the very basic script without the loop. When I use it it will not enter the variable into the UI. It works if I use a string but not a variable.
tell application "System Events"
set a to 100571
delay 3
key code 55
delay 0.2
keystroke "4"
delay 0.5
keystroke a
delay 2
end tell
Any help would be appreciated.
Christopher