CFBundleDocumentTypes:
CFBundleTypeIconSystemGenerated: 1
Even if
CFBundleTypeIconSystemGenerated
in Info.plist is enabled, system will not generate icons using associated app if "CoreTypes" is already offering dedicated icons.
#!/usr/bin/env python3 | |
from os import chmod, makedirs, stat, system | |
from stat import S_IXGRP, S_IXOTH, S_IXUSR | |
from sys import argv | |
# Application info | |
APP_NAME = "Test" | |
VERSION = "1.0.0" | |
BUNDLE_IDENTIFIER = f"io.github.aerobounce.{APP_NAME}" |
#!/usr/bin/env bash | |
set -Ceu -o pipefail | |
TEMP_HTML_DIR="$(mktemp -d -t "open-icloudtabs")" | |
echo "Session directory: | |
$TEMP_HTML_DIR | |
" | |
DID_MAKE_WINDOW=0 | |
makeWindowIfNeeded() { |
import AppKit | |
import SwiftUI | |
// MARK: Wrap | |
public struct Wrap<Wrapped: NSView>: NSViewRepresentable { | |
private var makeView: () -> Wrapped | |
private var update: (Wrapped, Context) -> Void | |
public init(_ makeView: @escaping @autoclosure () -> Wrapped, |
Some might be outdated.
Taken from (404 as of today): https://macosxautomation.com/system-prefs-links.html
$ open "x-apple.systempreferences:com.apple.preference.security?General"
{ | |
"available_since": "12.6.9", | |
"description": "Surpress MacBook Pro Key Repeat Faulty", | |
"manipulators": [ | |
{ | |
"from": { "key_code": "b" }, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 25 | |
}, | |
"to_if_held_down": [{ "key_code": "b", "repeat": false }], |
#!/usr/bin/env bash | |
set -Ceu | |
unicode() { | |
for i in "$@"; do | |
echo -n "$i" | # -n ignore trailing newline | |
iconv -f utf8 -t UTF-32BE | # UTF-32 big-endian happens to be the code point | |
xxd -p | # -p just give me the plain hex | |
sed -e 's/^0000/0u/' | # remove leading 0's, replace with 0x | |
sed -e 's/\n/ /' # remove leading 0's, replace with 0x |
## | |
# configuration file for syslogd and aslmanager | |
## | |
# aslmanager logs | |
> /var/log/asl/Logs/aslmanager external style=lcl-b ttl=2 | |
# authpriv messages are root/admin readable | |
? [= Facility authpriv] access 0 80 |