Play the 1st Song in iTunes

I would like to play the 1st song at the top of whatever current window is open in itunes...
q: -- how do i say: set sel to first song at the top of the current list?
btw: I tried: set sel to item 1 of front browser window - but it didn't work
tell application "iTunes"
  -- how do i say: set sel to first song at the top of the current list
  -- set sel to item 1 of front browser window -- did not work
  if sel is not {} and length of sel is 1 then
  try
  play item 1 of selection with once
  on error
  beep
  end try
  end if
end tell
(adaption of doug's applescript)

Hi,
revDAVE wrote:
repeat 22 times
set theTrack to previous track
end repeat
one caveat with the repeat 22 times , it doesn't works properly if the shuffle or the song repeat is ON.
Here is a script that works in all cases.
set the clipboard to "fun song" as string
tell application "iTunes"
  activate
  set view of front browser window to playlist "Music"
end tell
tell application "System Events" to tell application process "iTunes"
  keystroke "f" using {command down, option down}
  keystroke "v" using command down
end tell
set x to the clipboard
tell application "iTunes" to try
  set fixed indexing to false -- the tracks will be sorted as the playlist
  stop
  play item 1 of (search (view of front browser window) for x) --  play first track in the founded tracks
end try

Similar Messages

  • I have a few iPods that cut off the ends of quite a few songs.  When I play the same songs on iTunes, they play through.  It's only the iPods that cut off.  What can I do to fix this?

    I have a few iPods (all nanos) that cut off the ends of quite a few songs.  When I play the same songs on iTunes, they play through.  It's only the iPods that cut off.  What can I do to fix this?

    Hi
    This is the same problem I am having, did you figure it out yet?
    Thank you

  • Purchased songs from Itunes store will not play the whole song in Itunes now. I have tried everything in the book., Purchased songs from Itunes store will not play the whole song in Itunes now. I have tried everything in the book.

    Since I upgraded from Windows Vista to Windows 7 purshased songs with I tunes will not play the whole song on my computer Itunes library or when transferred to my Ipod.  I have tried everything and still no luck. Any help?

    did everything included deleting the songs and then redownloading them from the purchased section of the itunes store?

  • ITunes doesn't play the next song, it just stops after one track.

    I have iTunes 11.0.1. When I play a song in my playlist, I expect the next song to start as the first one ends, but iTunes stops and doesn't play the next song. I'm missing some sort of setting but what?
    It's not a smart playlist, just a playlist of favorite music I've built up over the years.
    Mountain Lion.

    Have the tracks become unchecked? iTunes will skip unchecked tracks, so if they're all unchecked, iTunes will play one and then stop. If this is indeed the case, re-checkmark the tracks - Command-click will select or unselect them all - and you should then have continuous playback.
    Hope this helps.

  • How do I disable "up next" on itunes 11 (or at least make it play the next song in my playlist and not some random one)

    ITunes 10 was great and I heard nothing but horror stories about 11 so I didn't upgrade until I got my new computer and pushed my music over.  In fact, I accidentally hit update and disconnected my computer from the Internet to stop it from happening, but was too late and now I'm stuck with it.
    When I play a song and the song ends, instead of playing the next song on the list, it plays some random other song.  When I "clear list," iTunes doesn't play anything at all.  What gives?  What happened to the greatest media player?  As a pro audio engineer, I've got over 150Gb of music and this just doesn't fly.  I HAVE to have my music in order and if iTunes can't do that, what is its purpose?
    Help, please.

    iTunes 11 works fine on my computer...   I think you need to check the "Shuffle" settings in all of your playlists, including the main library...   It sounds like for whatever reason, iTunes is automatically shuffling your playlists...  

  • My play lists and songs on iTunes and on my iPhone won't play.  They are light grey instead of black and nothing happens when I click on the songs.  All of the songs were either from CD's or from iTunes that I purchased. I have home sharing turned on. Thi

    My play lists and songs on iTunes and on my iPhone won't play.  They are light grey instead of black and nothing happens when I click on the songs.  All of the songs were either from CD's or from iTunes that I purchased. I have home sharing turned on. This is a new issue.  It used to work fine.  I tried restarting my iPhone and syncing with iTunes. Neither worked.  Please help!

    Try delete those songs using iTunes by de-selecting and sync. After that mark those songs and sync again.

  • My MacBook Pro 10.6.8 prompted me of a new itunes update this morning, so i downloaded it. Since then itunes has been starting up randomly on its own, and starts playing the first song on the list. I quit itunes, and it keeps reopening.

    My MacBook Pro 10.6.8 prompted me of a new itunes update this morning, so i downloaded it. Since then itunes has been starting up randomly on its own, and starts playing the first song on the list. I pause the song, and it resumes it on its own again. I'm not joking. So, I end up quiting out of itunes; but, it starts right back up again on its own. After quiting out of the app a few times, it eventually stops reopening; however, about an hour later (or less) it opens again. HOW DO I MAKE IT STOP? I'm just about to delete itunes, because I've had enough of this crap. I hope someone can help. I've restarted the laptop, and it seemed like that fixed it, then itunes started up doing the same thing again an hour later. ituneshelper is unchecked; bluetooth is off; i only have speakers and a mouse plugged in (also charger).

    Read this Apple Discussion Thread and possible solutions. The audio jack has been the main culprit, also certain sync and automation settings including connected remotes.

  • TS1718 I can't get iTunes to simply play the next song on the list

    I can't get iTunes to simply play the next song on the list. It simply stops after playing one song.

    That's consistent with all the tickboxes to the left of the tracks (in Song view) being unchecked.
    Go into Song view and Ctrl-click (on Windows) or Command-click (on Mac OS) one of the empty boxes to do a "global recheck".
    If you can't see the tickboxes, head into your General preferences tab and select "Show list tickboxes" as per the following screenshot (it's for an earlier version of iTunes, but the boxes are in roughly the same place in the recent versions 11.x):

  • When I sync iphone to itunes, why do my soundtracks not show as albums but via artist?  IE: Pulp Fiction has 16 songs by different artists.  In itunes I can pull up pulp fiction and play the 16 songs.  In iphone sync the 16 songs are seperate

    When I sync iphone to itunes, why do my soundtracks not show as albums but via artist?  IE: Pulp Fiction has 16 songs by different artists.  In itunes I can pull up pulp fiction and play the 16 songs.  In iphone sync the 16 songs are seperate and listed by Al Green, cowboy junkies etc... How to fix this so the ipod part of my iphone will show & play the soundtracks as albums... thanks.

    What is selected under the Music tab for your iPhone sync preferences with iTunes?
    If you have chosen selected playlists, artists, albums, and genres - if Pulp Fiction is available under the Albums section to be selected as an Album to be transferred to your iPhone, is it selected?
    If so, when you select Albums via the iPod on your iPhone, the album is not available there to select?
    You can always create an iTunes playlist with these songs placing the songs in your preferred order.

  • I downloaded an album from itunes.  Keeps playing the first song.  Still plays all other previous tracks.  How do I get it to jump to the other songs on the album.

    How do I get my Shuffle to stop playing the first song over and over again, from an album I just purchased?
    Will not play any other songs from the album.

    Jim, wanted to let you know it worked.  I deleted the entire album since it was an album only (26 minutes long) song, then I went to the home icon of iTunes store, clicked on purchased and saw previous purchases and bam, I downloaded the album again and it now works!!!  Thanks..
    Angelo

  • How do i get itunes or any other program for ipod to play one song and then stop instead of contiuing playing. I need it to be in the same playlist and ready to play the next song when I press play?

    how do i get itunes or any other program for ipod to play one song and then stop instead of contiuing playing. I need it to be in the same playlist and ready to play the next song when I press play?

    Good luck.  I tried to do this to cue sound effects for a theater, and never found anything.  iTunes will definitely *not* do this, nor was I able to find any player that would play one song at a time in a single playlist. 
    In my case, I ended up using AutoHotkey to tie individual tracks to the keys on an external keypad. This was an excellent solution for my problem, but I don't think AHK runs on Macs.
    One workaround is to make a folder, and fill it with *shortcuts* to the songs you want (ie, the actual files).  You can change the names to start with numbers to get them in the right order.  Then if you double-click on one it will play just that song.  You'll still have to double-click on each song.
    Might be a good time to learn AppleScript   It would  also be pretty easy to write a Java app to do this.

  • Itunes wont play the right song

    When i select a song to play from my library i get a different song to the one selected. Usually the same 3 or 4 are played every time.
    If i select a song from my purchased playlist  that plays the selected song!!

    Try recreating the iTunes library (http://support.apple.com/kb/HT1451)

  • After playing the song I selected in iTunes 11 it jumps to the another album rather than playing the next song on the original album I selected.  ***?  How do I fix this?!?!?

    After playing the song I selected in iTunes 11 it jumps to the another album rather than playing the next song on the original album I selected.  ***?  How do I fix this?!?!?

    I found that clearing the "Up Next" list fixes the problem.  But I have to clear that list everytime I just want to hear just that one album.  Each time I select on song on the album, the "Up Next" list builds it's own list rather than just play through the album.  I think this has something to do with the issue.  How can I fix this?!?!

  • ITunes for Windows will not play the next song in the list

    Hello,
    I cannot get iTunes to play the next song in my list (general list, not a playlist). The random icon and/or repeat icon is not blue. Every time I press the next button (two arrows to the right), it picks another song from my list, instead of the one that is directly beneath the one that is playing.
    I have iTunes version 11.0.1.12.
    Has anyone have this happen before and how did you solve it? Thank you for all your replies.
    Ilona T.

    Hi TaylorFuhriman,
    If you are having issues with video playback in iTunes for Windows, you may find the following article helpful:
    Apple Support: Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues
    http://support.apple.com/kb/TS1718
    Regards,
    - Brenden

  • TS1368 My Itunes match is not working right, it was only able to download 50% of my songs and now I can't play the balance songs.. it's so stupid

    My Itunes match is not working right, it was only able to download 50% of my songs and now I can't play the balance songs.. it has messed up my enitre music library

    Hello Carpathianna,
    No judgment here on the music you listen to, I have that song too in my library. If iTunes is telling you that the song is missing and you purchased it from the iTunes Store, then just delete it from your iTunes library and then download your song again. Check out the articles below for more information.
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Download past purchases
    http://support.apple.com/kb/HT2519
    Regards,
    -Norm G.

Maybe you are looking for