This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
a "Desktop Workflow" monad with Objective-C bindings.
includes bindings to:
press keys with modifiers
get/set the clipboard
launch/focus applications
get the name of the current application
open URLs
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