I am trying to figure out how to write a script file within my applescript program and then save it to the hard drive.
For example:
Within applescript studio I have:
script theScript
display dialog “Hello”
end theScript
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?
Thanks,
joshabb