Get current playlist in iTunes

I'm pretty sure this worked at one time, but I don't know what was changed.
I need to get the name of the currently selected playlist.The following command doesn't work on 2 different computers (10.4 & 10.3).
tell application "iTunes" to get current playlist
Looking at the dictionary from both machines, this should work. I'm totally confused, hopfully I'm just missing something stupid.
Oh ya, the "current track" property has the same problem.
Both properties only return "unknown object" error
iBookG4/eMac/iMacx2/G3300/G4400   Mac OS X (10.4.2)  

Current track & playlist only return info about what's playing. If nothing is playing, you'll get an error. What you want is the visible selection, which is obtained thusly:
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iTunes" to get view of front browser window</pre>You can also get the playlist from a visible track selection:
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "iTunes"
set selected_tracks to selection
set selected_playlist to container of first item of selected_tracks
end tell</pre>

Similar Messages

  • Does anyone know how to get a playlist from itunes onto my shuffle?

    Does anyone how to get a playlist from itunes onto my ipod shuffle? I can't seem to drag onto the device.

    Try my script ImportDevicePlaylists.
    tt2

  • How do i get the playlist on itunes to match the one on my ipod?

    I have this one playlist, that appears in the order i want it on my ipod, but at one point, when i was looking at it on itunes, i clicked the 'Name' column (to sort the songs by title), and now i can't view it the way it is on my ipod anymore.. is there a way to get it back to the original order?

    Click on the title for the first column, which contains numbers. You can then drag the songs into any order you want.

  • Is there a way to get the playlists in itunes on my pc to synch with my iphone 5? I'm using itunes match with icloud?

    I used imatch to get all my music from itunes on my pc to icloud. On my iphone 5 I turned imatch on and I now have all my songs on my phone, but the play lists in itunes on my pc didn't go with the music. Is there a way to synch the playlists?

    If you  have iTunes 11 turn on the Sidebar. Go to iTunes>View and click on Show Sidebar. You can also do a Crtl+S to show the sidebar. The sidebar is where Devices appears. and Control+B to show the Menu bar
    iOS: Device not recognized in iTunes for Mac OS X
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                 
    iOS: How to back up           

  • How do I get new playlists in iTunes match?

    I've been signed up for iTunes match for over a year, but only recently got an iPhone and Apple TV. Only my older playlists show up in the music section - how do I get new ones up?

    I did see this yes, I also spent about 20 minutes on the phone finally with a technical support person at Apple who told me to restart and reset my phone which got rid of the few playlists I'd somehow managed to keep on my phone, and also got me off his back because I had to hang up with him to do so....useless.

  • HT204406 how do I get the playlists in Itunes match to show on my Iphone

    I've been reading through all the articles and trying as many solutions as people have offered with no results. Itunes Playlists are showing on my macbook and my Imac, but I cannot edit which playlists are showing on my Iphone 4S, I connected it by USB to see if I could edit the playlists selected there but there was no way to do that as it says Itunes Match is on, and it's only placing copies of purchased/recently added playlists onto my phone.
    People had mentioned in earlier posts, adding and removing computers, authorizing and deauthorizing, editing the playlists titles, deleting songs from playlists, turning phone on and off, toggling on and off on Itunes Match, NOTHING IS WORKING! I'm a dance teacher and I need my playlists, this is making my life very very difficult and I'm incredibly frusterated that instead of Paying for a service that was supposed to help my music problems I have paid for a service that has simply created a brand new one. I even paid for an extra 10 GB of Icloud space to see if that changed anything and it didn't so now I'm up to 40$ in annual charges all for something that is so far absolutely useless to me. PLEASE HELP! There's not even a helpline on apple phone support for itunes, or itunes match it simply redirects me to the online forums. I"M DESPERATE for your help!!

    I did see this yes, I also spent about 20 minutes on the phone finally with a technical support person at Apple who told me to restart and reset my phone which got rid of the few playlists I'd somehow managed to keep on my phone, and also got me off his back because I had to hang up with him to do so....useless.

  • Why can't I get a playlist on ITunes on Ipad to stop after each song?  I can do it on ITunes on my PC.

    On the PC, when you un check the selections and transfer them to an IPod they will not play until you choose them.  On the IPad2 they continually play.  We are trying to use this for church, and it will be a waste of money if it doesn't work as we need it to.  So we need to create a list of songs for the service, and only play them when we want them to play....not continuously.

    Hi Ziatron,
    Welcome to the Apple Support Communities!
    I understand wanting to see the slider bars for web pages and/or applications. You can enable this feature in the System Preferences. Please review the attached discussion for information on how to complete this process. 
    How do you force "slider bars" to display in OS... | Apple Support Communities
    Have a great day,
    Joe

  • How can I get a playlist created on my iPad to iTunes?

    I create a playlist on the iPad... I love it... I want it on the iPhones in my household.
    How can I get that playlist into iTunes, so I can push it out to the other iOS devices?
    When I sync the iPad with iTunes, the playlist created on the iPad is wiped out.
    All devices (iPhone 4S, iPhone 4, iPad 2) are on iOS 5.0.1.
    Mac OS X Lion 10.7.2
    iTunes 10.5.1.
    Thanks

    You can't move an iMovie project file and expect it to play.
    You need to export from the machine that holds the source files to the format supported by the device.

  • I can't sync my iPod playlists to iTunes?

    I have a playlist on my iPod with about 400 songs in it and every time I sync with iTunes I lose it. I really don't like re-making the playlist and I want to sync more songs to my iPod.
    I've heard that with iTunes you should be able to pull down playlists under the device tab, and I've done that but it doesn't even show the current playlists on my iPod. It doesn't show playlists I made after my last sync, and it shows playlists that don't even exist on my iPod anymore.
    Is there another way I can get the playlist on iTunes?

    bump

  • How do I add to a current playlist and How do I get the additions to download on my phone?

    First I tried to change a playlist and add more songs.  Now it won't let me add the songs.  Before, I was able to add them, but they would not download to my phone.  The old playlist keeps on downloading.  I think because it is in iclouds.
    Help.  How to I add songs to my current playlist and get them to download on my phone.  If I can't do that, how do I get the old playlist deleted from icloud, my computer and my phone so I can start over.  I don't have a lot of room on my phone.  Before I download a new playlist, I have to get rid of the old one.
    My phone is an iphone 5C LTE 8GB
    It has a capacity of 5.3 GB and 3.2 GB are available.  It is version 8.2 (12D508)  Model MGFD2LL/A

    I think I have this posted in the wrong area, but don't know how to change it.  I figured out how to download songs to my playlist in Itunes 12.1.  It seems that it does not work unless I delete the songs from my library first so they are only available on icloud.  Then I move the songs to the playlist.   After I am done adding the songs to the playlist, I press the cloud next to the playlist and the songs are downloaded to my iphone.  If I press sync first, I end up with the old playlist back on my computer minus the deletions and new songs.
    I am now having problems getting my new purchases to transfer to my library.  If anyone knows how to get Itunes 12.1 to do this automatically, please let me know.

  • TS1436 when i try to burn a playlist using itunes i get this message at the top of itunes "disc recording not found" any solutions

    when i try to burn a playlist using itunes i get this message at the top of itunes "disc recording not found" any solutions

      Microsoft Windows 7 Home Premium Edition Service Pack 1 (Build 7601)
    Gateway T5254
    iTunes 10.7.0.21
    QuickTime not available
    FairPlay 2.2.19
    Apple Application Support 2.2.2
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.0.0.59
    Apple Mobile Device Driver not found.
    Bonjour 1.0.6.2 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number 002EA6FC09015990
    Current user is an administrator.
    The current local date and time is 2012-10-03 15:59:17.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is not supported.
    Core Media is supported.
    Video Display Information
    NVIDIA , NVIDIA GeForce 6100 nForce 405
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: 2a5aa2a020c605e8b6db3d153f68aa7e
    The driver AFS.SYS is installed on the system.
    iPodService 10.7.0.21 is currently running.
    iTunesHelper 10.7.0.21 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** CD/DVD Drive Tests ****
    No drivers in LowerFilters.
    No drivers in UpperFilters.
    Failed loading CD / DVD drives, error -43. Try doing a repair install on iTunes from the "Add or Remove Programs" control panel.

  • Ever since the last download, I am unable to edit my playlists on itunes. When my phone is not plugged in, my playlists that are on my phone are not on itunes but my songs are. Only the default playlists show up. How can I get all of my playlists back?

    I usually create and edit playlists on itunes and then sync my phone to update my phone.  Ever since the last upgrade, I can't do this.  When I open itunes, my playlists are not there, only the songs and the default playlists.  If I plug my phone in and click on My Phone at the top of the screen, I can see my playlists but I can't edit them.  How can I get my playlists that are on my phone back on my itunes?

    http://support.apple.com/kb/HT1296

  • I am trying to burn some cds from my playlist on itunes, but my playlist shows many of my songs in light print and says that it will not burn because it is not a file, these are all songs I have purchased quite a while ago, how do i get them to files?

    I am trying to burn some cds from my playlist on itunes, but my playlist shows many of my songs in light print and says that it will not burn because it is not a file, these are all songs I have purchased quite a while ago, how do i get them to files?

    If they were songs you purchased from itunes, try redownloading them from your purchases...
    if that doednt work, make sure the optuon to copy files to itunes media folder is checked in settings, then find and download from the net. and re-add them to your library

  • I made 2 playlists on Itunes and put them on my Ipod.  How do I get the songs to play consecutively and not keep playing the same song over and over again???

    I'm a new Zumba instructor and have to come up with playlists for my routines.  I made 2 playlists on ITunes and put them on my Ipod.  Everytime I want to play it, only one song from the list plays over and over.  The other songs do not.  How do I get the songs to play the way I have them set up??

    You can redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    For other music you need to get them from where you got them before.

  • HT1364 I can't get my playlist items into my new ipod itunes.  I have an itunes account on my pc with a different name.  Help

    I can't get my playlist from my pc itunes account which has a different name to copy onto my new ipod touch.

    Try:
    - Resetting the iPod. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Next try placing the iPod in Recovery Mode and then restoring via iTunes.
    iTunes: Backing up, updating, and restoring iOS software

Maybe you are looking for

  • Installer failure with Acrobat Reader Xl on Macbook Pro with OS 10.8.

    Installer quits with Installation error Here is the error message I receive. I am clueless what this means and why I am having trouble "dyld:DYLD_environment variables being ignored becuase main executable (/System/Library/PrivareFrameworks/Iinstall.

  • CALL TRANSACTION or SUBMIT

    Hi guys, I have a problem with calling a program(or transaction code). I want to call a program with a variant by "CALL TRANSACTION" or "SUBMIT". I checked that "SUBMIT" is possible by using "SELECTION-SET" but I can't use it because it doesn't allow

  • Deployment failed: The evaluate phase failed. The Adapter used in the evalu

    Hi All, I am deploying an application in Oracle Application Server ( 10.1.2.0.2) made using EJB and myfaces as the front end. While deploying the application i am facing the following Error. Deployment failed: The evaluate phase failed. The Adapter u

  • Support for setting up Paid book account ibook author

    I want to set up a pid book account for ibook author. did get a US EIN (I am German), got meanwhile an ISBN, and filled the form for a paid book account some 6-8 weeks ago. No response at all ydet from apple. I thenwanted to set up another account wi

  • What's with the lame Win8 look, and inability to move the address bar?

    Ok. In previous version of Firefox, I had my layout like this. Perfectly usable, very small "top/chrome space" so that when I use it on a widescreen monitor I don't have to scroll to get past the top inch of the website (why oh why do PC makers think