Skip to content

Instantly share code, notes, and snippets.

View dmgig's full-sized avatar
🏠

Dave M. Giglio dmgig

🏠
View GitHub Profile
@dmgig
dmgig / batchProcess.scpt
Created November 4, 2017 18:41 — forked from duhaime/batchProcess.scpt
Batch process files with ABBYY FineReader using AppleScript
-- specify input and output directories
set infile_directory to "/Users/doug/Desktop/inputs/"
set outfile_directory to "/Users/doug/Desktop/outputs/"
-- get the basenames of each input file
tell application "System Events"
set infile_list to files of folder infile_directory
end tell
-- process each input file
@dmgig
dmgig / phplint.sh
Last active April 4, 2016 16:03 — forked from mathiasverraes/phplint.sh
Recursive PHP Lint script (git tracked files only)
#!/bin/bash
# php linter of git tracked files
# passing --success argument will print no-error files in the list,
# otherwise, only files with parse errors will be displayed.
IFS=$'\n' #split filenames at newlines only
for file in `git ls-tree -r master --name-only`
do