I hereby claim:
- I am pwc3 on github.
- I am pwc (https://keybase.io/pwc) on keybase.
- I have a public key whose fingerprint is 54D6 83ED A697 10D0 9197 0AC4 EB1D 31E1 F05D EB34
To claim this, I am signing this object:
set theProcessName to "iOS Simulator" | |
set theWindowNumber to 1 | |
tell application "System Events" | |
tell process theProcessName | |
activate | |
tell window theWindowNumber | |
set thePosition to position | |
set theSize to size | |
end tell |
#!/usr/bin/env xcrun swift | |
import Foundation | |
let kDelayUSec : useconds_t = 500_000 | |
func DragMouse(from p0: CGPoint, to p1: CGPoint) { | |
let mouseDown = CGEventCreateMouseEvent(nil, .LeftMouseDown, p0, .Left) | |
let mouseDrag = CGEventCreateMouseEvent(nil, .LeftMouseDragged, p1, .Left) | |
let mouseUp = CGEventCreateMouseEvent(nil, .LeftMouseUp, p1, .Left) |
I hereby claim:
To claim this, I am signing this object:
#import <Foundation/Foundation.h> | |
#import <stdio.h> | |
@interface ExampleObject : NSObject | |
// BLOCK AS A PROPERTY | |
// ------------------- | |
// | |
// @property (copy, ...) return_type (^block_name)(parameter_types); | |
// |
#!/usr/bin/env bash | |
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift |
tell application "Xcode" | |
set _workspace to active workspace document | |
set _workspaceFile to file of _workspace | |
end tell | |
tell application "Finder" | |
set _posixTargetPath to quoted form of POSIX path of _workspaceFile | |
end tell | |
tell application "Xcode" |
tell application "System Events" | |
tell process "Tweetbot" | |
repeat | |
-- need to put this in a try block as it sometimes fails | |
try | |
-- loop over all of the windows | |
repeat with _window in windows | |
-- if the title isn't "Main Window"... | |
if title of _window is not "Main Window" then | |
-- ... close it by performing AXPress on button 1 (which corresponds to the red stoplight button) |
set appleID to "ENTER YOUR APPLE ID HERE" | |
activate application "Xcode" | |
tell application "System Events" | |
tell process "Xcode" | |
-- open the preferences dialog | |
click menu item "Preferences…" of menu "Xcode" of menu bar 1 | |
-- find and select the Accounts tab |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.paulcalnan.pbcopy</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/pbcopy</string> | |
</array> |