|
|
iTunes library web interface w/ download links
|
|
|
|
Mac Elite
Join Date: Oct 2001
Status:
Offline
|
|
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?
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status:
Offline
|
|
Why not just share your library folder? No special apps needed.
|
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2001
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
Registered User
Join Date: Oct 1999
Location: North Coast
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Professional Poster
Join Date: Oct 2001
Location: London
Status:
Offline
|
|
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]
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2001
Status:
Offline
|
|
i guess this will have to do. i really thought there was a way to do it using a browser. thanks.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Oct 2001
Status:
Offline
|
|
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
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Mar 2002
Location: Scotland
Status:
Offline
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|