tell application "Finder"
set itemList to (selection as alias list)
end tell
const Finder = Application("Finder")
on run {input, parameters} | |
tell application "Chromium" | |
set pageUrl to get URL of active tab of first window | |
end tell | |
tell application "Safari" to add reading list item pageUrl | |
display notification pageUrl with title "⭕️リーディングリストに追加しました" | |
return input | |
end run |
/*================================================================================================== | |
File: CoreAudio/CoreAudioTypes.h | |
Contains: Definitions types common to the Core Audio APIs | |
Copyright: (c) 1985-2010 by Apple, Inc., all rights reserved. | |
Bugs?: For bug reports, consult the following page on | |
the World Wide Web: |
## | |
# 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 |
#!/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 |
{ | |
"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 }], |
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"
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, |
#!/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() { |