clockworkpc

MASC Meetings Trimester 1 for Google Calendar

Mar 11th, 2012
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.60 KB | None | 0 0
  1. #!/usr/bin/python
  2. #/home/cpcmonster/bin/MASCmeetings.py
  3.  
  4. # Released under a GPLv3 Licence by Clockwork PC 2011
  5. # www.clockworkpc.com.au
  6.  
  7. # You are entitled to the following four freedoms:
  8. # Freedom 0: To run this program for any purpose
  9. # Freedom 1: To study how this program works and change it to make it do what you wish
  10. # Freedom 2: To redistribute copies so you can help your neighbour
  11. # Freedom 3: To distribute copies of your modified version to others
  12.  
  13. import os
  14.  
  15. #Rhett's Gatherings
  16. nameRhett = "Rhett (or Sharni)"
  17. timeRhett = "10:30-12:00 March 12 2012"
  18. dayRhett = "every second Monday"
  19.  
  20. #Rowena's Gatherings
  21. nameRowena = "Rowena"
  22. timeRowena = "10:30-12:00 March 14 2012"
  23. dayRowena = "every fourth Wednesday"
  24.  
  25. #Sandra's Gatherings
  26. nameSandra = "Sandra"
  27. timeSandra = "12:00-14:00 March 16 2012"
  28. daySandra = "every fourth Friday"
  29.  
  30. #Jayne's Gatherings
  31. nameJayne1 = "Jayne"
  32. timeJayne1 = "13:00-15:00 March 20 2012"
  33. dayJayne1 = "every fourth Tuesday"
  34.  
  35. nameJayne2 = "Jayne"
  36. timeJayne2 = "11:30-12:30 April 5 2012"
  37. dayJayne2 = "every fourth Thursday"
  38.  
  39. #Belinda's Gatherings
  40. nameBelinda1 = "Belinda"
  41. timeBelinda1 = "11:00-12:00 March 22 2012"
  42. dayBelinda1 = "every fourth Thursday"
  43.  
  44. nameBelinda2 = "Belinda"
  45. timeBelinda2 = "12:00-14:00 March 30 2012"
  46. dayBelinda2 = "every fourth Friday"
  47.  
  48. #Sharni's Gatherings
  49.  
  50. nameSharni1 = "Sharni"
  51. timeSharni1 = "13:00-15:00 April 3 2012"
  52. daySharni1 = "every fourth Tuesday"
  53.  
  54. nameSharni2 = "Sharni"
  55. timeSharni2 = "12:00-14:00 March 28 2012"
  56. daySharni2 = "every fourth Wednesday"
  57.  
  58. #Line Details
  59.  
  60. lineIntro = "MASC Gathering with "
  61. lineRepeat = "for 11 weeks"
  62. lineLocation = "at The Learning Space"
  63.  
  64. #Generate lines for googlcl
  65.  
  66. print ""
  67.  
  68. lineRhett = lineIntro + nameRhett + " " + lineLocation + " " + timeRhett + " " + lineRepeat + " " + dayRhett
  69.  
  70. print lineRhett
  71.  
  72. print ""
  73.  
  74. lineRowena = lineIntro + nameRowena + " " + lineLocation + " " + timeRowena + " " + lineRepeat + " " + dayRowena
  75.  
  76. print lineRowena
  77.  
  78. print ""
  79.  
  80. lineSandra = lineIntro + nameSandra + " " + lineLocation + " " + timeSandra + " " + lineRepeat + " " + daySandra
  81.  
  82. print lineSandra
  83.  
  84. print ""
  85.  
  86. lineJayne1 = lineIntro + nameJayne1 + " " + lineLocation + " " + timeJayne1 + " " + lineRepeat + " " + dayJayne1
  87.  
  88. print lineJayne1
  89.  
  90. print ""
  91.  
  92. lineJayne2 = lineIntro + nameJayne2 + " " + lineLocation + " " + timeJayne2 + " " + lineRepeat + " " + dayJayne2
  93.  
  94. print lineJayne2
  95.  
  96. print ""
  97.  
  98. lineBelinda1 = lineIntro + nameBelinda1 + " " + lineLocation + " " + timeBelinda1 + " " + lineRepeat + " " + dayBelinda1
  99.  
  100. print lineBelinda1
  101.  
  102. print ""
  103.  
  104. lineBelinda2 = lineIntro + nameBelinda2 + " " + lineLocation + " " + timeBelinda2 + " " + lineRepeat + " " + dayBelinda2
  105.  
  106. print lineBelinda2
  107.  
  108. print ""
  109.  
  110. lineSharni1 = lineIntro + nameSharni1 + " " + lineLocation + " " + timeSharni1 + " " + lineRepeat + " " + daySharni1
  111.  
  112. print lineSharni1
  113.  
  114. print ""
  115.  
  116. lineSharni2 = lineIntro + nameSharni2 + " " + lineLocation + " " + timeSharni2 + " " + lineRepeat + " " + daySharni2
  117.  
  118. print lineSharni2
  119.  
  120. print ""
  121.  
  122. #Create calendars in Google Calender using googlcl
  123.  
  124. os.system("google calendar add " + '"' + lineRhett +'"')
  125. os.system("google calendar add " + '"' + lineRowena +'"')
  126. os.system("google calendar add " + '"' + lineSandra +'"')
  127. os.system("google calendar add " + '"' + lineJayne1 +'"')
  128. os.system("google calendar add " + '"' + lineJayne2 +'"')
  129. os.system("google calendar add " + '"' + lineBelinda1 +'"')
  130. os.system("google calendar add " + '"' + lineBelinda2 +'"')
  131. os.system("google calendar add " + '"' + lineSharni1 +'"')
  132. os.system("google calendar add " + '"' + lineSharni2 +'"')
Add Comment
Please, Sign In to add comment