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
-- | |
-- Applescript to monitor age of last arq backup | |
-- and send alert to notification center if too old | |
-- | |
set arqF to (path to current user folder) & "Library:Arq:lastsV2.dat" as string | |
set latest to arqF as alias | |
set mod_date to modification date of (info for latest) | |
set file_age to round (((current date) - mod_date) / days) | |
log "most recent Arq backup " & file_age & " days old " & arqF |
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
-- | |
-- Applescript to monitor age of last time machine backup | |
-- and send alert to notification center if too old | |
-- | |
set tmLatest to do shell script "/usr/bin/tmutil latestbackup" | |
set latest to POSIX file tmLatest | |
set mod_date to modification date of (info for latest) | |
set file_age to round (((current date) - mod_date) / days) | |
log "most recent TM backup " & file_age & " days old" |
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
-- | |
-- run terminal command and return results directly back to launchbar | |
-- runs command using applescript which means under /bin/sh | |
-- switches to user home dir before running script | |
-- | |
-- take string from LaunchBar and run as command | |
on handle_string(theText) | |
try | |
set cmd to "cd ~ && " & theText |
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
-- | |
-- gist support for launchbar | |
-- 1. install gist client "sudo gem install gist" | |
-- https://github.com/defunkt/gist | |
-- 2. login "gist --login" | |
-- | |
-- use from launchbar as file action, string/search action, or | |
-- plain action (will take text from clipboard) | |
-- then will put gist url as launchbar result | |
-- from there you can Copy it or hit Enter to open in browser |
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
-- | |
-- Source: Padraic Renaghan [email protected] https://gist.github.com/prenagha/8372844 | |
-- | |
-- launchbar integration applescript for command-c | |
-- http://danilo.to/command-c/ | |
-- | |
-- set the variable "theDevice" below as needed to the device name you want to send to | |
-- Put script in Launchbar actions folder | |
-- ~/Library/Application Support/Launchbar/Actions | |
-- |
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
-- used via launchbar | |
-- im_text: contact_partial_name message | |
handle_string("foobar testing") | |
on handle_string(im_text) | |
-- start adium if its not running | |
if application "Adium" is not running then | |
tell application "Adium" to activate | |
-- wait a few seconds to let the accounts login |
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
Google Voice provides no easy way to clear your history. | |
Here is how I did it. | |
1) Get the Fake app http://fakeapp.com | |
It lets you write scripts to automate Safari | |
2) Create a workflow in Fake that has the following steps | |
Load URL, https://www.google.com/voice/#history | |
Assert Condition, page title equals : Google Voice - History |
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
/* Start by setting display:none to make this hidden. | |
Then we position it in relation to the viewport window | |
with position:fixed. Width, height, top and left speak | |
speak for themselves. Background we set to 80% white with | |
our animation centered, and no-repeating */ | |
div.loading { | |
display: block; | |
position: fixed; | |
z-index: 1000; |
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
// put this file somewhere on your Mac | |
// download jquery and put it there as well | |
// then in Fluid, under the Userscripts option set the path pattern to match your | |
// inotes UL, then add the below, tweak for your path | |
// window.fluid.include("/Users/userid/Documents/Mac/Fluid/jquery-1.8.3.min.js"); | |
// window.fluid.include("/Users/userid/Documents/Mac/Fluid/fluid-inotes.js"); | |
// | |
// Note the auto userid and password filling this script does. Obviously adjust to | |
// your info. Line ~108 below. |
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
-- | |
-- applescript to toggle connection state of vpn | |
-- http://markupboy.com/blog/view/toggling-vpn-with-applescript | |
-- http://www.plankdesign.com/blog/2012/06/toggle-your-network-settings-with-launchbar/ | |
-- | |
tell application "System Events" | |
tell current location of network preferences | |
-- set this to the name of your VPN config | |
set VPNservice to service "vpn service name" | |
set isConnected to connected of current configuration of VPNservice |