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
# Define the unique method that removes duplicates | |
#!/usr/bin/ruby | |
require 'digest/md5' | |
library_path = ARGV[0] | |
hash = {} | |
Dir.glob(library_path + "/**/*", File::FNM_DOTMATCH).each do |filename| |
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
#!/bin/sh | |
# 'Enable access for assistive devices' must be selected in Universal Access preferences. | |
osascript -e " | |
try | |
tell application \"Final Cut Pro\" to activate | |
delay 0.5 | |
tell application \"System Events\" |
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
names = ["Jill Bauerle", "Iris Lee", "Gregory Raml", "Maile Thiesen", "Jane Levenson", "Rebecca Morgan"] | |
sorted_names = names.sort_by{ |name| name.split(" ").reverse.join.upcase } | |
puts sorted_names |