Page 1 of 1

Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 12:04 am
by maxs
What is the code for finding the Itunes library on a Desktop computer so the user can select a song
from their won and play it?

Thanks, Max

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 9:25 am
by richmond62
"a Desktop computer" . . . hmmm . . .

I have a number of desktop computers, and here are some of them:

1. A Desktop Computer running GNU-Linux: no iTunes.

2. A Desktop Computer running Mac OS 10.7.5: out-of-date iTunes.

3. A Desktop Computer running Haiku OS: no iTunes.

4. A Desktop Computer "running" ReactOS: no iTunes.

5. A Desktop Computer running Mac OS 9.2.2: running ancient iTunes.

I have a friend who has:

6. A Desktop Computer running Windows 8: iTunes.

You really need to ask a question that makes a bit more sense.

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 9:30 am
by maxs
Good Point

I have a Desktop iMac os 10 Version 10 .10..5 with itunes 10.5.5.5

Is there a way to get the pathname to the itunes folder, so the user can play a song?

Thanks Max

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 12:24 pm
by richmond62
Well, over here, on my mac running 10.7.5 the path is very simple:

Home Folder/Music/iTunes/iTunes Media/Music

in there there are individual folders for my music categories,
and then, inside them there are folders for individual albums:
path.png
However, I just use iTunes to play the Music.

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 1:18 pm
by bogs
I have never had the opportunity to use itunes myself.

From Apples page about it here,
Find your iTunes library files
Your iTunes library files track the media you add to iTunes, how you've organized it, and other information such as playlists. By default, these files are in your iTunes folder. To find your folder:
Mac
Make sure that you're in Finder. From the menu bar at the top of your computer screen, choose Go > Home > Music > iTunes.
Windows
Windows 7 or later: Open C:\Users\username\My Music\iTunes\.
Windows Vista and XP are not supported by iTunes 12.2 or later.
From reading that I am guessing it could be anywhere on a mac, and possibly other locations on earlier Windows computers. Really this seems like an ideal use of 'ask file' (dictionary), which will provide you with a prompt for your user to locate the path, which you can then store, dissect, append, or whatever.

Hope that helps :)

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 7:32 pm
by richmond62
I have never had the opportunity to use itunes myself.
Oh, you poor chap. :wink:

In about 1994-ish it was "the thing" and played your music and allowed you to go slowly bonkers watching swirly patterns.
imgF0.jpg
imgF0.jpg (34.81 KiB) Viewed 3495 times
NOW it is a way for Apple to CONTROL you and your "digital lifestyle" (and there's a phrase that makes me feel sick).

You are missing nothing!

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 7:46 pm
by bogs
LOL I guess not, my music is still on vinyl in good shape. Some day, *if* I get really bored, I may transfer it to cd/dvd. Might be a long time before I get that bored, though, watching my grass grow as we speak :mrgreen:

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 8:37 pm
by maxs
Vinyl with a tube amplifier is the best.

Thank you Richmond,

It worked for me, I was able to get right to my songs.

It appears the Mp3 files do not play well through Livecode. I get static.

Max

Re: Finding Itunes library on a Desktop

Posted: Wed Jul 26, 2017 8:59 pm
by Klaus
maxs wrote:It appears the Mp3 files do not play well through Livecode. I get static.
Just to be sure, you were using a PLAYER object and not "play", right?

Re: Finding Itunes library on a Desktop

Posted: Thu Jul 27, 2017 1:23 am
by maxs
Thanks again. I tried it with a player object, and it works.

Max

Re: Finding Itunes library on a Desktop

Posted: Thu Jul 27, 2017 2:08 pm
by Klaus
maxs wrote:Thanks again. I tried it with a player object, and it works.

Max
:D