Skip to content

Instantly share code, notes, and snippets.

View seanmcardwell's full-sized avatar

Pyro seanmcardwell

  • Boston
View GitHub Profile
@seanmcardwell
seanmcardwell / TwinApp.sh
Created September 19, 2018 01:55
Twin App in macOS
#Add this to .bash_profile
twin () {
max=$2 || 1;
for i in `seq 1 $max`;
do
open -n -a /Applications/"$1".app 2> /dev/null || open -n -a /Users/"$(whoami)"/Applications/"$1".app;
done
}
@seanmcardwell
seanmcardwell / Kollaborate_Comments.jsx
Created February 6, 2018 04:40
Script for After Effects to import Adobe Premiere Pro comments to the active comp.
{
app.beginUndoGroup("Import Kollaborate Comments");
var proj = app.project;
if (!proj) proj = app.newProject();
var curItem = proj.activeItem;
if (curItem == null || !(curItem instanceof CompItem)) {
alert("Please establish a comp as the active item and run the script again");
} else {
var myFile = File.openDialog("Please select input text file.");
@seanmcardwell
seanmcardwell / DuplicateWindow.scpt
Created January 2, 2018 04:54
Applescript to duplicate the front-most Finder Window
(* Sean Cardwell - 2017
* sean.m.cardwell@gmail.com
*
* This script is provided “as is” and any express or implied warranties,
* including the implied warranties of merchantability and fitness
* for a particular purpose are disclaimed. In no event shall
* Sean Cardwell or contributors be liable for any direct, indirect,
* incidental, special, exemplary, or consequential damages (including,
* but not limited to, procurement of substitute goods or services;
* loss of use, data, or profits; or business interruption) sustained
javascript: (function() {
picTitle = $(".background-info-title").text().replace(/[&\/\\#,+()$~%. '":*?<>{}]/g, '');
window.prompt("Copy to clipboard: Ctrl+C, Enter", picTitle);
img = $("#background li").css("background-image");
img = img.replace('url("', ''); img = img.replace('")', ''); img = img.replace('https://', '');
a = $("<a>").attr("download", picTitle).attr("href", "https://" + img).attr("title", picTitle).appendTo("body");
a[0].click();
})();
@seanmcardwell
seanmcardwell / YoutubeThumbnail.js
Created June 3, 2017 21:53
Bookmarklet that will open the max resolution thumbnail from the current youtube video and open it in a new tab.
javascript: (
function() {
window.open("http://img.youtube.com/vi/" + window.location.href.split("v=")[1] + "/maxresdefault.jpg", "_blank")
})();
)})();
@seanmcardwell
seanmcardwell / Start Frame 0.jsx
Last active March 2, 2017 19:23
After Effects Script to Start the selected comps at frame 0
var myItems = app.project.selection;
for (var i = 0; i < myItems.length; i++) {
if (myItems[i] instanceof CompItem) {
myItems[i].displayStartTime = 0;
}
}