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
# | |
# Assuming your address book entries have a URL field 'twitter' containing either their full Twitter URL, or just | |
# their username, go fetch the image and drop it into the addressbook. | |
# | |
# Works for me, but your milage may vary. | |
# | |
require 'rubygems' | |
require 'twitter' | |
require 'open-uri' |
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
set target_folder to POSIX file "/Users/gavin/Desktop/iTunesOut/" | |
set the_playlist_name to "Music Only" | |
tell application "iTunes" | |
set the_playlist to playlist the_playlist_name | |
repeat with i from 1 to (number of file tracks in the_playlist) | |
set the_track to file track i of the_playlist | |
set the_location to (location of the_track) | |
tell application "Finder" | |
copy file the_location to folder (target_folder) |
NewerOlder