The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniPlan Extras (http://forums.omnigroup.com/forumdisplay.php?f=45)
-   -   Dereference week day schedules in apple script (http://forums.omnigroup.com/showthread.php?t=30093)

reeldba 2013-06-21 06:49 AM

Dereference week day schedules in apple script
 
Does anyone have an idea about how to dereference the schedules via Applescript?

I can get the name, type, costs per use and the structure of the schedule of a resource:

[FONT="Courier New"] repeat with i from 1 to count of resources in myScenario
set myResource to item i of resources in myScenario

name of myResource
resource type of myResource
cost per use of myResource
cost per hour of myResource

set thisSchedule to the schedule of myResource


repeat with j from 1 to count of week day schedules of thisSchedule
set wds to item j of week day schedules of thisSchedule

end repeat


end repeat[/FONT]

But i just cannot get to the actual properties of the week day schedule (wds) above. When I try I get the -1728 error from applescript.

get week day schedule of week day schedule 1
--> error number -1728 from week day schedule 1

Thanks,

Allen

Tom Bunch 2013-10-03 04:48 PM

I suspect a bug has crept in, there, and I'm filing it away. I hope to fix it real soon.

-Tom


All times are GMT -8. The time now is 07:46 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.