Skip to content

Instantly share code, notes, and snippets.

@benoitsan
benoitsan / gist:6278485
Last active April 19, 2023 22:37
Export to Devonthink from Prizmo
-- Export to Devonthink without extra OCR within Devonthink (Script written by Benjamin Zeiss)
on run argv
if (count of argv) is greater than 0 then
repeat with theItem in argv
tell application id "com.devon-technologies.thinkpro2" to launch
try
set thePath to theItem as text
tell application id "com.devon-technologies.thinkpro2"
set theRecord to import thePath to incoming group
end tell
enum {
NSModalResponseStop = (-1000), // Also used as the default response for sheets
NSModalResponseAbort = (-1001),
NSModalResponseContinue = (-1002),
} NS_ENUM_AVAILABLE_MAC(10_9);
typedef NSInteger NSModalResponse NS_AVAILABLE_MAC(10_9);
@benoitsan
benoitsan / gist:2512033
Created April 27, 2012 19:22
NSWindowController
//
// BBMyWindowController.m
// StacksCollection
//
// Created by Benoît Bourdon on 27/04/12.
// Copyright (c) 2012 Creaceed. All rights reserved.
//
#import "BBMyWindowController.h"