Installing Supervisor on OS X is simple:
sudo pip install supervisor
This assumes you have pip. If you don't:
| global yr | |
| set yr to "2012" | |
| global basePath | |
| set basePath to "Storage:Pictures:ApertureExport:" & yr & ":" | |
| tell application "System Events" | |
| set exportFolder to basePath |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Viewport Test</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <script src="/workaround.js"></script> | |
| </head> | |
| <body> |
| """ | |
| Author: Eric J. Ma | |
| Purpose: To merge PDFs together in an automated fashion. | |
| """ | |
| import os | |
| from PyPDF2 import PdfFileReader, PdfFileMerger |
| property imageFiles : {"jpg", "pef", "dng", "jpeg"} | |
| on adding folder items to theWatchedFolder after receiving theDetectedItems | |
| repeat with theItem in theDetectedItems | |
| set theItemPath to POSIX path of theItem | |
| set ImageFile to POSIX file theItemPath | |
| tell application "System Events" | |
| if name extension of theItem is in imageFiles then | |
| tell application "Photos" | |
| set DestinationAlbumName to "Inbox" |
| #!/usr/bin/python | |
| # encoding: utf-8 | |
| # | |
| # Copyright © 2015 Dean Jackson <[email protected]> | |
| # | |
| # MIT Licence. See http://opensource.org/licenses/MIT | |
| # | |
| # Created on 2015-04-20 | |
| # |
| <!doctype html> | |
| <html class=" webkit safari mobile iphone js"> | |
| <head> | |
| <meta name="viewport" content="width=device-width;"> | |
| <style id="ss"></style> | |
| <style> | |
| body { | |
| text-align: center; | |
| font-size: 1em; | |
| -webkit-transform: translate3d(0,0,0); |
| <style> | |
| .zero-clipboard { | |
| position: relative; | |
| } | |
| .btn-clipboard { | |
| position: absolute; | |
| top: 0; | |
| right: 0; | |
| z-index: 10; | |
| display: block; |
| ////////////////////////////////////////////////////////////// | |
| // Font Variables (http://cssfontstack.com/) | |
| ////////////////////////////////////////////////////////////// | |
| // | |
| // Serif font-stacks | |
| // | |
| $baskerville-font-stack: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif !default; |
| (* SPLIT TWO-PAGE PDFS | |
| --Stephen Margheim | |
| -- 11/2/13 | |
| -- open source | |
| VERSION 3.0 | |
| --Version 3 adds a feature for OCR'd PDFs. If your PDF has been OCR'd, the script now automatically crops the individual pages so that the text field is centered. | |
| This little program uses the Mac app Skim to split scanned PDFs that have two pages layed out on a single PDF page in landscape mode: |