Could anyone point me in the direction of how to execute a plain text file as an AppleScript? Basically, I have the code to a script in a text file and I want my program to be able to run that text file as an AppleScript. So I’m trying to create an AppleScript that my program can launch which will compile and run a text file as a script. Is this possible?
It could be as simple as:
run script (read file "path:to:file")
depending on what your script looks like. If you need to pass variables back and forth, it is a little more complicated.
Jon
That’s exactly what I was looking for, thanks! I don’t need to pass any parameters, so all I need is the one line.
By the way, could someone tell me if there is an AppleScript reference on the internet somewhere? I want to be able to find the syntax for the basic AppleScript commands with an example for each one.