PDA

View Full Version : Correct way to get a tasks "repetition" value.


hendryx
2008-07-14, 02:15 PM
I may just be in need of sleep here, but could someone point me at the correct way of doing this.

In my applescript I currently have;
set repeatValue to repetition of oTask

but that is bringing up an applescript error.

Can anyone see what I'm sure I'm doing stupidly wrong here?

hendryx
2008-07-16, 04:42 AM
Just incase anyone reads this later on, thought I'd post my mistake.

'repetition' will give you a 'missing value' if the task isn't repeated - so remember to test for that before you grab the value.

Also remember that if you're getting sleepy, you maybe should stop coding. :)