Omni
2011-01-31, 01:52 PM
We have an internal script that needs a couple similar capabilities. Here's what I recall:
1. tell aTask to make new custom data entry with properties {name:"costSums", value:800}
2. you can't set a color directly, but you can add and remove styles:
repeat with aStyle in t's style's named styles
remove aStyle from t's style's named styles
end repeat
if exists named style costSum of aPlan then
add (named style costSum of aPlan) to t's style's named styles
end if
3. Hmmm... we didn't have to do that.