|
|
Using a Smart Playlist to sync small iPods
Really? I just (nearly) finished a script that will copy all my songs from my 'New Releases' smart playlist to a playlist called 'Pack the 'Pod' and then proceed to fill up the rest of the user specified (defaults to 15 gigs) space with albums at random. My script is posted below for anyone who's interested.
Also, if you would post your script, I'd love to compare notes!
p.s. If anyone can find a way to optimize this as it takes about 15 minutes to complete, I'm very interested to hear it. I posted this to macscripter.net, but found little help.
Using a Smart Playlist to sync small iPods
Mine's pretty simple. The trackPlaylist should be a smart playlist that selects tracks at random (or however) and is limited to some size (I have mine set to 1500 MB) and the albumPlaylist should be a regular playlist:
NOTE: if you put this in iTunes script menu then be sure to save it as an application and not a compiled script. When I run it as a compiled script from there, the "delay 2" seems to block iTunes and as a result the trackPlaylist doesn't update before the script starts iterating over it. It works fine as an application and it works fine as a compiled script from the shareware "FastScripts" menu. It takes about a minute to run on my 400 MHz iMac G3, but that is just an estimate - I haven't timed it.---
Using a Smart Playlist to sync small iPods
Dang. I never thought I'd have to say this but... yours is so much smaller and more efficient than mine.
Using a Smart Playlist to sync small iPods
Regarding passing over tracks that aren't enabled, you get that for free by setting the smart playlist to only include enabled tracks! Use the smart playlist to do as much of the work as possible.
Never mind! Here's the solution.
Oh, never mind - I see what you mean. Good point. I changed the duplicate line to the following to resolve that:
---
Never mind! Here's the solution.
Look at that! Had no idea I could do it that way.
Never mind! Here's the solution.
There are some powerful constructs in Applescript, they're just poorly documented and inconsistently implemented. An application's dictionary only tells you half the story. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.37 seconds |
|