The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniPlan > OmniPlan Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Applescript to set Stat holidays Thread Tools Search this Thread Display Modes
I am trying to applescript the setting of stat holidays from an iCal calender but I am a newbie to this and its not working any help would be great.

Code:
tell application "iCal"
	set startDates to start date of every event of calendar named "Canadian Holidays"
	set endDates to end date of every event of calendar named "Canadian Holidays"
end tell

tell application "OmniPlan"
	tell front document
		repeat with rIndex from 1 to count of resources
			tell calendar day schedule of resource rIndex
				repeat with eIndex from 1 to count of startDates
					subtract work time from "12:00 AM" to "11:59 PM" on (item eIndex of startDates)
				end repeat
			end tell
		end repeat
	end tell
end tell
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
insert new holidays Alex_wlf OmniPlan General 0 2013-04-10 04:20 AM
Holidays keep changing TexPine OmniPlan General 0 2011-01-06 03:18 AM


All times are GMT -8. The time now is 06:27 AM.


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