Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 16th, 2006, 08:45 PM
The Night Blogger
Guest
 
Posts: n/a
Default 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 ?


  #2  
Old December 17th, 2006, 02:05 PM
dwhall
Guest
 
Posts: n/a
Default Re: Is there a way to push data into Ical from Python ?

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:
Quote:
Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
Python ?
  #3  
Old December 18th, 2006, 01:15 AM
doug.hellmann@gmail.com
Guest
 
Posts: n/a
Default Re: Is there a way to push data into Ical from Python ?

You might find this useful:

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

The Night Blogger wrote:
Quote:
Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
Python ?
  #4  
Old December 18th, 2006, 04:45 PM
has
Guest
 
Posts: n/a
Default Re: Is there a way to push data into Ical from Python ?

dwhall wrote:
Quote:
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.

Quote:
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

  #5  
Old December 18th, 2006, 05:35 PM
Philip Austin
Guest
 
Posts: n/a
Default Re: Is there a way to push data into Ical from Python ?

"The Night Blogger" <thenightblogger@gmail.comwrites:
Quote:
Is there a way to pull & push data into (Apple Mac OS X Calendar) Ical from
Python ?
>
see: http://vobject.skyhouseconsulting.com/

-- regards, Phil
  #6  
Old December 18th, 2006, 08:35 PM
Max M
Guest
 
Posts: n/a
Default Re: Is there a way to push data into Ical from Python ?

has skrev:
Quote:
dwhall wrote:
>
Quote:
>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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles