View Single Post
Apologies if this has been posted elsewhere but I couldn't find a related post. I am writing an AppleScript to go through a project and calculate the number of days of slack from one task to the next closest dependent. I am setting "Slack" as a custom data object.

What I am trying to figure out is how to access the working duration for a specific date so I can see if should be counted in the calculation. I think I have been just staring at the code too long while trying to get other work accomplished. I have set the date to check as a date object called check_day. The last interation I tried was:

Code:
calendar day schedule of schedule of front document of check_day
Any thoughts? I have recently got a group of people here at work to order OmniPlan for their Macs but slack calculation was a requested item so I am trying to wow them by showing the extensibility.

Thanks for any help you can provide!
Brian