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
| describe "just another afternoon” do | |
| jeff = Factory.create(:loser) | |
| artie = Cat.new(:name => "Artie", :size => "long", :color => "black”) | |
| helpeless_victim = Victim.new(:type => ['Mouse, 'Bird', 'Mole', 'Rat'].sample) | |
| artie.catch(helpless_victim) | |
| while helpeless_victim.is_alive? | |
| artie.torture(victim) | |
| sleep 10 |
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
| sed `perl -e "print $RANDOM"`"q;d" /usr/share/dict/words | tr -d '\n' | pbcopy |
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
| -- Copy the Aperture Version Name to the IPTC ObjectName (Title field in Aperture) | |
| tell application "Aperture" | |
| set selectedImages to (get selection) | |
| if selectedImages is {} then | |
| error "Please select an image." | |
| else | |
| repeat with i from 1 to count of selectedImages | |
| tell library 1 | |
| tell item i of selectedImages |
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
| -- View an Aperture photo on flickr | |
| -- Assumes a custom metadata field in Aperture named "Flickr URL" exists. | |
| tell application "Aperture" | |
| -- selection always returns image versions | |
| set selectedImages to (get selection) | |
| if (count of items in selectedImages) > 0 then | |
| repeat with i from 1 to count of selectedImages | |
| tell library 1 | |
| set img to item i of selectedImages |
NewerOlder