I am trying to write a script which runs only when a file has been modified.
I have file a intitial.txt already existing on my desktop when this is modified and saved by an applescript running within a process i want it in turn to run another script.
This separate script would update another file on my desktop called sub.txt after a pause of 5 seconds.
It is a bit like a folder action but the file already exists.
The important thing is the second script should only be a textedit function isolated from the script.
why? because the first script is running within a process, and that process conflicts with another program i am using.