I wrote an applescript script that would loop forever refreshing an rss feed. I use it quite often so i though it'll port it over to xcode and make it neater. When i press a button to start, the program loops and it locks up, its working but it's frozen. How do I make a start stop button looping something without making the program freeze?