The workflow-osx package

[ Tags: accessibility, apple, automation, bindings, desktop, ffi, gpl, library, program ] [ Propose Tags ]

a "Desktop Workflow" monad with Objective-C bindings.

includes bindings to:

for example:

-- | cut the currently highlighted region
cut :: (MonadWorkflow m) => m String
cut = do
 sendKeyChord [CommandModifier] XKey
 delay 250
 getClipboard
-- | transform the currently highlighted region, via the clipboard
transformClipboard :: (MonadWorkflow m) => (String -> String) -> m ()
transformClipboard f = do
 contents <- cut
 setClipboard (f contents)
 sendKeyChord [CommandModifier] VKey

see Workflow.OSX for several more examples

(if hackage won't build the docs, see them at http://sboosali.github.io/documentation/workflow-osx/index.html)

(this package is on hackage for convenience, but it's still a prerelease)


[Skip to Readme]

Properties

Versions 0.0.0, 0.0.1
Dependencies base (==4.8.*), bv (==0.3.*), bytestring (==0.10.*), exceptions (==0.8.*), filepath (==1.4.*), free (==4.12.*), http-types (==0.8.*), mtl (==2.2.*), transformers (==0.4.2.*), workflow-osx (==0.0.1) [details]
License GPL-3
Copyright Copyright (C) 2015 Spiros M. Boosalis
Author Spiros Boosalis
Maintainer samboosalis@gmail.com
Category Accessibility, Apple, Automation, Bindings, Desktop, FFI
Home page https://github.com/sboosali/workflow-osx#readme
Bug tracker https://github.com/sboosali/workflow-osx/issues
Source repository head: git clone https://github.com/sboosali/workflow-osx
Uploaded Sun Oct 11 02:47:38 UTC 2015 by sboo
Distributions NixOS:0.0.1
Executables example
Downloads 256 total (38 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-01 [all 4 reports]
Hackage Matrix CI

Modules

  • Workflow
    • Workflow.OSX
      • Workflow.OSX.Bindings
        • Workflow.OSX.Bindings.Raw
      • Workflow.OSX.Constants
      • Workflow.OSX.DSL
      • Workflow.OSX.Example
      • Workflow.OSX.Execute
      • Workflow.OSX.Extra
      • Workflow.OSX.Marshall
      • Workflow.OSX.Types

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for workflow-osx-0.0.1

[back to package description]

workflow-osx

a (free) monad, with Objective-C bindings, for "Workflow" actions.

for detailed examples, see the documentation on hackage https://hackage.haskell.org/package/workflow-osx or github (<http://sboosali.github.io/documentation/workflow-osx/index.html).

Issues

the build

foreign dependencies always complicate the build process. it's known to work with the following:

  • OS

      $ sw_vers
      ProductName:    Mac OS X
      ProductVersion: 10.9.5
      BuildVersion:   13F34
    
  • C compiler

      $ gcc --version
      Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
      Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
      Target: x86_64-apple-darwin13.4.0
      Thread model: posix
    
  • Haskell compiler

      $ ghc --version 
      The Glorious Glasgow Haskell Compilation System, version 7.10.1
    

TODO

platform agnosticism

exploit the free monad's flexibility to define platform-agnostic workflows

problem: windows (Linux/Windows) versus processes (OS X)

problem: keyboards. Apple keyboards don't have the Windows key, Windows keyboards don't have the Apple key. some keyboards have a dozen random extra unbound keys.

automatic delay insertion

problem: currently, delays must be inserted manually. keyboard shortcuts in Emacs succeed with no delay. keyboard shortcuts in Chrome, like closing a tab with M-w, may drop without a long delay (like 250ms). furthermore, different actions need different delays between them (e.g. inserting text into Chrome can be done without delay).

parameterize Workflow on a keyboard type