Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > w00t! SoundJam playlist to iTunes script

w00t! SoundJam playlist to iTunes script
Thread Tools
Professional Poster
Join Date: Oct 2000
Location: Toronto, ON
Status: Offline
Reply With Quote
Apr 29, 2002, 03:18 PM
The only one I've seen online was Doug Adams' http://www.malcolmadams.com/itunes/ and it didn't bloody work, AT ALL.

So I hacked through his script, and made my own. There's no error checking, YMMV, etc. But it's worked on the 3 track playlist and the 75 track playlist I had, so give it a shot.

For best results, have iTunes and SoundJam open. Only tested it on OS 9.22 and very little at that. I just know I've been after something similar for a while and figured I'd share what I had. Now I have to test it in X!

<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
set SJplaylist to choose file with prompt <font color = red>"Select a SoundJam Playlist to import:"</font> of type <font color = red>"PLST"</font>

tell application <font color = red>"SoundJam™ MP"</font>

open SJplaylist
on error
display dialog <font color = red>"Unable to open the playlist you have selected."</font> buttons {<font color = red>"Cancel"</font>}
end try

set oldSJPlaylist to front playlist window

copy (get name of oldSJPlaylist) to oldName

tell application <font color = red>"iTunes"</font>
copy (make new user playlist) to newPlaylist
set name of newPlaylist to (oldName & <font color = red>".import"</font>)
end tell

copy (get index of last track of oldSJPlaylist) to totalTracks
repeat with i from <font color = blue>1</font> to totalTracks
get location of track i of oldSJPlaylist
tell application <font color = red>"iTunes"</font>
add the result to newPlaylist
end tell
end repeat
end tell

argh, stupid UBB

[ 04-29-2002: Message edited by: ReggieX ]
The Lord said 'Peter, I can see your house from here.'
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 02:35 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,