Add mp3 to iTunes, delete file from Downloads, add Comment?

I'm trying to make a folder action that will:
- Watch my 'Downloads' folder for downloaded .mp3 files.
- Add those .mp3 files to iTunes, letting iTunes copy to music folder.
- Delete the original file from the 'Downloads' folder.
- In iTunes, append '#single' to the Comment field of added .mp3.
So far I have the first three working, but cannot get it to append the #single part to the Comment field, here's what I have:
property myFiletypes : {".mp3"}
on adding folder items to this_folder after receiving added_items
set myFinderItems to added_items
tell application "System Events"
set allItems to every item of myFinderItems
end tell
repeat with i from 1 to the count of allItems
try
-- get an item
set myFinderItem to (item i of allItems as alias)
-- check if it is a folder
tell application "Finder" to set myItemIsFolder to (kind of myFinderItem = "Folder")
-- if it isn't a folder...
if myItemIsFolder is false then
-- see if the file has the right extension
tell application "Finder" to set myItemExtension to "." & (name extension of myFinderItem) as string
if myFiletypes contains myItemExtension then
set mySongName to myFinderItem as alias
-- add track to iTunes
tell application "iTunes"
add mySongName
end tell
tell application "Finder" to delete file myFinderItem
end if
end if
on error
display dialog "Error"
end try
end repeat
end adding folder items to

Better yet, an Applescript that can be used as a folder action to watch the Downloads folder and:
1) Open .mp3s in iTunes and append #single to track Comments, then delete original .mp3s.
2) Open .zip and .rar archives, parse then unarchived folder for .mp3 files, add them to iTunes, append #album to track Comments, then delete original folder of .mp3s.
2a) Bonus points if the script adds the .mp3s to itunes in descending order based on file name track numbers (track 10, track 9, track 8...).

Similar Messages

  • Add mp3 to iTunes, delete file from Downloads, add Grouping?

    Can anyone help me make an Applescript (or it may need to be two) that can be used as a folder action to watch the Downloads folder and:
    1) Open .mp3s in iTunes and set track Grouping ID3 field to 'singles', then delete original .mp3s.
    2) Open .zip and .rar archives, parse then unarchived folder for .mp3 files, add them to iTunes, set track Grouping ID3 field to 'albums', then delete original folder of .mp3s.
    2a) Bonus points if the script adds the .mp3s to itunes in descending order based on file name track numbers (track 10, track 9, track 8...).

    bump for more help?

  • Why when  i copy files from downloads to a new folder,then i delete them from the downloads i will loose the file?

    tell me please when i copy files from downloads  it will be a new file with new capacity? i mean if a file is 2 mb, when i copy it it will be new 2mb ?

    If you copy it to another folder, e.g., Documents, and you can see it in the Downloads folder then you now have two copies of the file. If you delete one copy, the other stays intact. If you keep both, there is no harm, although the amount of disk space used is twice as big as when you only keep one copy.

  • How to delete files from an attached camera after downloading?

    New to Aperture 2. I am sure to have a lot of exploring to do but for now I am looking for a way to delete files from an attached camera after downloading like you can with iPhoto. Is this possible?

    While I might be a bit paranoid, I prefer to format in the camera after verifying that the import came out OK. It is a small price to pay to make sure that my images are actually on the computer. I don't do anything fancy, just make sure that the thumbnails come up correctly, and maybe perform an edit.
    While it was not my images, thank goodness, I did get bit in a similar fashion. I use a "watch fob" style GPS unit for Geocoding. I have hoodahgeo configured to delete my tracks after import. Well, after one session I forgot to update my images with the gps information. As you can guess, when I re-opened HoodahGeo to try and re-geotag, the tracks were gone, so I was out of luck.

  • Can't delete files from iTunes File Sharing

    iPad, IOS 8.1.3
    MacBook Pro Retina, OS 10.10.2
    iTunes, v12.1
    I'm trying to delete files from iTunes. In this instance, I have files I made in Pages, via my iPad, I have learned how to move them to my computer without using iCloud, which I prefer. Now I can't get them off of the iTunes app on my computer.
    I have deleted them from my iPad and from my computer but they are still in the iTunes app on my computer. To see these one must plug the iPad into the computer. When iTunes, on the computer, opens, choose Apps from the side bar, (under settings), scroll down to File Sharing, pick the app, in this case Pages and there is a list of all the files, (docs), still on the computer, within iTunes.
    If i drag one of the files to the desk top on my computer and clic on it it will open. This is true for any of the apps under File Sharing.
    This seems very insecure to me and it also appears to take up space on my iPad.
    Anyone know how to get rid of these files?

    Hi,
    I had an orhpanded link to a networkshare which does not exist anymore. With the "cmd" key pressed down I was able to dump the favorite to the trash.
    Thank you.
    Cheers
    Robert

  • Deleted files from iTunes not showing in Trash Can

    Hi there,
    I am experiencing a problem where if I delete a track or podcast from iTunes and select the option Move to Trash, it does not show up in my Trash Can on the dock unless I open TC in Finder. Only then the TC logo on the dock shows that TC is not empty. Is this something that only I am experiencing? Any help to explain why this is and how to remedy it would be appreciated.
    Thanks,
    DeMarHc

    I have found that if I delete files from iTunes, I don't see paper showing in the trash indicating that something is there, but if I click the icon for the trash, the paper will suddenly appear...and opening the folder to view what's in the trash shows that the deleted song is, indeed, there.

  • I mistakenly deleated itunes exe file from my laptop, how can I download it again?

    I mistakenly deleated itunes exe file from my machine, how can I downlad it again? Its not available on the apple page.

    Google "iTunes".
    If you already installed iTunes you no longer need the .exe file.

  • Script to make 'delete' file from system and not just library svp.

    I would like something, possibly a script, to replace the delete option in iTunes so that a file deleted from within iTunes is actually deleted from the HDD. I have downloaded a script that can do this but the option ad to be called from the script menu and was not convenient, so I am looking for a way to amend or replace the menu option to achieve this in a natural fashion.

    Okay, here I found this page: http://ask.metafilter.com/18737/How-can-I-make-iTunes-delete-songs-again
    which is nice and informative. What I have found is that in order to delete files natively from within iTunes the default settings of keeping your music files in the iTunes music folder (which can be modified to another directory in iTune's preferences) must be left untouched. This is because iTunes will only delete files from the HDD if they reside in the music folder iTunes refences to. Its a nice structured system that iTunes itself keeps organised so its the better option, as oposed to having files everywhere.
    In order to reset the iTunes dialog messages, the file "com.apple.iTunes.plist" in the "~/Library/Preferences/" dir must be deleted - which resets everything, as the documentation suggests you will know because the copyright agreement will launch when iTunes is started. Please make sure iTunes is off before deleting the file. The documentation also suggests deleting another file but I didn't do this and it worked for me.
    However the ability to delete movies from the HDD is not an option from within iTunes, I suggest finding a script that will move all movies in a certain playlist to the recycle bin folder

  • Delete file from adobe reader?

    hi guys..i want delete file from adobe reader after download from email. unfortunately i cant see any delete icon in my file. Any ways to delete it?

    Check out the new and FREE 'AIR Browser' File Manager in appworld. You can use it to create/rename/delete folders and sub-folders, it can also copy, cut, paste and delete files.
    Jerome
    If a post was helpful, please click the kudos star button below it.
    If a post solved the problem you raised in your thread, click on 'Accept as Solution'.

  • How to permanently delete files from trash?

    I usually see TV series online. Every time I visit to the website, it automatically downloads a Mac_Installer file to my Downloads folder. I delete the file without opening it and secure empty the trash. When I visit the website again, the same file is downloaded to my Downloads folder, and the "previous deleted file" from the trash can reappears on it. How to solve this matter? My computer is a MacBook Pro and is running OS X Mavericks.
    Thanks.

    Try erasing free space using Disk Utility.
    Erase free disk space
    When you delete files in Mac OS X, your Mac deletes the information used to access the deleted files but doesn't physically remove them. Although the space used by the deleted files appears as free space, the deleted files remain on the disk until new files are written over them. As a result, these files can be recovered. Erasing free space does not delete any other files on your disk besides the ones that you already deleted.
    After the drive is connected, launch the Disk Utility application in any of the following ways:
    Type the first few letters of its name into Spotlight. Select it from the results.
    Go Finder > Applications > Utilities > Disk Utility
    Go Launchpad > Utilities > Disk Utility
    Once you are in the Disk Utility app, select the disk or partition you would like to erase from the left.
    Select the Erase tab.
    Choose the Erase Free Space button.
    Use the Slider to choose how many times you would like to write over the free space.
    Select Erase Free Space.
    Note: After this process starts, you can cancel it at any time without harming any of your data. You might see a message stating that you are running out of disk space. This is normal and to be expected. You can ignore this message.
    When the process is complete, you should have the same amount of free space. If you do not have the same amount of free space, try restarting the computer.
    I hope I helped.
    Austin

  • T-code for delete file from application server

    Hi all!
    Please, has any t-code for delete file from application server? For upload exist CG3Z, for download has CG3Y. And for delete? Has anyone?
    I need to delete file from application server in QA system and i don't want to create a program for this because i will need to transport a request from DEV to QA.

    I don't have contact with basis team.
    The FM EPS_DELETE_FILE support directory name with max 60 char. My dir. has more than that. I need a transaction for this.
    Anybody know if this transaction exist?

  • Switching back to delete file from PC?

    I recently selected a few files that I wanted to remove from iTunes, but didn't want to delete from my hard drive.
    Now I want to switch back and delete files from my hard drive, but when I select a track and click 'delete' it doesn't give me the choice of deleting from iTunes or from hard drive.
    How do I get the option to delete from my hard drive back?

    Kappy wrote:
    Language barrier, it would seem?
    thank you guys (= Kappy , Hawaiian_Starman ) for welcoming me with my first post !!!!!!!!!
    ..... and i was writing fast after installing safari 3 without paying good attention while typing as if i was chatting .... i excuse , next time i'll do.
    Message was edited by: ahmad seleem
    Message was edited by: ahmad seleem

  • Cannot delete files from my ipod shuffle!!!

    I am new to using an ipod and i cannot delete files from my ipod, on itunes, it only shows the license agreement where the ipod files are supposed to be and no matter how many times i uninstall and reinstall itunes and agree to the license agreement i can't access anything else. can anyone help me at all i feel like a complete idiot!

    Pressing return will get past this screen as there is a button at the bottom right of iTunes which you likely cannot see.
    Set your screen resolution to at least 1024x768 to see this button.

  • How to restore a deleted file from the iCloud

    How to restore a deleted file from the iCloud

    first you right click on the ipad (on the left in itunes): restore from backup.
    It will restore to factory ALL data anda apps
    At some point it will offer restoration from itunes, but you will only see backups made on your computer.
    If you wish to restore from icloud you forget itunes on your computer, go to the ipad and follow the instructions. At some point you will be asked to choose from icolud or confgiure it as a new ipad.
    it works

  • Installed OS X Snow Leopard on external HDD, now won't allow me to delete files from Mac internal drive

    Hi,
    I am stuck!  My 1 TB iMac 27" decided to stop booting up and would only stay at the grey screen with the apple, gear turning and progress bar. When it got to a certain point on the progress bar it would shut down.  Thanks to so many helpful people and their experiences I was able to try many different things including (Command + S, typing /sbin/mount -uw / enter , chmod 775 / enter, logout enter, then rebooting holding down Command + V) and (Reinstalling OS X and using Disk Utility to repair - came up with Disk can't be fixed).
    Nothing worked until I read a couple of very wise answers who said "Your hard drive is not dead, but too full...keep at least 10% free at all times". I was down to about 1% (ooops!)  Thankfully hubby had bought me an external HDD for Christmas, onto which I installed OS X and being connected to my iMac, it recognized my internal Macintosh HD and all my files are there.  Phewww!  But I don't want to use my external HDD as my startup disk, I wan't to keep my Macintosh HD for startup but it is too full to repair and select as startup.
    My problem is that I cannot delete files from Macintosh HD, and I've tried to unlock files/folders but they don't seem to be locked.  But when I drag them to the trash can it says "The item ... can't be moved to the Trash because it can't be deleted."  Again, many helpful answers online, but nothing is working.  I have 2 Finder windows open, one with external HDD (new startup disk), and old HDD (Macintosh HD) but all items in Macintosh HD can't be altered or deleted (right click doesn't highlight to change the name).  So if I can't delete my files, I can't reinstall OS X and repair disk and select it as my startup disk.  I'd be so thrilled if someone can help me.  I have tried unlocking folders, and I downloaded 'Trashit'. Neither worked, so I figure because it has the little pencil crossed out on the menu bar that it is protected somehow...I just don't know how/what to do.  Thanks

    Ok, so I'll try set it out a bit clearer than my first post,
    This is what I've done, and the results:
    1. My son unplugged working iMac Mac OS X Snow Leopard 10.6.2, 1TB with only 11GB available space
    2. Turned it on and got the white screen, apple, turning gear and load-up bar
    3. Turned Mac off and waited 1/2 a minute.
    4. Turned Mac back on...(same as 3.), tried again many times
    5. Began searching internet for answers (see original post)
    6. Found answers and did the following:
                   1.     Put OS X installation disk into drive
                   2.     Attached External Hard Drive
                   3.     Installed OS X onto External Hard Drive (With a different name & password to original HDD)
                   4.     Found Macintosh HD still worked so tried to delete files only to get message saying                                           files couldn't be deleted (see original post)
    I've tried changing the permissions in 'Get Info' and this is what happens:
    1.Right click Macintosh HD - says "You can only read"
                                                      Name: System - Read & Write
                                                                 Admin -   Read & Write
                                                                 Everyone - Read only
    2.Click on padlock to unlock - doesn't turn black to be able to change anything
    3.Check the box "Ignore ownership on this volume" (someone else advised to do this)
    4.Name changes to 'mydrive (Me)'
    5.Lock padlock and Name still says mydrive (Me) but still 'You can only read'
    I don't know what is wrong or what to do, but perhaps you are right LowLuster, that because I named them different names it is protected in some way.
    My thought now is to copy all my files to the external HDD and then erase and install again on my internal HD, but I really need my calendar, emails etc from my old HD and not sure they can be found on the old HD to copy over.
    Still stuck!

Maybe you are looking for

  • New preview function for iPad–error message "Multiple page sizes not supported"

    When I try to use the new preview function with my iPad I get the error message "Multiple page sizes within a layout are not supported". I have a page that is 768 x  1296. I would really like to preview this folio before publishing. Any suggestions?

  • DW CS5  "Design View" Problem

    I've recently migrated to Dreamweaver CS5 on a new Intel Mac from Dreamweaver CS4 on a G5. I installed Dreamweaver CS5 for the first time on the new computer and copied my local site folders over from the G5. I did not initially copy the site definit

  • File XI Proxy

    Hi all, We are facing a weired problem while processing the documents(1000 documents in a file) in the File2Proxy Interface.... While the File adapter is active and running, we are writing the files through FTP to SAP Directory and File adapter picki

  • After updating to iOS 6 gps signals are no more transmitted to tomtom or navigon

    With iOS 5.x TomTom navigation worked fine. Now with iOS 6, I have to turn on the localization service (ok) AND the wifi. In fact, the gps data is not transmitted from the antenna to the application (TomTom or Navigon). iOS 6 is really not sexy...

  • Cover same spot on every page

    I have a job that is several hundred pages long.  Every page is a poor quality scan with a mark on the same spot on every page.  I would like to cover this spot on all pages.  I tried using the Rectangle Frame Tool with a solid white fill (I go to Sw