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
// | |
// NSApplication+openSettings.swift | |
// | |
// Created by Stephan Casas on 12/3/23. | |
// | |
import SwiftUI; | |
fileprivate let kAppMenuInternalIdentifier = "app" | |
fileprivate let kSettingsLocalizedStringKey = "Settings\\U2026"; |
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
// | |
// CGWindowDictionary.swift | |
// | |
// Created by Stephan Casas on 11/2/23. | |
// | |
import Foundation; | |
import CoreGraphics; | |
import AppKit; |
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
// | |
// CIFilter+Knockout.swift | |
// | |
// | |
// Created by Stephan Casas on 10/13/23. | |
// | |
import Foundation | |
import CoreImage; |
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
// | |
// CGCoordinateSpaces.swift | |
// | |
// Created by Stephan Casas on 11/7/23. | |
// | |
import Foundation; | |
// MARK: - CGPoint |
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 osascript -l JavaScript | |
let _AXError; | |
const $attr = Ref(); | |
const $windows = Ref(); | |
const $children = Ref(); | |
const kAXParentAttribute = 'AXParent'; | |
const kAXChildrenAttribute = 'AXChildren'; |
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 osascript -l JavaScript | |
const App = Application.currentApplication(); | |
App.includeStandardAdditions = true; | |
const kCFPrefsFeatureFlagsDir = '/Library/Preferences/FeatureFlags/Domain'; | |
const kCFPrefsFeatureEnabledKey = 'Enabled'; | |
const kUIKitDomainPrefsTemporaryPath = '/tmp/UIKit.plist'; | |
const kUIKitRedesignedTextCursorKey = 'redesigned_text_cursor'; |
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 osascript -l JavaScript | |
function run(argv) { | |
const outputPath = `${$.NSHomeDirectory().js}/Downloads/output.pdf`; | |
const outputURL = $.NSURL.fileURLWithPath(outputPath); | |
const docPaths = [ | |
'/path/to/some/document.pdf', | |
'/path/to/other/document.pdf', | |
]; |
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
// | |
// CGEventSupervisor.swift | |
// Mouseless Messenger Pro | |
// | |
// Created by Stephan Casas on 4/24/23. | |
// | |
import Cocoa; | |
class CGEventSupervisor { |
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
// | |
// ColorFloodExample.swift | |
// ColorFloodExample | |
// | |
// Created by Stephan Casas on 6/28/23. | |
// | |
import SwiftUI; | |
import Accelerate; | |
import CoreGraphics; |