I am trying to figure out how to write a script file within my applescript program and then save it to the hard drive.
Within applescript studio I have:
display dialog “Hello”
store script theScript in file (some arbitrary file) with replacing
When I try to run the script that it creates it is run-only and nothing happens. It doesn’t run; I am not even sure if there is any code inside the new file. Can anyone tell me what I am doing wrong?