• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes sub folder problem, and, unfortunately, another tricky question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes sub folder problem, and, unfortunately, another tricky question.


  • Subject: Re: iTunes sub folder problem, and, unfortunately, another tricky question.
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 11 Aug 2014 19:54:08 +1000

I managed to work out how to address the sub-folders in iTunes. It's a convoluted process, and I've attached part of my script below.

I have another question that searching the net can't answer.

I want to make a table that…

1. preferably users can't sort automatically,

2. users can drag rows into any order they want,

3. users can't edit entries.

Is this possible, and if so, I'd appreciate any guidance on what I should read up on.

Regards

Santa

tell application "iTunes"
# Now, check for and move ordinary Playlists
set thePlayTrackList to every playlist
repeat with eachPlaylist in thePlayTrackList
try
set removeName to name of parent of eachPlaylist
if removeName is "*  ADJ Stored Playlists" then delete eachPlaylist
end try
end repeat
set theList to SelectedPlaylistsArrayController's arrangedObjects() as list
set theActualChosenPlaylist to {}
repeat with i from 1 to count of theList
set oneRow to item i of theList
set end of theActualChosenPlaylist to chosenPlaylistData of oneRow
end repeat
set theID to persistent ID of (some folder playlist whose name is "*  ADJ Stored PlayLists")
set x to 1
repeat with cyclePlaylist in theActualChosenPlaylist
set thePlayTrackList to (every playlist whose name contains cyclePlaylist)
repeat with eachPlaylist in thePlayTrackList
set newName to name of eachPlaylist
set theCheckName to name of parent of eachPlaylist
if theCheckName is not in {"*  ADJ Stored PlayLists", "* ADJ Playing Actual Tracks"} and cyclePlaylist as text is equal to newName as text then
duplicate eachPlaylist to some folder playlist whose persistent ID is theID
set name of (some playlist whose name is "Playlist") to x & " " & newName as text
set x to x + 1
end if
end repeat
end repeat
end tell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iTunes sub folder problem, and, unfortunately, another tricky question.
      • From: Shane Stanley <email@hidden>
  • Prev by Date: iTunes sub folder problem
  • Next by Date: Re: iTunes sub folder problem, and, unfortunately, another tricky question.
  • Previous by thread: iTunes sub folder problem
  • Next by thread: Re: iTunes sub folder problem, and, unfortunately, another tricky question.
  • Index(es):
    • Date
    • Thread