GithubHelp home page GithubHelp logo

vrosnet / 4d-plugin-calendar-watch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from universal-it-systems/4d-plugin-calendar-watch

0.0 1.0 0.0 484 KB

Return event IDs of modified calendar item by monitoring the sqlite directory used by Calendar.app.

C 61.77% C++ 25.48% Objective-C 11.90% HTML 0.86%

4d-plugin-calendar-watch's Introduction

4d-plugin-calendar-watch

Return event IDs of modified calendar item by monitoring the sqlite directory used by Calendar.app.

##Platform

carbon cocoa win32 win64
๐Ÿ†— ๐Ÿ†— ๐Ÿšซ ๐Ÿšซ

Examples

  //internally the plugin is not calling EventKit or CalendarStore.
  //it is using sqlite3 APIs to query the database at ~Library/Calendar

ARRAY TEXT($uids;0)  //the UUID of a calendar
ARRAY TEXT($paths;0)  //the full path of the folder that contains the .ics files
ARRAY TEXT($titles;0)  //the title
ARRAY LONGINT($types;0)  //1:caldav (e.g.iCloud), 5:exchange
ARRAY LONGINT($watchings;0)  //if the calendar path is watched by the plugin

Calendar GET LIST ($uids;$paths;$titles;$types;$watchings)

For ($i;1;Size of array($paths))
Calendar ADD TO WATCH ($paths{$i};"CALLBACK")
End for 

CALLBACK

C_TEXT($1;$event)
C_LONGINT($2;$type)

$event:=$1
$type:=$2

Case of 
: ($type=Calendar Event Create)

: ($type=Calendar Event Update)

: ($type=Calendar Event Delete)

End case 

TRACE

4d-plugin-calendar-watch's People

Contributors

miyako avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.