Add Current Playing track to Itunes With Verification

Okay I am trying to create an applescript that adds the current playing track in itunes to a playlist. However I want it to be able to check if the track is already in the playlist. So far I have this in which I got online:
set myList to "iPod"
property okflag : false
tell application "Finder"
if (get name of every process) contains "iTunes" then ¬
set okflag to true
end tell
if okflag then
tell application "iTunes"
set currentList to playlist myList
add (get location of current track) to currentList
end tell
end if
Message was edited by: Ralphdp

What sort of check are you looking for? The first part of the script checks to see that the current track is not already present in the desired playlist. If not, the track is added to the playlist. Are you looking for some sort of confirmation that it has indeed arrived, or do you want some sort of rock solid method to be sure that the track gets added? I suppose that a repeat could be built that continues to run until the playlist shows that the track is indeed present, but it seems overkill to me.

Similar Messages

  • Flag current playing track

    I've recently upgraded from 8.0.2 to 8.2 (due to performance issues with 8.1+ versions) and have noticed that iTunes is no longer showing an icon next to the currently playing track.
    From the "View" menu I can select "Show Current Song" however that just highlights it in the list of tracks.
    This is probably a simple setting that I must have overlooked but can't figure out how to turn this indicator back on so that the list of tracks shows the current playing track with an icon.
    Any ideas?

    The speaker icon will only show where that song was selected to play.
    If you select a playlist and select the song then play, it will not show the speaker next to the song in Music or any other playlist.
    Also, if you select the song in Music and play it, it will not show the speaker in any playlists.

  • How to skip the currently-playing tune in iTunes 11?

    How do I skip the currently-playing tune in iTunes 11 if I don't want to hear the rest of it?  Clicking pause and then play just resumes that same tune, which often isn't what I want to do.
    I'm using an HP laptop with the Win 7 Home Premium operating system, if this makes any difference.

    In the Movies list view right click on the header row ie Name, Time, Genre etc at the top of the movie window. Select Date Added from the list. a new column Date Added will show and you can sort on this by Clicking on it.

  • Add 'currently playing' to a playlist?

    When I listen to a song on my iPhone, and want to add it to a playlist, I have to scroll all the way to find it. (I hate adding 'Z' songs) Is there an "add currently playing to playlist" button that I just can't find? It seems that if I'm listing to a song, and hit "edit playlist" on my iPhone, I would want to add the current track I'm listening to.  I always expect a button at the top of the screen that says "add currently playing", but there's not even small "A, B, C, D, E, , , " on the side of the screen, and I have to scroll AAAAALLL the way down to it. Since I have so many songs, it takes forever...
    Is there an easier way that I'm just not finding?

    I thought I'd revive this question. I wished I'd had it today. On my iPhone, I'd like to take the currently playing song and add it to an existing playlist. Is there a way?

  • Jumping to currently playing track - Any way to disable?

    Is there any way to disable iTunes from jumping to the song each time a new one begins? Thanks.

    Not being very helpful, I know. I would just like to say that I too think that this is very annoying.
    Why is it necessary to jump to the currently playing track every time it changes? It makes it impossible to browse your music collection, especially if it is large. I have about 9000 tracks, and it is almost impossible to find the next track before the currently playing song is over.
    You have to have a pretty good idea of what you want to hear before you start browsing.
    So it would be very nice if Apple would either disable this "feature" or make it optional.
    /Lars
    Mac Mini   Mac OS X (10.4.9)  
    Mac Mini   Mac OS X (10.4.9)  

  • I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. Need process under the hood

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

  • I can't play tracks from iTunes on my mac since using Sonos?

    I have just got my mac to play from my iTunes library through Sonos and now its stopped playing my iTunes tracks on my mac when not using Sonos???
    Help me please.
    Ta, Jan.

    Thank you. Disk permissions doesn't work but this information in your link helped to solve the problem.
    45054 ERROR in iTunes
    This error does not allow iTunes ACCESS, downloads and updates for the Apps there managed in sync with iPad or iPhone ... is generated by a failure in the restoration of the SHARED folder " adi ":
    ROOT \ Users \ Shared \ adi
    This folder "adi", you will notice that has a red circle with a minus sign inside, which apparently indicates that the user's account, does not have privileges to modify.
    So it simply, you must position the cursor on the folder adi
    1) Open the pop-up window with the mouse (or two fingers on the mouse pad)
    2) Choose REFER
    3) Observed a lock in the bottom right corner of the window, CLOSED
    4) Click on the lock and provide the User Password
    5) You will see that on the left lock "Privilege" appears and ...
    only reads SYSTEM Privilege: Read and Write and other users: DENIED
    6) Must be modified DENIED them the privilege to read and write to the other accounts
    7) We click on the lock again to close it...and...PROBLEM SOLVED
    (At least on OS X 10.9.3 Mavericks it work for me)

  • HT1539 can i add my digital copy to itunes with out using the disk? my netbook does not have a disk drive and i want to add my movie to my ipod can i do it with out the use of the disk and just the code?

    Can I add my digital copy movie to my iTunes with out using the disk, my gateway laptop/netbook does not have a disk drive I have the unused code and everything, I just can't stuck the movie into the computer itself and my desktop computer has no internet on it. Is there a way to add my movie to my iPod touch 2nd generation tuning 4.2.1

    Hiya!
    It depends on what kind of digital copy you have.  This article goes ino details regarding the two types, and depending on the type you have, you may or may not need the DVD to redeem the code.
    Transferring video from DVDs with iTunes digital content
    http://support.apple.com/kb/HT1539
    I hope this helps!  Best wishes and good luck!

  • Ipod won't play tracks but itunes will

    I have bought some singles from itunes (mp4) and since I have ripped the album from CD. The problem is that the tracks (mp3) that I have bought from itunes will not play and the album freezes when it gets to this track. If I play the original single (mp4) this will play.
    If I try and play the mp3 ripped track on itunes it plays perfectly.
    Any ideas?

    *

  • [Desktop][Radio] Add current played Radio-Song to the current playlist

    I often want to "collect" new songs by starting a radio on my e.g. "Pop" / "HardRock" Playlist. Therefore I really would enjoy a short way to add the current played song to the current "selected" playlist. I wonder why this wasn't implemented already. This is my default-reason for using a streaming-client like Spotfiy!

    Updated: 2015-03-27
    Marked as new idea. This idea is a re-post of this inactive idea.
    A similar idea for mobile apps has been submitted here.

  • Reference the current playing track [iPhone]

    As the iPod part of the iPhone will run in the background, is there any way of getting a handle to the currently playing audio for a visualizer style application?

    Not the one I wanted but to be honest, the one I expected. The total lack of any 'visualizer' style apps on the App Store should have been a big clue I guess.
    Thanks very much for your help.

  • How do I add a track to itunes with all it's metadata?

    Is it possible to add songs and their metadata to my itunes library? When I try to add a track, information such as rating and play count are always lost.

    When you add a track to the library it gets a new entry in library with no ratings or playcounts. Then as you change things this information is stored in iTunes library files not in the tag data of the file.

  • Can't add and play music to itunes

    i hope i get some help well i was going to add a new cd and and when it got in it got the names and the rest but when it begins to import it does it at 1 second per song and when i take it out and in again i stop the import and only try to play the songs it does the same 1 sec per song i'll put here the cd diagnoastics here so any body can give me a hand: . Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)
    Compaq Presario 900
    iTunes 6.0.4.2
    CD Driver 2.0.4.3
    CD Driver DLL 2.0.3.2
    LowerFilters: PxHelp20 (2.0.0.0), drvmcdb (1.0.0.1), MxlW2k (1.1.0.116), Cdr4_xp (7.5.0.50),
    UpperFilters: GEARAspiWDM (2.0.4.3), Cdralw2k (7.5.0.50), pwd_2k (7.5.0.50),
    Video Driver: Mobility U1\Mobility U1
    Found aspi32 running.
    IDE\DiskFUJITSUMHR2040AT_______________________53BB___, Bus Type ATA, Bus Address [0,0]
    IDE\CdRomTOSHIBADVD-ROM_SD-R2102________________1A16___, Bus Type USB
    USBSTOR\CdRomMADDOG_MD-16X3DVD9-8X_1.F1
    Check the Windows Update website to verify that you have the latest service packs and patches for your OS. Service packs affect the performance of USB and firewire CD / DVD drives.
    Current user is administrator.
    D: MAD DOG MD-16X3DVD9-8X, Rev 1.F1
    Audio CD in drive.
    Found 14 songs on CD, playing time 51:03 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 03:31:34
    Track 3, start time 06:56:70
    Track 4, start time 10:53:57
    Track 5, start time 14:59:40
    Track 6, start time 18:48:04
    Track 7, start time 22:49:31
    Track 8, start time 26:09:05
    Track 9, start time 29:27:65
    Track 10, start time 33:02:46
    Track 11, start time 35:52:70
    Track 12, start time 39:31:63
    Track 13, start time 43:03:34
    Track 14, start time 47:11:25
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are: 8 16 24 32 40 48.
    The drive CDRW speeds are: 8.
    The drive DVDR speeds are: 8.
    The drive DVDRW speeds are: 8.
    i hope to get help here i even taken out itunes from my sistem and deleted my 1,450 songs to check out it began to work ok ti but it only lasted 1 day i even re-instaled my dvd-rw external 2 times in case but i dont know what else to do

    the strange thing is that i can do about everything with windows media player with my same dvd burner paly cds and burn them but when i go to do the same with itunes i can't it imports the songs a sec per song and when i go to the librery to hear them they do the same thing a sec per song

  • Can't add information and tags in itunes with Windows 8

    I just got a new computer with Windows 8.  I installed itunes and moved my library but it won't allow me to add information and tags.  The box won't open when I right click on a track, and when I try to do it from file and get info the area is greyed out.

    Repair iTunes Security Permissions
    Right-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. Use the Change Permissions... button grant to your account (or the Users group) and SYSTEM full control of this folder, subfolders and files, then tick the option to Replace permissions entries... which will repair permissions throughout the library. When complete switch to the General tab, click in the Read-only check box to clear it, then click Apply.
    If you don't have the option to change the permissions then use the Owner tab and Edit... button to take ownership from an account with administrator privileges. Tick the option to Replace owner on subcontainers and objects.
    Repeat with the media folder if it isn't stored inside the main iTunes folder.
    You might also want to kill any "mystery" identities that have come over from the old computer...
    tt2

  • Issue with playing ringtones in iTunes with Windows 7

    For some reason I am having an issue playing ringtones I've created via my iTunes library. It keeps prompting me to authorize my computer so I can play the ringtone in iTunes but my computer is already authorized (I run Windows 7, iTunes 9.0.3 and only have the one computer authorized). I deauthorized the previous computer the library was on when I purchased the one I currently use and haven't had any other issues. Despite not being able to play the ringtones in iTunes, they transfer and play on my iPhone and all other purchases in iTunes are playing as well. I've tried the various troubleshooting tips listed on this site (i.e. changing user account settings, de-authorizing then re-authorizing etc) to no avail.

    I have the exact same problem, on a MacBook 10.6.2, iTunes 9.0.3. I went to the genius bar, and reported the problem through the iTunes Store. After some boilerplate troubleshooting recommendations, I finally got a response that "ringtones will not play in iTunes, they will skip over them".
    This is definitely not how it used to handle ringtones, it is unclear to me if they are saying this is a bug, or an intentional deprecation of iTunes' function. I would recommend staying away from iTunes created ringtones, self made ones still preview fine in iTunes.

Maybe you are looking for

  • No longer able to see reply or fwd message

    Hello, I use Mail Version 2.1.3 (753.1) In the past, from my Inbox, I have been able to click on the icon showing what's been done to a specific message (reply or forward), and that would cause the actual reply or forward to open in its own window, s

  • Error "The IPod cannot be synched. A duplicate file name was specified"

    When I drag a song from my ITunes library to my Nano, an error pops up that says "The IPod cannot be synched. A duplicate file name was specified." I've read on other boards that I should delete the IToner bundle, but there is no IToner bundle in ITu

  • Issue with generating large pdf file using cfdocument tags in CF9

    We are in the process of upgrading our code to use cf9 and the cfdocument tag (from the old cfx_pdf tags).  We have successfully gotten one piece of our code to work but the file size of the pdf that we are generating now is huge in comparison to wha

  • How do I turn off autocomplete in Safari

    I am using Safari 5.0.1 on a Win7 64-bit PC.  I have several major problems with this.  One is a petty annoyance, perhaps, but it drives me up the wall!  I CANNOT turn off the autocomplete when I am in the address bar.  I DO NOT USE AUTOCOMPLETE, and

  • 3GS Crashed during 4. whatever update. Windows XP. Won't even load now.

    Okay if Apple isn't going to support xp anymore just say the word... Earlier this week I updated itunes to 10 and it was F'd up -took me two days to get it hacked-up with an itunes 9 driver for the **** ipod error. Now the iphone update crashes my ph