This file contains 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
set destination to quoted form of POSIX path of (choose folder with prompt "Select the folder to create sub-folders and export photos") | |
tell application "iPhoto" | |
set tc to count photos | |
repeat with i from 1 to tc | |
try | |
tell photo i to my copyPhoto(date, image path, original path, title, destination) | |
end try | |
end repeat | |
end tell |
This file contains 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 adding folder items to this_folder after receiving this_item | |
tell application "Finder" | |
open this_item | |
end tell | |
end adding folder items to |
This file contains 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
tell application "System Events" | |
tell security preferences | |
set require password to wake to true | |
end tell | |
end tell | |
activate application "ScreenSaverEngine" |
This file contains 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
<TaskerData sr="" dvi="1" tv="4.6u3m"> | |
<Profile sr="prof45" ve="2"> | |
<cdate>1421519030211</cdate> | |
<clp>true</clp> | |
<edate>1421529685178</edate> | |
<id>45</id> | |
<mid0>47</mid0> | |
<nme>Sonos Wand</nme> | |
<Event sr="con0" ve="2"> | |
<cname>Wave For Sonos</cname> |
This file contains 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
<TaskerData sr="" dvi="1" tv="4.6u3m"> | |
<Profile sr="prof21" ve="2"> | |
<cdate>1421280614090</cdate> | |
<edate>1421295126863</edate> | |
<id>21</id> | |
<mid0>19</mid0> | |
<nme>Go Home</nme> | |
<Event sr="con0" ve="2"> | |
<code>3001</code> | |
<pri>0</pri> |
This file contains 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/zsh | |
# aliascheck by @brock | |
# Description: checks each zsh command and reminds you if you already have an alias for that command | |
# Instructions: | |
# copy aliascheck.sh to ~/bin/aliascheck | |
# chmod +x ~/bin/aliascheck | |
# uncomment or modify line 14 below to source your aliases | |
# add the following to your ~/.zshrc or zsh profile: | |
# | |
# preexec() { zsh $(which aliascheck) $1} |
This file contains 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/bash | |
# node-reinstall | |
# credit: http://stackoverflow.com/a/11178106/2083544 | |
## program version | |
VERSION="0.0.13" | |
## path prefix | |
PREFIX="${PREFIX:-/usr/local}" |
This file contains 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/bash | |
# panes | |
# make a 4x4 grid of iTerm panes | |
/usr/bin/env osascript <<-EOF | |
tell application "iTerm" | |
activate | |
set myterm to (make new terminal) | |
tell myterm | |
launch session "Panes" |