Re: [MacRuby-devel] Basic delayed email method

2012-10-20 Thread Mark Rada
Hi Rob, I think Colin answered this fairly well. Personally, I prefer to use GCD when available because I find the API simpler and GCD stuff works with or without run loops. -- Mark On 2012-10-20, at 2:40 PM, Robert Carl Rice wrote: > Hi Mark, > > I use NSTimer a lot in my apps. Wh

Re: [MacRuby-devel] Basic delayed email method

2012-10-20 Thread Cliff Rosson
> > As for actually sending emails, if you want to have things go through > Apple Mail you could use the ScriptingBridge framework which has a few > tutorials online (but for iTunes): > > > http://arstechnica.com/apple/2011/09/tutorial-os-x-automation-with-macruby-and-the-scripting-bridge/ > > AXEl

Re: [MacRuby-devel] Basic delayed email method

2012-10-20 Thread Cliff Rosson
Hi Mark, I wouldn't actually loop for an hour I was just lazily writing something as an example in chat. I'll take a look at what you provided and try to post my updates here. Thanks so much! :) -Cliff On Sat, Oct 20, 2012 at 11:50 AM, Colin Thomas-Arnold wrote: > A timer would work fine here I

Re: [MacRuby-devel] Basic delayed email method

2012-10-20 Thread Colin Thomas-Arnold
A timer would work fine here I think, but in my opinion there is a lot of value in learning GCD - but I also use NSTimers all the time, so whatever floats the boat. But the original code Cliff sent doesn't use a Timer, it assigns a time in the future and checks as often as possible that it is e

Re: [MacRuby-devel] Basic delayed email method

2012-10-20 Thread Robert Carl Rice
Hi Mark, I use NSTimer a lot in my apps. What is the advantage of using GCD API? There is an excellent tutorial on the web for specifically for setting up ScriptingBridge for Apple Mail but I forget where I saw it. On warning; if you set up ScriptingBridge for Apple Mail don't try to take a sna