To run a script continuously the idle handler is the way to go. on idle set the clipboard to "http://www.accuweather.com/" --from standard additions return 5 --wait 5 seconds before running again end On May 22, 2009, at 12:04 AM, Marc Bossiere wrote: > Does anyone have an elegant, simple idea for a script which could > run in the background and > check the contents of the system clipboard continuously? > > I'm trying to find a way to open a web page from inside mini vMac (a > simple Mac Plus > emulator) where I have several Hypercard stacks running. This > emulator does not allow any > interacton with the host OS (X) machine, except for two little apps > which get and put > clipboard contents from and to the host machine. So I hope to send a > flag and a URL to the > host machine from vMac (via the clipboards) and have Applescript on > the host machine > notice it (more or less immediately), extract the URL, and load it > to a modern browser. And > something vice-versa, which I can write a HyperTalk idle script to > notice. > > Any ideas? > > mbossiere >