Skip to content
Browse files

Omnifocus headers

  • Loading branch information...
1 parent 91a565f commit 3883734a6eccbf995572855492f362b825b0bf3e @cschneid committed Feb 5, 2012
Showing with 1,256 additions and 0 deletions.
  1. +439 −0 Omnifocus.bridgesupport
  2. +817 −0 Omnifocus.h
View
439 Omnifocus.bridgesupport
@@ -0,0 +1,439 @@
+<?xml version='1.0'?>
+<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
+<signatures version='1.0'>
+<enum name='omnifocusIntervalUnitDay' value='1178814820'/>
+<enum name='omnifocusIntervalUnitHour' value='1178814792'/>
+<enum name='omnifocusIntervalUnitMinute' value='1178814797'/>
+<enum name='omnifocusIntervalUnitMonth' value='1178814829'/>
+<enum name='omnifocusIntervalUnitWeek' value='1178814839'/>
+<enum name='omnifocusIntervalUnitYear' value='1178814841'/>
+<enum name='omnifocusLocationTriggerNotifyWhenArriving' value='1281454710'/>
+<enum name='omnifocusLocationTriggerNotifyWhenLeaving' value='1282172278'/>
+<enum name='omnifocusPrintingErrorHandlingDetailed' value='1819763828'/>
+<enum name='omnifocusPrintingErrorHandlingStandard' value='1819767668'/>
+<enum name='omnifocusProjectStatusActive' value='1178816609'/>
+<enum name='omnifocusProjectStatusDone' value='1178816612'/>
+<enum name='omnifocusProjectStatusDropped' value='1178816580'/>
+<enum name='omnifocusProjectStatusOnHold' value='1178816616'/>
+<enum name='omnifocusSaveOptionsAsk' value='1634954016'/>
+<enum name='omnifocusSaveOptionsNo' value='1852776480'/>
+<enum name='omnifocusSaveOptionsYes' value='2036691744'/>
+<class name='omnifocusApplication'>
+<method selector='exists:'>
+<retval type='B'/>
+</method>
+<method selector='frontmost'>
+<retval type='B'/>
+</method>
+<method selector='open:usingCache:repairInPlace:upgradeInPlace:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='parseTasksWithTransportText:asSingleTask:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='print:withProperties:printDialog:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='select:extending:'>
+<arg type='B' index='1'/>
+</method>
+</class>
+<class name='omnifocusAttribute'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusContext'>
+<method selector='allowsNextAction'>
+<retval type='B'/>
+</method>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='effectivelyHidden'>
+<retval type='B'/>
+</method>
+<method selector='hidden'>
+<retval type='B'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setAllowsNextAction:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setHidden:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusDocument'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='canRedo'>
+<retval type='B'/>
+</method>
+<method selector='canUndo'>
+<retval type='B'/>
+</method>
+<method selector='compressesTransactions'>
+<retval type='B'/>
+</method>
+<method selector='includesSummaries'>
+<retval type='B'/>
+</method>
+<method selector='modified'>
+<retval type='B'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setCompressesTransactions:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setIncludesSummaries:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setWillAutosave:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='syncing'>
+<retval type='B'/>
+</method>
+<method selector='willAutosave'>
+<retval type='B'/>
+</method>
+</class>
+<class name='omnifocusFileAttachment'>
+<method selector='embedded'>
+<retval type='B'/>
+</method>
+</class>
+<class name='omnifocusFocusSections'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusFolder'>
+<method selector='effectivelyHidden'>
+<retval type='B'/>
+</method>
+<method selector='hidden'>
+<retval type='B'/>
+</method>
+<method selector='setHidden:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusPerspective'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusPreference'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusProject'>
+<method selector='blocked'>
+<retval type='B'/>
+</method>
+<method selector='completed'>
+<retval type='B'/>
+</method>
+<method selector='completedByChildren'>
+<retval type='B'/>
+</method>
+<method selector='defaultSingletonActionHolder'>
+<retval type='B'/>
+</method>
+<method selector='flagged'>
+<retval type='B'/>
+</method>
+<method selector='sequential'>
+<retval type='B'/>
+</method>
+<method selector='setCompleted:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setCompletedByChildren:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setDefaultSingletonActionHolder:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setFlagged:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setSequential:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setSingletonActionHolder:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='singletonActionHolder'>
+<retval type='B'/>
+</method>
+</class>
+<class name='omnifocusQuickEntryTree'>
+<method selector='visible'>
+<retval type='B'/>
+</method>
+</class>
+<class name='omnifocusRichText'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusSection'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusSetting'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusStyle'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusTask'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='blocked'>
+<retval type='B'/>
+</method>
+<method selector='completed'>
+<retval type='B'/>
+</method>
+<method selector='completedByChildren'>
+<retval type='B'/>
+</method>
+<method selector='flagged'>
+<retval type='B'/>
+</method>
+<method selector='inInbox'>
+<retval type='B'/>
+</method>
+<method selector='next'>
+<retval type='B'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='sequential'>
+<retval type='B'/>
+</method>
+<method selector='setCompleted:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setCompletedByChildren:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setFlagged:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setSequential:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusTree'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='expanded'>
+<retval type='B'/>
+</method>
+<method selector='noteExpanded'>
+<retval type='B'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='selected'>
+<retval type='B'/>
+</method>
+<method selector='setExpanded:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setNoteExpanded:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setSelected:'>
+<arg type='B' index='0'/>
+</method>
+</class>
+<class name='omnifocusWindow'>
+<method selector='archiveIn:compression:summaries:usingCache:'>
+<arg type='B' index='1'/>
+<arg type='B' index='2'/>
+<arg type='B' index='3'/>
+</method>
+<method selector='closeable'>
+<retval type='B'/>
+</method>
+<method selector='minimizable'>
+<retval type='B'/>
+</method>
+<method selector='minimized'>
+<retval type='B'/>
+</method>
+<method selector='printWithProperties:printDialog:'>
+<arg type='B' index='1'/>
+</method>
+<method selector='resizable'>
+<retval type='B'/>
+</method>
+<method selector='saveIn:as:compression:'>
+<arg type='B' index='2'/>
+</method>
+<method selector='selectExtending:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setMinimized:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setVisible:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='setZoomed:'>
+<arg type='B' index='0'/>
+</method>
+<method selector='visible'>
+<retval type='B'/>
+</method>
+<method selector='zoomable'>
+<retval type='B'/>
+</method>
+<method selector='zoomed'>
+<retval type='B'/>
+</method>
+</class>
+</signatures>
View
817 Omnifocus.h
@@ -0,0 +1,817 @@
+/*
+ * omnifocus.h
+ */
+
+#import <AppKit/AppKit.h>
+#import <ScriptingBridge/ScriptingBridge.h>
+
+
+@class omnifocusApplication, omnifocusDocument, omnifocusWindow, omnifocusDocumentWindow, omnifocusSetting, omnifocusFocusSections, omnifocusSection, omnifocusFolder, omnifocusContext, omnifocusProject, omnifocusTask, omnifocusAvailableTask, omnifocusRemainingTask, omnifocusInboxTask, omnifocusFlattenedTask, omnifocusFlattenedProject, omnifocusFlattenedFolder, omnifocusFlattenedContext, omnifocusPerspective, omnifocusPreference, omnifocusTree, omnifocusQuickEntryTree, omnifocusSidebarTree, omnifocusContentTree, omnifocusInboxTree, omnifocusLibraryTree, omnifocusDescendantTree, omnifocusAncestorTree, omnifocusLeaf, omnifocusFollowingSibling, omnifocusPrecedingSibling, omnifocusSelectedTree, omnifocusStyle, omnifocusAttribute, omnifocusNamedStyle, omnifocusRichText, omnifocusCharacter, omnifocusParagraph, omnifocusWord, omnifocusAttributeRun, omnifocusAttachment, omnifocusFileAttachment;
+
+enum omnifocusSaveOptions {
+ omnifocusSaveOptionsYes = 'yes ' /* Save the file. */,
+ omnifocusSaveOptionsNo = 'no ' /* Do not save the file. */,
+ omnifocusSaveOptionsAsk = 'ask ' /* Ask the user whether or not to save the file. */
+};
+typedef enum omnifocusSaveOptions omnifocusSaveOptions;
+
+enum omnifocusPrintingErrorHandling {
+ omnifocusPrintingErrorHandlingStandard = 'lwst' /* Standard PostScript error handling */,
+ omnifocusPrintingErrorHandlingDetailed = 'lwdt' /* print a detailed report of PostScript errors */
+};
+typedef enum omnifocusPrintingErrorHandling omnifocusPrintingErrorHandling;
+
+enum omnifocusProjectStatus {
+ omnifocusProjectStatusActive = 'FCPa' /* Active */,
+ omnifocusProjectStatusOnHold = 'FCPh' /* On Hold */,
+ omnifocusProjectStatusDone = 'FCPd' /* Done */,
+ omnifocusProjectStatusDropped = 'FCPD' /* Dropped */
+};
+typedef enum omnifocusProjectStatus omnifocusProjectStatus;
+
+enum omnifocusIntervalUnit {
+ omnifocusIntervalUnitMinute = 'FCIM' /* Minutes */,
+ omnifocusIntervalUnitHour = 'FCIH' /* Hours */,
+ omnifocusIntervalUnitDay = 'FCId' /* Days */,
+ omnifocusIntervalUnitWeek = 'FCIw' /* Weeks */,
+ omnifocusIntervalUnitMonth = 'FCIm' /* Months */,
+ omnifocusIntervalUnitYear = 'FCIy' /* Years */
+};
+typedef enum omnifocusIntervalUnit omnifocusIntervalUnit;
+
+enum omnifocusLocationTrigger {
+ omnifocusLocationTriggerNotifyWhenArriving = 'Larv' /* notify when arriving at this location */,
+ omnifocusLocationTriggerNotifyWhenLeaving = 'Llev' /* notify when leaving this location */
+};
+typedef enum omnifocusLocationTrigger omnifocusLocationTrigger;
+
+
+
+/*
+ * Standard Suite
+ */
+
+// The application's top-level scripting object.
+@interface omnifocusApplication : SBApplication
+
+- (SBElementArray *) perspectives;
+- (SBElementArray *) preferences;
+- (SBElementArray *) documents;
+- (SBElementArray *) windows;
+
+@property (copy, readonly) NSString *name; // The name of the application.
+@property (readonly) BOOL frontmost; // Is this the frontmost (active) application?
+@property (copy, readonly) NSString *version; // The version of the application.
+@property (copy, readonly) NSString *buildNumber; // This is the build number of the application, for example 63.1 or 63. Major and minor versions are separated by a dot. So 63.10 comes after 63.1.
+@property (copy) NSDate *referenceDate; // The date on from which the date collated smart groups are based. When set, the reference date will be rounded to the first instant of the day of the specified date.
+@property (copy) omnifocusDocument *defaultDocument; // The user's default document.
+@property (copy) omnifocusQuickEntryTree *quickEntry; // The Quick Entry panel for the default document.
+@property (copy, readonly) NSArray *perspectiveNames; // The names of all available perspectives.
+@property (copy, readonly) NSArray *allowedMailSenders; // The list of addresses allowed to send Mail to OmniFocus.
+
+- (SBObject *) open:(id)x usingCache:(BOOL)usingCache repairInPlace:(BOOL)repairInPlace upgradeInPlace:(BOOL)upgradeInPlace; // Open one or more documents.
+- (void) GetURL:(NSString *)x; // Open a document from an URL.
+- (void) print:(id)x withProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) quitSaving:(omnifocusSaveOptions)saving; // Quit the application.
+- (BOOL) exists:(id)x; // Verify if an object exists.
+- (NSArray *) complete:(NSString *)x as:(NSNumber *)as spanClass:(NSString *)spanClass maximumMatches:(NSInteger)maximumMatches; // Generate a list of completions given a string.
+- (NSArray *) parseTasksWithTransportText:(NSString *)withTransportText asSingleTask:(BOOL)asSingleTask; // Converts a textual representation of tasks into tasks.
+- (void) import:(NSURL *)x at:(SBObject *)at withContextsAt:(SBObject *)withContextsAt; // Imports a file into an existing OmniFocus document.
+- (void) add:(id)x to:(SBObject *)to; // Add the given object(s) to the container.
+- (void) remove:(id)x from:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) select:(id)x extending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopy:(id)x as:(id)as; // Copies one or more nodes to the pasteboard.
+- (void) pbpasteAt:(SBObject *)at; // Pastes nodes from the pasteboard.
+- (void) pbsaveIn:(NSURL *)in_ as:(NSString *)as; // Saves data from the pasteboard to a file.
+- (void) insert:(NSString *)x at:(SBObject *)at using:(omnifocusStyle *)using_; // Insert text in the middle of an existing blob of text.
+
+@end
+
+// An OmniFocus document.
+@interface omnifocusDocument : SBObject
+
+- (SBElementArray *) settings;
+- (SBElementArray *) documentWindows;
+- (SBElementArray *) sections;
+- (SBElementArray *) folders;
+- (SBElementArray *) projects;
+- (SBElementArray *) contexts;
+- (SBElementArray *) inboxTasks;
+- (SBElementArray *) tasks;
+- (SBElementArray *) flattenedTasks;
+- (SBElementArray *) flattenedProjects;
+- (SBElementArray *) flattenedFolders;
+- (SBElementArray *) flattenedContexts;
+
+- (NSString *) id; // The document's unique identifier.
+@property (readonly) BOOL canUndo; // Whether the document can undo the most recent command.
+@property (readonly) BOOL canRedo; // Whether the document can redo the most recently undone command.
+@property BOOL willAutosave; // Whether the document will autosave.
+@property BOOL compressesTransactions; // Whether the document will write compressed transactions to disk; defaults to true.
+@property BOOL includesSummaries; // Whether the document will write computed summary information when writing transactions.
+@property (readonly) BOOL syncing; // True if the document is currently syncing, false otherwise.
+@property (copy, readonly) NSDate *lastSyncDate; // Date of the last sync.
+@property (copy, readonly) NSString *lastSyncError; // Error message (if any) for the last sync.
+@property (copy) omnifocusQuickEntryTree *quickEntry; // The Quick Entry panel for the document.
+@property (copy, readonly) NSString *name; // The document's name.
+@property (readonly) BOOL modified; // Has the document been modified since the last save?
+@property (copy, readonly) NSURL *file; // The document's location on disk.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// A window.
+@interface omnifocusWindow : SBObject
+
+@property (copy, readonly) NSString *name; // The full title of the window.
+- (NSInteger) id; // The unique identifier of the window.
+@property NSInteger index; // The index of the window, ordered front to back.
+@property NSRect bounds; // The bounding rectangle of the window.
+@property (readonly) BOOL closeable; // Whether the window has a close box.
+@property (readonly) BOOL minimizable; // Whether the window can be minimized.
+@property BOOL minimized; // Whether the window is currently minimized.
+@property (readonly) BOOL resizable; // Whether the window can be resized.
+@property BOOL visible; // Whether the window is currently visible.
+@property (readonly) BOOL zoomable; // Whether the window can be zoomed.
+@property BOOL zoomed; // Whether the window is currently zoomed.
+@property (copy, readonly) omnifocusDocument *document; // The document whose contents are being displayed in the window.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+
+
+/*
+ * OmniFocus suite
+ */
+
+// A window of an OmniFocus document.
+@interface omnifocusDocumentWindow : omnifocusWindow
+
+@property (copy) NSString *searchTerm; // The search term in the toolbar. If there is no search toolbar item, this will return missing value instead of an empty string and setting it will cause an error.
+@property (copy, readonly) omnifocusSidebarTree *sidebar; // The tree of objects in the window sidebar.
+@property (copy, readonly) omnifocusContentTree *content; // The tree of objects in the main window content.
+@property (copy, readonly) NSArray *availableViewModeIdentifiers; // A list of strings identifying all the available view modes.
+@property (copy) NSString *selectedViewModeIdentifier; // The currently selected view mode.
+@property (copy) NSString *perspectiveName; // The name of a perspective.
+@property (copy) id focus; // A list of the projects and folders forming the project focus of this document window.
+
+
+@end
+
+// Document setting
+@interface omnifocusSetting : SBObject
+
+- (NSString *) id; // The identifier of the setting.
+@property (copy) id value; // The current value of the setting.
+@property (copy) id defaultValue; // The default value of the setting.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// The current focus of a document window.
+@interface omnifocusFocusSections : SBObject
+
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// A portion of a folder or document; either a project or a folder.
+@interface omnifocusSection : SBObject
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// A group of projects and sub-folders representing an folder of responsibility.
+@interface omnifocusFolder : omnifocusSection
+
+- (SBElementArray *) sections;
+- (SBElementArray *) folders;
+- (SBElementArray *) projects;
+- (SBElementArray *) flattenedProjects;
+- (SBElementArray *) flattenedFolders;
+
+- (NSString *) id; // The identifier of the folder.
+@property (copy) NSString *name; // The name of the folder.
+@property (copy) omnifocusRichText *note; // The note of the folder.
+@property BOOL hidden; // Set if the folder is currently hidden.
+@property (readonly) BOOL effectivelyHidden; // Set if the folder is currently hidden or any of its container folders are hidden.
+@property (copy, readonly) NSDate *creationDate; // When the folder was created.
+@property (copy, readonly) NSDate *modificationDate; // When the folder was last modified.
+@property (copy, readonly) id container; // The containing folder or document.
+@property (copy, readonly) id containingDocument; // The containing document or quick entry tree of the object.
+
+
+@end
+
+// A context.
+@interface omnifocusContext : SBObject
+
+- (SBElementArray *) contexts;
+- (SBElementArray *) flattenedContexts;
+- (SBElementArray *) tasks;
+- (SBElementArray *) availableTasks;
+- (SBElementArray *) remainingTasks;
+
+- (NSString *) id; // The identifier of the context.
+- (void) setId: (NSString *) id;
+@property (copy) NSString *name; // The name of the context.
+@property (copy) omnifocusRichText *note; // The note of the context.
+@property BOOL allowsNextAction; // If false, tasks assigned to this context will be skipped when determining the next action for a project.
+@property BOOL hidden; // Set if the context is currently hidden.
+@property (readonly) BOOL effectivelyHidden; // Set if the context is currently hidden or any of its container contexts are hidden.
+@property (copy, readonly) omnifocusContext *container; // The containing context.
+@property (readonly) NSInteger availableTaskCount; // A count of the number of unblocked and incomplete tasks of this context and all its active descendent contexts.
+@property (readonly) NSInteger remainingTaskCount; // A count of the number of incomplete tasks of this context and all its active descendent contexts.
+@property (copy, readonly) id containingDocument; // The containing document or quick entry tree of the object.
+@property (copy) id location; // The physical location of the context.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// A project.
+@interface omnifocusProject : omnifocusSection
+
+- (NSString *) id; // The identifier of the project.
+- (void) setId: (NSString *) id;
+@property (copy, readonly) omnifocusTask *rootTask; // The root task of this project, holding the project's name, note, dates and child tasks.
+@property (copy, readonly) id nextTask; // The next actionable child of this project.
+@property (copy) NSDate *lastReviewDate; // When the project was last reviewed.
+@property (copy) NSDate *nextReviewDate; // When the project should next be reviewed.
+@property (copy) NSDictionary *reviewInterval; // The review interval for the project.
+@property omnifocusProjectStatus status; // The status of the project.
+@property BOOL singletonActionHolder; // True if the project contains singleton actions.
+@property BOOL defaultSingletonActionHolder; // True if the project is the default holder of sington actions. Only one project can have this flag set; setting it on a project will clear it on any other project having it. Setting this to true will set 'singleton action holder' to true if not already so set.
+@property (copy, readonly) id container; // The containing folder or document.
+@property (copy, readonly) id folder; // The folder of the project, or missing value if it is contained directly by the document.
+- (NSString *) id; // The identifier of the project.
+- (void) setId: (NSString *) id;
+@property (copy) NSString *name; // The name of the project.
+@property (copy) omnifocusRichText *note; // The note of the project.
+@property (copy, readonly) id container; // The containing project, project or document.
+@property (copy, readonly) id containingDocument; // The containing document or quick entry tree of the object.
+@property (copy) id context; // The project's context. If a child is added, this will be used for its context.
+@property BOOL completedByChildren; // If true, complete when children are completed.
+@property BOOL sequential; // If true, any children are sequentially dependent.
+@property BOOL flagged; // True if flagged
+@property (readonly) BOOL blocked; // True if the project has a project that must be completed prior to it being actionable.
+@property (copy) NSDate *creationDate; // When the project was created. This can only be set when the object is still in the inserted state. For objects created in the document, it can be passed with the creation properties. For objects in a quick entry tree, it can be set until the quick entry panel is saved.
+@property (copy, readonly) NSDate *modificationDate; // When the project was last modified.
+@property (copy) id startDate; // When the project can be started.
+@property (copy) id dueDate; // When the project must be finished.
+@property (copy) id completionDate; // The project's date of completion.
+@property BOOL completed; // True if the project is completed.
+@property (copy) id estimatedMinutes; // The estimated time, in whole minutes, that this project will take to finish.
+@property (copy) id repetition; // The repetition interval of the project, or missing value if it does not repeat.
+@property (readonly) NSInteger numberOfTasks; // The number of direct children of this project.
+@property (readonly) NSInteger numberOfAvailableTasks; // The number of available direct children of this project.
+@property (readonly) NSInteger numberOfCompletedTasks; // The number of completed direct children of this project.
+
+
+@end
+
+// An task. This might represent the root of a project, an action within a project or other action or an inbox item.
+@interface omnifocusTask : SBObject
+
+- (SBElementArray *) tasks;
+- (SBElementArray *) flattenedTasks;
+
+- (NSString *) id; // The identifier of the task.
+- (void) setId: (NSString *) id;
+@property (copy) NSString *name; // The name of the task.
+@property (copy) omnifocusRichText *note; // The note of the task.
+@property (copy, readonly) id container; // The containing task, project or document.
+@property (copy, readonly) id containingProject; // The task's project, up however many levels of parent tasks. Inbox tasks aren't considered contained by their provisionalliy assigned container, so if the task is actually an inbox task, this will be missing value.
+@property (copy, readonly) id parentTask; // The task holding this task. If this is missing value, then this is a top level task -- either the root of a project or an inbox item.
+@property (copy, readonly) id containingDocument; // The containing document or quick entry tree of the object.
+@property (readonly) BOOL inInbox; // Returns true if the task itself is an inbox task or if the task is contained by an inbox task.
+@property (copy) id context; // The task's context. If a child is added, this will be used for its context.
+@property BOOL completedByChildren; // If true, complete when children are completed.
+@property BOOL sequential; // If true, any children are sequentially dependent.
+@property BOOL flagged; // True if flagged
+@property (readonly) BOOL next; // If the task is the next task of its containing project, next is true.
+@property (readonly) BOOL blocked; // True if the task has a task that must be completed prior to it being actionable.
+@property (copy) NSDate *creationDate; // When the task was created. This can only be set when the object is still in the inserted state. For objects created in the document, it can be passed with the creation properties. For objects in a quick entry tree, it can be set until the quick entry panel is saved.
+@property (copy, readonly) NSDate *modificationDate; // When the task was last modified.
+@property (copy) id startDate; // When the task can be started.
+@property (copy) id dueDate; // When the task must be finished.
+@property (copy) id completionDate; // The task's date of completion.
+@property BOOL completed; // True if the task is completed.
+@property (copy) id estimatedMinutes; // The estimated time, in whole minutes, that this task will take to finish.
+@property (copy) id repetition; // The repetition interval of the task, or missing value if it does not repeat.
+@property (readonly) NSInteger numberOfTasks; // The number of direct children of this task.
+@property (readonly) NSInteger numberOfAvailableTasks; // The number of available direct children of this task.
+@property (readonly) NSInteger numberOfCompletedTasks; // The number of completed direct children of this task.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// A task that is available for action. This is simply a filter on the existing tasks and should be considred a read-only element. These cannot be created directly; instead create a normal task.
+@interface omnifocusAvailableTask : omnifocusTask
+
+
+@end
+
+// A task that is not complete, though it may be blocked. This is simply a filter on the existing tasks and should be considred a read-only element. These cannot be created directly; instead create a normal task.
+@interface omnifocusRemainingTask : omnifocusTask
+
+
+@end
+
+// A task that is in the document's inbox
+@interface omnifocusInboxTask : omnifocusTask
+
+@property (copy) id assignedContainer; // Inbox tasks (those contained directly by the document) have a provisionally set container that is made final by the 'compact' command. This allows you to set and get said container. The container must be either a task (not in the inbox or contained by an inbox task), a project or 'missing value'.
+
+
+@end
+
+// A flattened list of tasks under a task or document.
+@interface omnifocusFlattenedTask : omnifocusTask
+
+
+@end
+
+// A flattened list of projects under a folder or document.
+@interface omnifocusFlattenedProject : omnifocusProject
+
+
+@end
+
+// A flattened list of folders in a document.
+@interface omnifocusFlattenedFolder : omnifocusFolder
+
+
+@end
+
+// A flattened list of contexts in a document.
+@interface omnifocusFlattenedContext : omnifocusContext
+
+
+@end
+
+// A perspective.
+@interface omnifocusPerspective : SBObject
+
+- (NSString *) id; // The identifier of the perspective.
+- (void) setId: (NSString *) id;
+@property (copy) NSString *name; // The name of the perspective.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+
+
+/*
+ * OmniFoundation Scripting
+ */
+
+// Application preference
+@interface omnifocusPreference : SBObject
+
+- (NSString *) id; // The identifier of the preference.
+@property (copy) id value; // The current value of the preference.
+@property (copy) id defaultValue; // The default value of the preference.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+
+
+/*
+ * Omni Tree Suite
+ */
+
+// A tree representing an object, along with its sub-trees.
+@interface omnifocusTree : SBObject
+
+- (SBElementArray *) trees;
+- (SBElementArray *) descendantTrees;
+- (SBElementArray *) ancestorTrees;
+- (SBElementArray *) leaves;
+- (SBElementArray *) precedingSiblings;
+- (SBElementArray *) followingSiblings;
+- (SBElementArray *) selectedTrees;
+
+@property (copy, readonly) NSString *name; // The name of the object being represented by this tree.
+- (NSString *) id; // The identifier of object being represented by this tree.
+@property (copy, readonly) id value; // The object being represented by this tree.
+@property BOOL selected; // This is true if the node is selected. Note that attempts to set this while the node is not visible (collapsed parent, etc.) will silently do nothing.
+@property BOOL expanded; // This is true if the node is expanded.
+@property BOOL noteExpanded; // This is true if the node note is expanded.
+@property (copy) NSArray *writablePasteboardTypes; // A list of the types that can be used when writing nodes to the pasteboard (i.e., copying).
+@property (copy) NSArray *readablePasteboardTypes; // A list of the types that can be used when reading nodes from the pasteboard (i.e., pasteing).
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+
+
+/*
+ * OmniFocus suite
+ */
+
+// The Quick Entry panel.
+@interface omnifocusQuickEntryTree : omnifocusTree
+
+- (SBElementArray *) folders;
+- (SBElementArray *) projects;
+- (SBElementArray *) contexts;
+- (SBElementArray *) inboxTasks;
+
+@property (readonly) BOOL visible; // Whether the quick entry panel is currently visible.
+
+
+@end
+
+// The tree of objects in the window sidebar.
+@interface omnifocusSidebarTree : omnifocusTree
+
+@property (copy, readonly) NSArray *availableSmartGroupIdentifiers; // The list of possible smart group identifiers that can be set as the selected smart group identifier.
+@property (copy) NSString *selectedSmartGroupIdentifier; // The currently selected smart group identifier.
+@property (copy) omnifocusLibraryTree *library;
+@property (copy) omnifocusInboxTree *inbox;
+
+
+@end
+
+// The tree of objects in the main window content.
+@interface omnifocusContentTree : omnifocusTree
+
+@property (copy, readonly) NSArray *availableGroupingIdentifiers; // The list of possible identifiers that can be set as the selected grouping identifier.
+@property (copy) NSString *selectedGroupingIdentifier; // The currently selected grouping identifier, controlling how the results shown in the content area are grouped.
+@property (copy, readonly) NSArray *availableSortingIdentifiers; // The list of possible identifiers that can be set as the selected sorting identifier.
+@property (copy) NSString *selectedSortingIdentifier; // The currently selected sorting identifier, controlling how the results shown in the content area are ordered.
+@property (copy, readonly) NSArray *availableTaskStateFilterIdentifiers; // The list of possible identifiers that can be set as the selected task state filter identifier.
+@property (copy) NSString *selectedTaskStateFilterIdentifier; // The currently selected task state filter identifier.
+@property (copy, readonly) NSArray *availableTaskDurationFilterIdentifiers; // The list of possible identifiers that can be set as the selected task duration filter identifier.
+@property (copy) NSString *selectedTaskDurationFilterIdentifier; // The currently selected task duration filter identifier.
+@property (copy, readonly) NSArray *availableTaskFlaggedFilterIdentifiers; // The list of possible identifiers that can be set as the selected task flagged filter identifier.
+@property (copy) NSString *selectedTaskFlaggedFilterIdentifier; // The currently selected task flagged filter identifier.
+
+
+@end
+
+// The tree in the sidebar representing the Inbox.
+@interface omnifocusInboxTree : omnifocusTree
+
+
+@end
+
+// The tree in the sidebar representing the top level library of objects.
+@interface omnifocusLibraryTree : omnifocusTree
+
+
+@end
+
+
+
+/*
+ * Omni Tree Suite
+ */
+
+// All the descendant trees in the user-specified sort ordering, listing each tree, then its children and so forth.
+@interface omnifocusDescendantTree : omnifocusTree
+
+
+@end
+
+// The ancestor trees of this tree.
+@interface omnifocusAncestorTree : omnifocusTree
+
+
+@end
+
+// The descendants of a tree that have no children themselves.
+@interface omnifocusLeaf : omnifocusTree
+
+
+@end
+
+// The sibling trees of this tree after it in the user-specified sort ordering.
+@interface omnifocusFollowingSibling : omnifocusTree
+
+
+@end
+
+// The sibling trees of this tree before it in the user-specified sort ordering.
+@interface omnifocusPrecedingSibling : omnifocusTree
+
+
+@end
+
+// The trees of this tree that are selected in the user interface, possibly including this tree.
+@interface omnifocusSelectedTree : omnifocusTree
+
+
+@end
+
+
+
+/*
+ * OmniStyle Scripting
+ */
+
+// A style object.
+@interface omnifocusStyle : SBObject
+
+- (SBElementArray *) namedStyles;
+- (SBElementArray *) attributes;
+
+@property (copy, readonly) id container; // The object owning the style.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// An attribute of a style.
+@interface omnifocusAttribute : SBObject
+
+@property (copy, readonly) NSString *name; // The name of the attribute.
+@property (copy) omnifocusStyle *style; // The style to which the attribute refers.
+@property (copy, readonly) omnifocusStyle *definingStyle; // The style responsible for the effective value in this attributes's style. This processes the local values, inherited styles and cascade chain.
+@property (copy) id value; // The value of the attribute in its style.
+@property (copy) id defaultValue; // The default value of the attribute in its style.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// A named style object.
+@interface omnifocusNamedStyle : omnifocusStyle
+
+- (NSString *) id; // An identifier for the named style that is unique within its document. Currently this identifier is not persistent between two different sessions of editing the document.
+@property (copy) NSString *name; // The name of the style. Must be unique within the containing document.
+
+
+@end
+
+
+
+/*
+ * Text Suite
+ */
+
+// Rich (styled) text
+@interface omnifocusRichText : SBObject
+
+- (SBElementArray *) characters;
+- (SBElementArray *) paragraphs;
+- (SBElementArray *) words;
+- (SBElementArray *) attributeRuns;
+- (SBElementArray *) attachments;
+- (SBElementArray *) fileAttachments;
+
+@property (copy) NSDictionary *color; // The color of the first character.
+@property (copy) NSString *font; // The name of the font of the first character.
+@property NSInteger size; // The size in points of the first character.
+@property (copy) omnifocusStyle *style; // The style of the text.
+
+- (void) closeSaving:(omnifocusSaveOptions)saving savingIn:(NSURL *)savingIn; // Close a document.
+- (void) saveIn:(NSURL *)in_ as:(NSString *)as compression:(BOOL)compression; // Save a document.
+- (void) printWithProperties:(NSDictionary *)withProperties printDialog:(BOOL)printDialog; // Print a document.
+- (void) delete; // Delete an object.
+- (id) duplicateTo:(SBObject *)to withProperties:(NSDictionary *)withProperties; // Copy object(s) and put the copies at a new location.
+- (SBObject *) moveTo:(SBObject *)to; // Move object(s) to a new location.
+- (SBObject *) archiveIn:(NSURL *)in_ compression:(BOOL)compression summaries:(BOOL)summaries usingCache:(BOOL)usingCache; // Write an backup archive of the document.
+- (void) compact; // Hides completed tasks and processes any inbox items that have the necessary information into projects and tasks.
+- (void) undo; // Undo the last command.
+- (void) redo; // Redo the last undone command.
+- (void) ical_synchronize; // Synchronizes with iCal.
+- (void) synchronize; // Synchronizes with the shared OmniFocus sync database.
+- (void) addTo:(SBObject *)to; // Add the given object(s) to the container.
+- (void) removeFrom:(SBObject *)from; // Remove the given object(s) from the container.
+- (void) selectExtending:(BOOL)extending; // Select one or more objects.
+- (void) pbcopyAs:(id)as; // Copies one or more nodes to the pasteboard.
+
+@end
+
+// This subdivides the text into characters.
+@interface omnifocusCharacter : omnifocusRichText
+
+
+@end
+
+// This subdivides the text into paragraphs.
+@interface omnifocusParagraph : omnifocusRichText
+
+
+@end
+
+// This subdivides the text into words.
+@interface omnifocusWord : omnifocusRichText
+
+
+@end
+
+// This subdivides the text into chunks that all have the same attributes.
+@interface omnifocusAttributeRun : omnifocusRichText
+
+
+@end
+
+// Represents an inline text attachment.
+@interface omnifocusAttachment : omnifocusRichText
+
+
+@end
+
+// A text attachment refering to a plain file.
+@interface omnifocusFileAttachment : omnifocusAttachment
+
+@property (copy, readonly) NSURL *fileName; // The path to the file for the attachment, if the attachment resides outside the document.
+@property (readonly) BOOL embedded; // If true, the attachment data resides inside the document. You can access the data by saving it to the disk.
+
+
+@end
+

0 comments on commit 3883734

Please sign in to comment.
Something went wrong with that request. Please try again.