This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# joins all files in a folder, sorted by modified date | |
# into a single file, output.txt | |
cat $(ls -tr *.log) > output.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set theProcessName to "Simulator" | |
set theWindowNumber to 1 | |
-- set this to 'true' to increase the captured screen region | |
-- to include device bezel drop-shadow | |
set includeDropshadowRegion to false | |
tell application "System Events" | |
tell process theProcessName | |
activate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env xcrun swift | |
// ~/bin/clickdrag -x 10 -y 20 -dx 200 -dy 100 -negx true -negy false -negdx false -negdy false | |
// http://www.paulcalnan.com/archives/2014/10/quicktime-screen-recording-of-a-single-window.html | |
import Foundation | |
let kDelayUSec : useconds_t = 500_000 | |
func DragMouse(from p0: CGPoint, to p1: CGPoint) { | |
let mouseDown = CGEvent.init(mouseEventSource:nil, | |
mouseType:.leftMouseDown, |