• 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
iTunes sub folder problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iTunes sub folder problem


  • Subject: iTunes sub folder problem
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 11 Aug 2014 11:36:01 +1000

G'day scripters.

First of all, thanks Shane for your advice. Turned out that the button used to display the changing images needs to be a momentary push in type, otherwise it can display the alternate image in the off state.

Now, this is a bit off topic, but it's associated with an Xcode project I'm writing.

I'm having problems checking whether or not an iTunes sub-folder playlist exists in a folder playlist, programmatically.

It's easy to check if a folder playlist exists at the root level of iTunes, but support seems to be lacking for sub-folders.

The following script returns {} as it's search value.

Anyone struck this problem before?

TIA

Regards

Santa

tell application "iTunes"
if not (exists folder playlist "* ADJ Folders") then make new folder playlist with properties {name:"* ADJ Folders"}
set mainADJFolder to folder playlist "* ADJ Folders"
set theFolderNames to folder playlists of mainADJFolder
(*if not (exists (folder playlist "*  ADJ PlayLists" in mainADJFolder)) then (make new folder playlist at mainADJFolder with properties {name:"*  ADJ Playlists"})
if not (exists (folder playlist "*  ADJ Advertising PlayLists" in mainADJFolder)) then (make new folder playlist at mainADJFolder with properties {name:"*  ADJ Advertising Playlists"})
if not (exists (folder playlist "*  ADJ Promotions PlayLists" in mainADJFolder)) then (make new folder playlist at mainADJFolder with properties {name:"*  ADJ Promotions Playlists"})
if not (exists (folder playlist "* ADJ Actual Tracks" in mainADJFolder)) then (make new folder playlist at mainADJFolder with properties {name:"* ADJ Actual Tracks"})
if not (exists (folder playlist "* ADJ Advertisements Tracks" in mainADJFolder)) then (make new folder playlist at mainADJFolder with properties {name:"* ADJ Advertisements Tracks"})
if not (exists (folder playlist "* ADJ Promotions Tracks" in mainADJFolder)) then (make new folder playlist at mainADJFolder with properties {name:"* ADJ Promotions Tracks"})*)
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

  • Prev by Date: Re: How do I set a new image for a button?
  • Next by Date: Re: iTunes sub folder problem, and, unfortunately, another tricky question.
  • Previous by thread: Re: How do I set a new image for a button?
  • Next by thread: Re: iTunes sub folder problem, and, unfortunately, another tricky question.
  • Index(es):
    • Date
    • Thread