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 > Applications > iTunes library web interface w/ download links

iTunes library web interface w/ download links
Thread Tools
ThisGuy
Mac Elite
Join Date: Oct 2001
Status: Offline
Reply With Quote
Oct 27, 2004, 11:44 PM
 
My wife has just gotten an iPod and she wants to start adding music to it. Here is what I would like to do. Set up my G5 as the server and allow her to download the songs she wants to add to her library (on her iBook) using a web browser on our network. I vaguely remember there being some kind of freeware/shareware app or script that built a web interface of an iTunes library. I have done some searching and have only come across ones that only show the songs without direct links to the files. Do any of you know of any solutions?
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 28, 2004, 12:19 AM
 
Why not just share your library folder? No special apps needed.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
ThisGuy  (op)
Mac Elite
Join Date: Oct 2001
Status: Offline
Reply With Quote
Oct 28, 2004, 08:52 AM
 
i would like a way for her to be able to browse 6000+ songs (in an easy way) and choose the only ones she wants.
     
DarwinX
Registered User
Join Date: Oct 1999
Location: North Coast
Status: Offline
Reply With Quote
Oct 28, 2004, 10:32 AM
 
Share your library on the G5 and then download and run ourTunes:

http://www.macupdate.com/info.php/id/15730

Simple as that.
     
Diggory Laycock
Professional Poster
Join Date: Oct 2001
Location: London
Status: Offline
Reply With Quote
Oct 28, 2004, 11:16 AM
 
Here's an applescript she could run on her mac that does the following:

Copies the tracks currently selected (only if they are in a shared source ) - from the machine serving the music to her local drop-box.

It requires remote apple events to be on on the "server" (your machine) - and AFP sharing to be running on her machine.

(don't forget to change the three properties at the top of the script to match the rendezvous names of the machines)


[php]
property remoteHost : "monkeyserver" -- The address of the music server
property myLocalAccountShortName : "diggory" -- the shortname of the account from which this script will be run.
property localHostName : "widebook" -- the address of the machine on which this script will be run.


to getPathOfRemoteTrack(remoteTrackTime, remoteTrackTitle)
set remoteAddress to "eppc://" & remoteHost as string
using terms from application "iTunes"
tell application "itunes" of machine remoteAddress
tell source "Library"
tell playlist "Library"
--
-- We are forbidden to say"the track whose database ID is X" as there
-- may be multiple copies of the same MP3 file in the database,
-- i.e., database IDs are not (as the dictionary implies) unique;
-- instead"every track whose database ID is X" successfully
-- produces a list of size 1, containing the answer.
--
set inefficient to (every track whose time is remoteTrackTime)
repeat with i in inefficient
set track_in_question to i
if name of track_in_question is equal to remoteTrackTitle then
set pathToTrack to location of track_in_question
return pathToTrack
end if
end repeat
end tell
end tell
end tell
end using terms from
end getPathOfRemoteTrack
end


to remoteCopyFileToLocalDropBox(remotePath, localAFPURL)
set remoteAddress to "eppc://" & remoteHost as string
using terms from application "Finder"
tell application "finder" of machine remoteAddress

open location localAFPURL
-- delay 3

set allRemoteVolumes to every disk whose local volume is false
repeat with i from 1 to number of items in allRemoteVolumes
set thisVol to item i of allRemoteVolumes
if name of thisVol is myLocalAccountShortName then
set myHomeVol to thisVol
set dropBoxAlias to folder "drop box" of folder "public" of myHomeVol

duplicate remotePath to dropBoxAlias
end if
end repeat

end tell
end using terms from
end remoteCopyFileToLocalDropBox




tell application "iTunes"
tell front browser window
set selectedTracks to the selection
repeat with i from 1 to number of items in selectedTracks
set thisTrack to item i of selectedTracks
if class of thisTrack is shared track then
set thisTime to time of thisTrack
set thisTitle to name of thisTrack
set remotePath to my getPathOfRemoteTrack(thisTime, thisTitle)

--afp://widebook/diggory/
set localAFPURL to "afp://" & localHostName & "/" & myLocalAccountShortName & "/"

my remoteCopyFileToLocalDropBox(remotePath, localAFPURL)
end if
end repeat
end tell
end tell
[/php]
     
ThisGuy  (op)
Mac Elite
Join Date: Oct 2001
Status: Offline
Reply With Quote
Oct 29, 2004, 08:30 AM
 
Originally posted by DarwinX:
Share your library on the G5 and then download and run ourTunes:

http://www.macupdate.com/info.php/id/15730

Simple as that.
i guess this will have to do. i really thought there was a way to do it using a browser. thanks.
     
ThisGuy  (op)
Mac Elite
Join Date: Oct 2001
Status: Offline
Reply With Quote
Oct 29, 2004, 08:32 AM
 
Originally posted by Diggory Laycock:
Here's an applescript she could run on her mac that does the following:

Copies the tracks currently selected (only if they are in a shared source ) - from the machine serving the music to her local drop-box.

It requires remote apple events to be on on the "server" (your machine) - and AFP sharing to be running on her machine.

(don't forget to change the three properties at the top of the script to match the rendezvous names of the machines)


[php]
property remoteHost : "monkeyserver" -- The address of the music server
property myLocalAccountShortName : "diggory" -- the shortname of the account from which this script will be run.
property localHostName : "widebook" -- the address of the machine on which this script will be run.


to getPathOfRemoteTrack(remoteTrackTime, remoteTrackTitle)
set remoteAddress to "eppc://" & remoteHost as string
using terms from application "iTunes"
tell application "itunes" of machine remoteAddress
tell source "Library"
tell playlist "Library"
--
-- We are forbidden to say"the track whose database ID is X" as there
-- may be multiple copies of the same MP3 file in the database,
-- i.e., database IDs are not (as the dictionary implies) unique;
-- instead"every track whose database ID is X" successfully
-- produces a list of size 1, containing the answer.
--
set inefficient to (every track whose time is remoteTrackTime)
repeat with i in inefficient
set track_in_question to i
if name of track_in_question is equal to remoteTrackTitle then
set pathToTrack to location of track_in_question
return pathToTrack
end if
end repeat
end tell
end tell
end tell
end using terms from
end getPathOfRemoteTrack
end


to remoteCopyFileToLocalDropBox(remotePath, localAFPURL)
set remoteAddress to "eppc://" & remoteHost as string
using terms from application "Finder"
tell application "finder" of machine remoteAddress

open location localAFPURL
-- delay 3

set allRemoteVolumes to every disk whose local volume is false
repeat with i from 1 to number of items in allRemoteVolumes
set thisVol to item i of allRemoteVolumes
if name of thisVol is myLocalAccountShortName then
set myHomeVol to thisVol
set dropBoxAlias to folder "drop box" of folder "public" of myHomeVol

duplicate remotePath to dropBoxAlias
end if
end repeat

end tell
end using terms from
end remoteCopyFileToLocalDropBox




tell application "iTunes"
tell front browser window
set selectedTracks to the selection
repeat with i from 1 to number of items in selectedTracks
set thisTrack to item i of selectedTracks
if class of thisTrack is shared track then
set thisTime to time of thisTrack
set thisTitle to name of thisTrack
set remotePath to my getPathOfRemoteTrack(thisTime, thisTitle)

--afp://widebook/diggory/
set localAFPURL to "afp://" & localHostName & "/" & myLocalAccountShortName & "/"

my remoteCopyFileToLocalDropBox(remotePath, localAFPURL)
end if
end repeat
end tell
end tell
[/php]
Mr. ****, I appreciate this script and I may use it in the future, but I guess I will be using OurTunes to do the deed. I appreciate you sharing it with me.
Mr. Guy
     
Wickedkitten
Junior Member
Join Date: Mar 2002
Location: Scotland
Status: Offline
Reply With Quote
Oct 29, 2004, 10:21 AM
 
use iTunes Catalog.

You can pop a html catalog on in your public folder that your wife can browse and then she can get the music from the localhost.
     
   
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
Top
Privacy Policy
All times are GMT -4. The time now is 07:10 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.,