Skip to content

Instantly share code, notes, and snippets.

@samjt
samjt / AnotherFile.md
Last active September 8, 2020 11:29
RFC for Something

Second File

@samjt
samjt / Copy App URL.scpt
Created April 6, 2020 11:56
Get the App URL
choose application
set theApp to the result
set myId to "app://" & (the id of theApp)
set the clipboard to myId
end
@samjt
samjt / gist:9e00b16af8a9e470a0a95102910e0d17
Created January 30, 2019 13:57
Get Xcode Workspace build settings
xcodebuild -workspace glass.xcworkspace -scheme glass -showBuildSettings
@samjt
samjt / Observer.h
Created January 10, 2019 15:58
Hooking into didFinishLaunching from a library
@interface Observer : NSObject
+ (id)sharedInstance;
- (void)didFinishLaunching:(NSNotification *)notification;
@end
@samjt
samjt / OpenSelection.scpt
Created November 24, 2015 20:40
Open Selection in Terminal
tell application "Finder"
set myFile to selection
set myClass to the class of myFile
if myClass is not folder then
set myFile to container of (myFile as alias)
end if
end tell
set myFile to quoted form of (POSIX path of (myFile as string))