Adrian Collier - Archive

iTunes, AppleScript & Album Art



With AppleScript you can write cool automation tasks such as importing album art. Before iTunes 10.2 you had to manipulate the image as a PICT file in order for the script to execute properly. With the recent release of iTunes 10.2 this functionality broke... for the better. The fix is rather simple. All you need to do is read the data from a PNG or JPEG file! Below is how it works.

tell application "iTunes" to set data of artwork 1 of theTrack to (read (file targetImageFile) as picture)


April 08, 2011


Admiralty Inlet

  • Saturday
    06/24/2017
  • 7:19 PM - Slack Ebb

  • Sunday
    06/25/2017
  • 1:36 AM - Slack Flood
  • 5:31 AM - Slack Ebb
  • 1:23 PM - Slack Flood
  • 8:06 PM - Slack Ebb

  • Monday
    06/26/2017
  • 2:34 AM - Slack Flood
  • 6:23 AM - Slack Ebb
  • 2:11 PM - Slack Flood
  • 8:52 PM - Slack Ebb

  • Tuesday
    06/27/2017
  • 3:34 AM - Slack Flood
  • 7:18 AM - Slack Ebb
  • 2:59 PM - Slack Flood
  • 9:36 PM - Slack Ebb

  • Wednesday
    06/28/2017
  • 4:36 AM - Slack Flood
  • 8:17 AM - Slack Ebb

The Narrows

  • Saturday
    06/24/2017
  • 7:48 PM - Slack Ebb

  • Sunday
    06/25/2017
  • 1:32 AM - Slack Flood
  • 6:21 AM - Slack Ebb
  • 1:34 PM - Slack Flood
  • 8:37 PM - Slack Ebb

  • Monday
    06/26/2017
  • 2:24 AM - Slack Flood
  • 7:14 AM - Slack Ebb
  • 2:23 PM - Slack Flood
  • 9:23 PM - Slack Ebb

  • Tuesday
    06/27/2017
  • 3:18 AM - Slack Flood
  • 8:09 AM - Slack Ebb
  • 3:12 PM - Slack Flood
  • 10:09 PM - Slack Ebb

  • Wednesday
    06/28/2017
  • 4:12 AM - Slack Flood
  • 9:08 AM - Slack Ebb

Current & Tide
Predictions


Current
Corrections



Previous

Next