12 iTunes AppleScript list but the song

I have this script. It allows to work.

Now, when I run it, song after song are displayed at the top of their middle iTunes window (without playing)

but they are not the one I selected :-)

After it's over, I see that the good song are changed.

What should I change in the present code.


say application "iTunes."

activate

the value trackList to the selection of window 1

if ((count trackList) is 0) then

display the dialog box 'Any piece not selected!' with a caution icon buttons {"Ok"} default button 1

return

on the other

display the dialog box "I'll start!" buttons {"Ok"} default button 1 with icon 1 giving upward after 5

Repeat with theTrack in trackList

game of theTrack to words "Instrumental only.

period 2

next track

end Repeat

display the dialog box "Done!" buttons the {"Ok"} default button 1 with icon 1 giving upward after 5

end if

stop

          end say

Hello

To view the song in the player without playing, the script must the play and playpause commands, like this:

Repeat with theTrack in trackList

play theTrack

PLAYPAUSE

theTrack lyrics to "Instrumental only ' value

delay 2

end repeat

Tags: Mac OS & System Software

Similar Questions

  • Double click in iTunes don't play the song.  Still next song plays.

    Hello

    I have iTunes 12.3.3.17 on an iMac running 10.10.5 Yosemite.  I have a strange problem where in iTunes, I double-click on a particular song, but the next time song.  The next song played depends on whether or not I shuffle defined or not.  If shuffle is set, the next song is random.  If shuffle is not defined, then this is the next song in the album.  I can double click on any other song in any list, and it will play.  It's the only song that I found that will not play.  Still, it climbs to the next song.  I can be in a playlist.  I can be in 'my music '.  When I double-click on this song, always plays the next song.  A strange thing happened when I was downloading this album on the iTunes store.  My iMac has encountered an unexpected error and restarted itself.  When I logged in, things are although had downloaded all the songs.  But I'm running into this issue with this one song.  This is the first song in the album.  Any ideas would be appreciated.  Thank you very much.

    Hello Wilyd,

    I understand that you have a problem with the first song on the album that you downloaded from the iTunes Store.  The best way to solve the problem is to remove the song and it download on the iTunes Store.  If the second attempt not only success, so I'll include a link to the iTunes Store Support team so that they could watch that particular file.   Here is the information you need:

    12 iTunes for Mac: delete the songs, playlists or other elements

    Download your latest purchases

    Report a problem with an item purchased from the iTunes Store

    See you soon,.

  • List all the songs?

    Hi, I have a quick beginner question:

    I just finished all my music on my new SanDisk Sansa clip + loading, and I've encountered a problem. In the individual sections for each of the artists, there seems to be no way to list all of the songs from this particular artist in my library. Instead, there are only folders for each album and the "Play All" option. Now if I want to play a song in particular of this artist, I have to go to the respective album folder and select the song. It works fine if I remember the album for every song I want to play, but if I don't remember, I go through each folder.

    What I saw before with portable mp3 players is a way to list all of the songs from a particular artist in alphabetical order, regardless of the album sound in. Is it possible to do this with my device? I've been looking in the menus on the camera itself and on this forum, but so far without success.

    Thank you!

    You can see all the songs by an artist when choosing the artist, play together, and then pressing the button at 6 oclock and choosing back to the music list. The song list will however in alphabetical order. They will be in order, based on the album order, IE. first albumm 1 (based on the number of track), the song2 song, song 3,... Finally, the second song on the album 1, 2, song etc.

    Would be nice if they could be presented in alphabetical order. I guess as a workaround you could try to put all the songs by an artist in one folder, then by browsing the folder using music files. Lists all the songs by an artist alphabetically (asuming the file name is the name of the song). I guess this could become unmanigable but when you have a large number of songs of an artist. Having too many songs in a single folder can bog down the player.

  • How can I see a list of the songs on my ipad in itunes

    When I use iTunes to transfer audio files from my PC to my iPad 2 iTunes shows me the Genre lists, Albums, artists and songs transferred manually, these categories are not relevant.  I meed is a list of names of the song if the song is there or not.  How to achieve this?

    The music is what is actually in your iPad.

  • New itunes install. All the songs are on an external hard drive. A lot of songs do not show up in itunes, but they are in the folder on the external drive.

    This seems to be a common problem:

    Recently I had to reinstall Win 10 & then itunes. All the songs are on an external HD iTunes does not show a large number of songs that are in the folder on the external drive. I copied the .itl to the new itunes folder. I also tried holding down - from itunes shift - select a library. Any ideas how to be able to see the songs in the itunes on the hard drive folder in the itunes library?

    Thanks in advance

    Steve

    See make a library of portable split. Have you copied the correct .itl file, or should you connect an external hard disk .itl file? If you can find the correct .itl, it should have all your songs and playlists. See the empty/corrupted after upgrade/crash iTunes library when the library has been altered for the first time with the new system. If you have to start creating your new library in an iTunes folder to the root of the external drive and move all the media inside... \iTunes\iTunes Media before adding to the library.

    TT2

  • ITunes will not erase the songs on the disc

    I use 12.3 Itunes on my Mac.

    When I try to delete a song it removes only try it to Itunes it gives me is no longer the option to remove my drive. Seems to work as if I was in a play list, but I'm not.

    I have a large collection, so my music is on an external drive. The music seems to play very well and I can see it in the finder so I know that Itunes sees the songs.

    iTunes offers only the Recycle bin files that are located in the folder currently designated media. See DeleteSelectedFiles for a script that should be able to delete the files you want to delete regardless of their location.

    TT2

  • Deletion of albums of my iTunes library also removes the songs from these albums of my playlists

    Hello! I wonder if there is a way to delete albums of my iTunes library without removing songs from these albums of my playlists.

    I take my playlists seriously enough (because I know others do too) and would not that they be tampered with. The songs I have in them that I'm here for a reason and a lot of these songs are single whole albums I've saved in my iTunes library. I just recently the desire to clean my library because he got rather crowded with reckless decisions, but I can't do it until I have a solution. I'm glad that I remembered that this might affect my playlists before any serious damage was done.

    I still have to find a question like this or a setting that would allow me to do. Please help me if you have an idea of how to go on this subject! Thank you very much in advance

    No, you cannot delete an album on iTunes and at the same time not delete tracks. You could potentially change the details of the track so that less albums appear in the library, but I'm reluctant to even suggest that he. Data are always more easily thrown only recovered later.

    TT2

  • ITunes does not recognize the songs and the old shuffle stop at 30 seconds

    I have an old shuffle, 1 MB, maybe a 2nd gen, gold (A1204 EMC). iTunes (iOS 10.11.4 12.4.1) has problems with the shuffle. He quickly recognizes the shuffle, which appears as a mounted device and on the desktop a moment, then it reports that there are no. The shuffle disappears from the desktop and I get a warning saying that it has been deleted without eject.

    ITunes then freezes and I have to force quit.

    I can charge the shuffle, but when I go to listen to the songs, they last 30 seconds or less, the following starts then and in about 30 seconds, it will stop followed by another song.

    I tried to reset (turn on, turn off for 5 seconds and turn on) several times but nothing changes. I tried to erase using disk utility (15.0). The shuffle will not disassemble process works.

    All of the suggestions. My 2009 iPod Touch works better than this most recent shuffle. I like to use the shuffle when you do yard work.

    Same thing happens when I try to sync the shuffle using a snow leopard starts.

  • Subscription of Apple's music, but the songs of the artist some are grayed out. Why?

    Hi, I am subscribed recently to Apple music that supposedly gives you access to anything whatsoever in the iTunes music store, but I came across a large number of titles by artists who are grayed out.  Not in my main library, but in iTunes Radio, and if I add tracks from my library, they are still grayed out.

    I active iCloud and I disconnected and returned but that only fixed not.

    Can someone explain this?

    Hello

    Tracks greyed out are not available for release and cannot be added to my music. I presume that the holders of these titles gave no permission to use Apple.

    Jim

  • Can open iTunes and my iTunes music store, select the songs, but they won't play. 10 Windows now.

    Current iTunes, will open in my PC, can open the play lists and iTunes Store but when it chooses a song it will not play.  Have 10 windows

    You have allowed the Apple that was used to buy music from the computer ID? Otherwise, open the iTunes Store and then sign in with the Apple that was used to buy music ID. Then click on Store in the top menu (if you don't see a main menu, press CTRL + B to view it), and you will see the option to allow this computer in the dropdown under the Store menu. Click the one allowing the computer to this identifier to Apple.

    Once you have done this, you have to play music.

    Good luck

    GB

  • iTunes will not sync the song for iPod Touch

    Hello

    Today, I downloaded two albums and one on my iMac and I wanted to add to my iPod touch and iPad Air. My iPad Air has not been updated yet ios9 and albums and the single synchronized successfully on it. Both albums synced on my iPod Touch (ios9.1), but no matter how many times I try to manually add the single that it won't work.

    Try:

    -Reset the device iOS. Nothing will be lost

    Device iOS Reset: Hold down the On / Off button and the Home button at the same time for to

    ten seconds, until the Apple logo appears.

    Unsync/delete all the music and Resync

    To remove all music go to settings > General > use > storage > managing storage > music > tap Edit in the top-right, then press the sign less than all music

    -Reset all settings

    Go to settings > general > Reset and tap reset all settings.

    All your preferences and settings are reset. Information (such as your contacts and calendars) and media (such as songs and videos) are not affected.

    -Restore from backup. See:

    Restore your device from an iCloud or iTunes backup - Apple Support

    -Restore factory settings/new iOS device.

  • My printer is listed, but the hp software can't find my printer... Hp jet pro 8500 desktop has... iPad

    All other applications on my iPad can find my printer on the network. The application of scanning hp ipad print cannot.

    The PDF explaining compatible printers for hp printer control app includes the 8500 a, which is confusing. The House eprint & biz will scan the glass, not the adf, which can be useful. Thank you.

  • listed in the iTunes library, but when try to read message indicates missing.

    My iTunes are listed, but when I try to play I received the message that they do not find.  When I try to add music to the slideshow, the entire library is not listed only a few songs.

    If you know where is the iTunes library:

    Open iTunes while holding the Alt/option key, iTunes asks you which library to open, iTunes point to him. He later recalled.

  • iTunes 12.3.3.17 crashes after playing the song for about 30 seconds

    Hello!

    I have a problem, I'm fighting currently to solve - iTunes 12.3.3.17 iTunes crashes after playing the song for about 30 seconds.

    I already tried things:

    (1) the preferences removed from the library, so that they can be recreated - did not work;

    (2) reinstalled iTunes - not worked;

    (3) removed freshly installed Bitdefender Antivirus for Mac - did not help.

    Product: Macbook Air

    OS X El Capitan

    I receive the following information in the log file

    ===============================================================

    Crashed thread: queue main iTunes shipping 0: com.apple.main - wire

    Exception type: EXC_BAD_ACCESS (SIGSEGV)

    Exception codes: KERN_INVALID_ADDRESS at 0 x 0000000000000011

    Note the exception: EXC_CORPSE_NOTIFY

    Can you help me please?

    elina_j,

    It seems that your iTunes software seems to be stop unexpectedly when you play the music back after about 30 seconds or more. First, I would check to see if there are errors on the disc that need repair:

    Disk utility (El Capitan): a disc repair

    Once the repair and verification done go ahead and test the issue again. If that fixes it, then great! If this is not the case, however, I would then remove third-party plug-ins that may interfere with the operation of iTunes:

    Test with iTunes plug-ins removed.

    • Quit iTunes.
    • Mac OS X:
      • ~/Library/iTunes/iTunes Plug-ins(The "~" represents your home folder)
      • /Library/iTunes/iTunes Plug-ins
    • If all the files in this folder, move it to the desktop temporarily.
    • Open iTunes and test to see if the problem is resolved. If so, you can leave these plug-ins removed iTunes. If you want to reuse these iTunes plug-ins, check with the supplier of iTunes plug-ins to see if updates are available.

    From: iTunes: may crash when you plug in the iPhone, iPad or iPod touch

    If the problem is still there after removing the plugins or there is none to remove, then you must then create a new library, add content to it and see if the problem persists it:

    Open a different iTunes library file or create a

    Mac

    1. If iTunes is running, quit iTunes.
    2. Hold down the Option key when you open iTunes.
    3. You will see a message that says choose iTunes library. Depending on what you want to do, choose Create or choose library.

    Now if the problem is still not resolved then you can create a new user admin on your computer and test it there too well?

    OS X El Capitan: set up users on your Mac.

    Add a user

    1. Choose the Apple menu > System Preferences, and then click users and groups.

    2. Click on the lock icon to unlock, then enter an administrator name and password.

    3. Click on the button Add below the list of users.

    4. On the pop-up menu click new account, and then choose a user type.

    • Administrator: An administrator can add and manage other users, install applications, and change the settings. The new user that you create when you set up your Mac is an administrator. Your Mac can have multiple administrators. You can create new ones and convert standard users to administrators. Don't set up the automatic connection to an administrator. If you do, someone could simply restart your Mac and access with administrator privileges. To secure your Mac, don't share administrator names and passwords.

  • Enter a display name for the new user. An account name is automatically generated. To use a different account name, enter it now, you can't change it later.

  • Enter a password for the user, and then enter again to verify. Using an index of password is recommended to help the user remember the password.

  • Click on create user.

  • The result of the new user will determine what we then so let us know how it goes! Thank you for using communities of Apple Support.

  • How can I change the order of songs in my list "to the top following" of Apple's music with the 10 iOS?

    Thanks for your help guys! :-)

    Hey Aktivoli,

    If I understand correctly, you use the Apple music app and want to change the order of the songs until the next.
    I recommend reading this article, it explains how to change the order in the Apple's music library and playlists.

    Swipe up on reading to display your queue up next, that lists all the songs that you have selected for the current playback.

    Drag the songs with to rearrange the order, or swipe to the left to remove a song you want to ignore.

    Use of music Apple in the music - Apple Support application

    Thank you for using communities of Apple Support. Have a good.

Maybe you are looking for