473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Is there a way to push data into Ical from Python ?

Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
Python ?
Dec 16 '06 #1
5 4361
You could save your calendar_ to a .ics file which is in the VCal_ file
format; but that requires the extra step of manually saving your
calendar to a file or accessing the files that iCal creates behind the
scenes in ~/Library/Application Support/iCal/Sources/ which is unclear
and potentially hazardous to your data.

I'm guessing you would prefer to access the calendar data directly from
the script, like an Applescript would. One way would be to use
Python's tie-ins to Applescript_ and apple events (AE). As you will
read, this support isn't as strong as it used to be.

Another idea that would require more effort, but earn you some hacker
points, is to use PyObjC_ and access iCal's public programming
interface.

But by far the easiest is to google for what you want (my search was
for: "ical api"), find the iCalModule_ and try to make that work for
you. Although that module appears to only read the data and is
targeted toward 3rd-party calendars that are stored in
~/Library/Calendars.

share and enjoy,

!!Dean

... _calendar: http://en.wikipedia.org/wiki/ICalendar
... _VCal: http://en.wikipedia.org/wiki/VCal
... _Applescript: http://pythonmac.org/wiki/AppleScript
... _PyObjC: http://pyobjc.sourceforge.net/
... _iCalModule: http://www.devoesquared.com/Software/iCal_Module

The Night Blogger wrote:
Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
Python ?
Dec 17 '06 #2
You might find this useful:

http://doughellmann.blogspot.com/200...ilbox2ics.html

The Night Blogger wrote:
Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
Python ?
Dec 18 '06 #3
has
dwhall wrote:
One way would be to use
Python's tie-ins to Applescript_ and apple events (AE). As you will
read, this support isn't as strong as it used to be.
What gave you that impression, if you don't mind my asking?

It's true that Python's built-in application scripting support
(aetools+gensuitemodule) has become increasingly broken on OS X and
should be avoided. Third-party support has been continually improving
over the last few years, however, and these days is pretty much on-par
with AppleScript in terms of functionality. See
<http://appscript.sourceforge.netfor more information and downloads.

Another idea that would require more effort, but earn you some hacker
points, is to use PyObjC_ and access iCal's public programming
interface.
The CALCore framework is private in OS X 10.4, so the usual disclaimers
apply w.r.t. using that. See <http://www.cocoadev.com/index.pl?CALCore>
for a basic example of use. Scuttlebutt says there'll be a public iCal
framework in 10.5, although that won't help the OP right now unless
they're a paid-up ADC member.

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

Dec 18 '06 #4
"The Night Blogger" <th*************@gmail.comwrites:
Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
Python ?
see: http://vobject.skyhouseconsulting.com/

-- regards, Phil
Dec 18 '06 #5
has skrev:
dwhall wrote:
>One way would be to use
Python's tie-ins to Applescript_ and apple events (AE). As you will
read, this support isn't as strong as it used to be.

What gave you that impression, if you don't mind my asking?

http://www.google.dk/search?q=python+icalendar
--

hilsen/regards Max M, Denmark

http://www.mxm.dk/
IT's Mad Science
Dec 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mirnazim | last post by:
Hi, I was googling for some php scripts/class that would help me generate/parse iCal files for events. But I could not find anything proper. I got hold of http://www.phpicalendar.sf.net/. But...
0
by: Ninja67 | last post by:
Within limited VB application (uses a really old version), I'm trying to programmatically create an email with an iCal meeting invitation to send to Outlook users. So far I've been able to...
4
by: The Night Blogger | last post by:
Is there a way to push data to Microsoft Excel & Word from a Python Application Is this a cross platform feature ? I'll need to push data on MS Windows & Mac OS X ....
5
by: ludvig.ericson | last post by:
Hello, My question concerns asynchat in particular. With the following half- pseudo code in mind: class Example(asynchat.async_chat): def readable(self): if foo:...
3
by: Jerry Yang | last post by:
Hi My DB has 2 fields, one which has the date the other has the time. The date field is called Appt_Date and has values like 12/03/2008 (DD/ MM/YYYY) The time field is called Appt_Time and...
0
by: davy zhang | last post by:
I wrote this server to handle incoming messages in a process using multiprocessing named "handler", and sending message in a Thread named "sender", 'cause I think the async_chat object can not...
10
by: Terrence Brannon | last post by:
Hello, The most common way of dynamically producing HTML is via template engines like genshi, cheetah, makotemplates, etc. These engines are 'inline' --- they intersperse programming...
4
by: buzz2050 | last post by:
Hi all, I am working on a Moodle project, I have downloaded and installed the latest build(1.9); me using this framework for the first time so presently trying to get familiar with the...
2
OuTCasT
by: OuTCasT | last post by:
Hi im using this code to export appointments from a scheduler to outlook iCal file. The date doesnt pull through correctly Private Function GetAsTwoDigit(ByVal val As String) As String
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.