• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Easiest way to get a ordered list of calendars from iCal w/out AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Easiest way to get a ordered list of calendars from iCal w/out AppleScript


  • Subject: Re: Easiest way to get a ordered list of calendars from iCal w/out AppleScript
  • From: Mike Abdullah <email@hidden>
  • Date: Sun, 17 Sep 2006 19:59:44 +0100

Well I feel pretty confident that iSync makes use of Sync Services ;)

There's plenty of example code out there for reading the Library info you mention. It seems to take about a minute for changes to get written there though as you say.

If you're only wanting a list of calendars though, what's to stop you doing something along the lines of:

- (void)calendarCheck
{
	if ([self iCalIsRunning])
		[self getCalendarsWithApplescript];

	else
		[self getCalendarsFromDisk];
}

Mike.

On 17 Sep 2006, at 19:43, Eric wrote:

My application needs to get a list of writable calendars from iCal in
the same order as they appear in iCal.  I know AppleScript does this
easily, but it's undesirable in my case to launch iCal (which AS does)
if it's not already running.

I've looked into obtaining this info directly from the
~/Library/Application Support/iCal folder.  Namely, obtain the
calendars from the iCal/Sources directory, and the order information
from iCal/nodes.plist.  Problem with this is nodes.plist is updated
only when iCal quicks, so the information is out dated while iCal is
running.

Right now I'm looking into the Sync services API to achieve this, but
it's already looking to be too much trouble for just getting a list of
calendars.  But I may be jumping to conclusion here.

I've seen many applications that shows a list of calendars, such as
iSync. How do they do it is the question.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Re: Easiest way to get a ordered list of calendars from iCal w/out AppleScript
      • From: Eric <email@hidden>
References: 
 >Easiest way to get a ordered list of calendars from iCal w/out AppleScript (From: Eric <email@hidden>)

  • Prev by Date: Calling applescript from cocoa application and getting information back
  • Next by Date: Re: Calling applescript from cocoa application and getting information back
  • Previous by thread: Easiest way to get a ordered list of calendars from iCal w/out AppleScript
  • Next by thread: Re: Re: Easiest way to get a ordered list of calendars from iCal w/out AppleScript
  • Index(es):
    • Date
    • Thread