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 > Software - Troubleshooting and Discussion > macOS > m3u files on local computer

m3u files on local computer
Thread Tools
besson3c
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
Oct 13, 2002, 10:26 PM
 
Does anybody know of a way to create m3u files (or the like) that will mp3 files from the local hard-drive? I can't seem to get m3u files pointing to local mp3s to work with iTunes. Basically, what I'm trying to do is create playlists that I can activate with a double-click.

I'm open to creative options.. =)


Many thanks, as always!
     
Mactoid
Grizzled Veteran
Join Date: Sep 2000
Location: Springfield, MA
Status: Offline
Reply With Quote
Oct 14, 2002, 01:26 AM
 
It's unfortunate that iTunes doesn't support the "file://..." URI. Pretty stupid in fact. Anyway, probably the easiest way is just turn on your webserver, then put a link (not an alias) to your MP3's in your Sites folder. That way you could just put URI's like "http://localhost/~username/Music/..." in the M3U file and they should work.

(BTW, you will have trouble with strange characters. Make sure you replace any spaces with "%20", and other characters that give you trouble you will also need to replace with their value in hex.)
( Last edited by Mactoid; Oct 14, 2002 at 01:35 AM. )
We hope your rules and wisdom choke you / Now we are one in everlasting peace
-- Radiohead, Exit Music (for a film)
     
dtriska
Mac Elite
Join Date: Sep 2000
Location: Canada
Status: Offline
Reply With Quote
Oct 14, 2002, 07:19 PM
 
You could also write some scripts to tell iTunes to play a certain playlist, I think. You'd have to find someone to help you with the scripting.
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Oct 14, 2002, 10:46 PM
 
Here's an interesting solution I worked up for a similar wish:

Paste the following script into a Script Editor window, and save it as an application somewhere handy.

Then rename it to the name of a playlist or an album. It will look in your iTunes library for (1) a playlist, or (2) an album with the same name as the script itself.

Here's the script:
Code:
on run set my_path to path to me tell application "Finder" to set my_name to the name of file (my_path) tell application "iTunes" set matching_playlist_list to every playlist whose name is my_name if the (count of matching_playlist_list) is greater than 0 then set my_playlist to item 1 of matching_playlist_list set the view of browser window 1 to my_playlist play track 1 of my_playlist return end if set matching_album_list to every track of library playlist 1 whose album is my_name if the (count of matching_album_list) is greater than 0 then if exists (playlist "Now Playing") then delete every track of playlist "Now Playing" else make new playlist with properties {name:"Now Playing"} end if set my_playlist to playlist "Now Playing" repeat with this_track in matching_album_list duplicate this_track to my_playlist end repeat set the view of browser window 1 to my_playlist play track 1 of my_playlist return end if end tell display dialog ("No playlist or album named " & my_name & " was found.") end run
hope that might be useful...
     
   
 
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
Top
Privacy Policy
All times are GMT -4. The time now is 02:49 AM.
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.,