Finding Itunes library on a Desktop

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Finding Itunes library on a Desktop

Post by maxs » Wed Jul 26, 2017 12:04 am

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Finding Itunes library on a Desktop

Post by richmond62 » Wed Jul 26, 2017 9:25 am

"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.

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Finding Itunes library on a Desktop

Post by maxs » Wed Jul 26, 2017 9:30 am

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Finding Itunes library on a Desktop

Post by richmond62 » Wed Jul 26, 2017 12:24 pm

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.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Finding Itunes library on a Desktop

Post by bogs » Wed Jul 26, 2017 1:18 pm

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 :)
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Finding Itunes library on a Desktop

Post by richmond62 » Wed Jul 26, 2017 7:32 pm

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 9178 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!

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Finding Itunes library on a Desktop

Post by bogs » Wed Jul 26, 2017 7:46 pm

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:
Image

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Finding Itunes library on a Desktop

Post by maxs » Wed Jul 26, 2017 8:37 pm

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

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Finding Itunes library on a Desktop

Post by Klaus » Wed Jul 26, 2017 8:59 pm

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?

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Finding Itunes library on a Desktop

Post by maxs » Thu Jul 27, 2017 1:23 am

Thanks again. I tried it with a player object, and it works.

Max

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Finding Itunes library on a Desktop

Post by Klaus » Thu Jul 27, 2017 2:08 pm

maxs wrote:Thanks again. I tried it with a player object, and it works.

Max
:D

Post Reply

Return to “Multimedia”