Skip to content

Instantly share code, notes, and snippets.

View swiftuibuttons.swift
https://www.youtube.com/watch?v=slzc0-24q-I
// SwiftUI: Custom Button using ButtonStyle
import SwiftUI
struct ContentView : View {    
    var body: some View {
        VStack {
            Button("Hello World"){}
@freecodecampster
freecodecampster / QuickTime Player Audio Recording.scpt
Created Nov 1, 2019
Using JavaScript instead of AppleScript to automate a QuickTime Player Audio Recording for a specified time on macOS Catalina.
View QuickTime Player Audio Recording.scpt
/*
JXA JavaScript for Automation
Working in macos Catalina 10.15.1
Resources:
https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/index.html#//apple_ref/doc/uid/TP40016239-CH56-SW1
*/
editor = Application.currentApplication(); // Script Editor
editor.includeStandardAdditions = true;