473,714 Members | 2,240 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4385
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+gensui temodule) 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.sourc eforge.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.co m/index.pl?CALCor e>
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.comwrit es:
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
3063
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 i cannot generate iCal file. It can only read them. Is anyone aware of such a tool.
0
1445
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 create a file, then attach it to an email and send it. The recipient gets the email but must manually open the .ics attachment to get the Accept/Decline buttons and meeting details. I've seen other third party programs such as Lotus Notes send...
4
2758
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
2463
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: self.push_with_producer(ProducerA()) return asynchat.async_chat.readable(self)
3
2758
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 has values like 10:30 (am) I can retrieve both of these fields from the DB and present them on screen, but I need to do it in iCAL format.
0
1357
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 pass between processes. My project is a network gate server with many complex logic handler behind, so I use multiprocessing to handle them separately and send back the clients later when done. To use the server multicore cpu I tried to separate...
10
1714
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 constructs with the HTML document itself. An opposite approach to this form of dynamic HTML production is called push-style templating, as coined by Terence Parr:
4
3248
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 environment. The requirement is to embed an iCal kinda calendar on Moodle's front page using the PHP iCalendar API. I downloaded the latest version of PHP iCalendar but couldn't quite comprehend the 'read me' file instructions. Has anyone ever worked...
2
3545
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
8808
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8712
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9316
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9177
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9077
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7954
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6637
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5951
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2524
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.