This file contains hidden or 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
on open (_file) | |
try | |
set bID to bundle identifier of (info for (_file)) | |
set currentState to do shell script "defaults read " & bID & " NSRequiresAquaSystemAppearance" | |
if currentState is "1" then | |
do shell script "defaults write " & bID & " NSRequiresAquaSystemAppearance -bool no" | |
else | |
do shell script "defaults write " & bID & " NSRequiresAquaSystemAppearance -bool yes" | |
end if |
This file contains hidden or 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
/* | |
Menu Bar Items Action for LaunchBar | |
using executable from Alfred Workflow: https://github.com/BenziAhamed/Menu-Bar-Search | |
I acutally forked it and made some changes: https://github.com/Ptujec/Menu-Bar-Search | |
by Christian Bender (@ptujec) | |
2023-02-17 | |
*/ | |
function run() { |
This file contains hidden or 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
{ | |
// LaunchBar Snippets | |
"LaunchBar alert": { | |
"prefix": "lAlert", | |
"body": "LaunchBar.alert($1);", | |
"description": "Creates a LaunchBar alert code" | |
}, | |
"LaunchBar alert with response": { | |
"prefix": "lAlertResponse", | |
"body": [ |
This file contains hidden or 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 swift | |
/* | |
Contacts Location Action for LaunchBar | |
by Christian Bender (@ptujec) | |
2022-05-05 | |
Copyright see: https://github.com/Ptujec/LaunchBar/blob/master/LICENSE | |
*/ |
This file contains hidden or 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
// LaunchBar Action Script | |
function run() { | |
var plist = File.readPlist('~/Library/Safari/Bookmarks.plist') | |
var listItems = plist.Children[3].Children | |
var result = [] | |
for (var i = 0; i < listItems.length; i++) { |