Skip to content

Instantly share code, notes, and snippets.

@anders
anders / add-track.applescript
Last active September 27, 2015 20:28
Adding the current track to a selected playlist
tell application "iTunes"
set currentTrack to current track
set userPlaylists to {}
repeat with currentPlaylist in user playlists
set playlistName to name of currentPlaylist
if currentPlaylist is not smart then
if special kind of currentPlaylist is none then
copy (playlistName as string) to the end of userPlaylists
@anders
anders / gist:1326398
Created October 30, 2011 20:37
iMac 1 TB GPT
$ gpt -r show disk0
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 1951845952 2 GPT part - 48465300-0000-11AA-AA11-00306543ECAC
1952255592 1269536 3 GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
1953525128 7