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:
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
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
I can get the name, type, costs per use and the structure of the schedule of a resource:
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
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