Skip to content

Instantly share code, notes, and snippets.

View joshuarudd's full-sized avatar

Joshua Rudd joshuarudd

View GitHub Profile
set quitlist to {"Tweetbot", "Calendar", "Messages", "Skitch"}
set exceptionTriggerList to {"Skype"}
tell application "System Events"
set activeAppName to name of the first process whose frontmost is true
end tell
set exceptionRunning to false
repeat with exceptionName in exceptionTriggerList
if exceptionRunning is false and application exceptionName is running then

Keybase proof

I hereby claim:

  • I am joshuarudd on github.
  • I am joshuarudd (https://keybase.io/joshuarudd) on keybase.
  • I have a public key whose fingerprint is 19CC 86D4 FE1E D7D4 AEFC 7DD7 F669 504C 0468 3701

To claim this, I am signing this object:

@joshuarudd
joshuarudd / gadgets.html
Created April 15, 2014 19:14
Example UserVoice gadget markup
<!DOCTYPE html>
<html>
<head>
<title>Title your gadget</title>
<link href="https://cdn.uservoice.com/packages/gadget.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<% if data %>
<table class="fields">
<tr>