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
// Create the application. | |
var app = Application.currentApplication() | |
// Ensure that we have the Calendar application available for use. | |
app.includeStandardAdditions = true | |
// This function is used when we need to prompt the user for something. | |
function askUser(prompt) { | |
var response = app.displayDialog(prompt, { | |
defaultAnswer: "", |
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
IMPORTANT: All offsets are taken from KorokPot.bars! Actual offsets of dynamic-length data may vary in other files, but based | |
on the information here, it shouldn't be hard to find the real offsets. When in doubt, look at the code. | |
╒══════════╤══════════╤═════════╤════════════════════╤═══════════╤═════════════════════════╤════════════════════════════════════════════════════════════════════════╕ | |
│ Offset │ -> Dec │ Size │ -> Dec │ Type │ Name │ Information │ | |
╞══════════╪══════════╪═════════╪════════════════════╪═══════════╪═════════════════════════╪════════════════════════════════════════════════════════════════════════╡ | |
│ 0x0 │ 0 │ 0x4 │ 4 │ │ BARS header │ Indicates that this is, in fact, a BARS file │ | |
├──────────┼──────────┼─────────┼────────────────────┼───────────┼─────────────────────────┼──────────────────────────────────── |
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
#!/bin/bash | |
function enableTouchBar() { | |
local presentationModeProperties="<dict><key>app</key><string>fullControlStrip</string><key>appWithControlStrip</key><string>fullControlStrip</string><key>fullControlStrip</key><string>app</string></dict>" | |
defaults delete com.apple.touchbar.agent PresentationModeGlobal | |
defaults write com.apple.touchbar.agent PresentationModeFnModes $presentationModeProperties | |
launchctl load /System/Library/LaunchAgents/com.apple.controlstrip.plist |