AppleScript to Change the Time and Date a File Was Added

I've ripped a bunch of TV shows I bought on DVD to watch on my iPhone. However, I imported them all at once, so the order they were added to my library is random, and as a result, choosing to sync the "Least Recently Added" episode doen't mean the first episode of the season.
Is there any way to write an AppleScript that will incrementally change the date added so that episode 1 was imported before epsiode 2, etc?

I found a relatively automated way to deal with this issue. Just incase someone comes across this thread down the road, here it is.
1) Download "Track Names With Incremented Number v1.0" (http://dougscripts.com/itunes/scripts/ss.php?sp=tracknameincnum)
2) Add an incremental number before each episode ([#] [name]) — Make sure the files are ordered my track or episode number.
3) Download "Rename Files v1.2.1" (http://dougscripts.com/itunes/scripts/ss.php?sp=renamefiles)
4) Rename the tracks so they now include the incremental number in front of them.
5) Delete the tracks from iTunes
6) From the finder, drag the files back into iTunes and re-import them.
7) Download "Remove n Characters From Front or Back v3.0" (http://dougscripts.com/itunes/scripts/ss.php?sp=removenchars)
8) Remove the incremental numbers from the front of the track names.
9) Run "Rename Files v1.2.1" again to revert the file names back to there original names before adding the incremental number.

Similar Messages

  • Ipod touch always changes the time and date when synced

    Since I got my touch, even before any updates etc, every time I sync it the time and date changes, usually back about a week or so. Anyone else got this problem or any solution as its really annoying me. A cutting edge bit of kit that has practically every function that works so well and the clock and calendar cant keep time? weird....

    Not true in all cases, I updated to 2.0 and had 2 problems: One App had a Bug *NOT Apple`s fault*, and the second was another App ( again, not Apples fault ) that went back to home screen after opening. This was solved by a simple reset ( I have the first batch of Touches, 16 gb ). And the battery thing, I haven`t noticed it at all, I have an almost full charge, and have been using it for 4 days, never shut it down, only sleep mode when not in use.

  • How do I change the time and date on a specific photo

    I import photos from various cameras in the family.  Not everyone has the date or time correct.  In all older versions of iPhoto I could edit the date and time whenever the info field was available.  In the current version all I can find reference to is the date for an event - not the individual photo or any means to change the time.

    Great  --  and note that you can create a smart album by camera type to make it easy to correct the time info for a camera that was set differently  --  the adjust T/D command changes all selected photos by the same amount of time
    LN

  • How can I change the language of the time and date and numbers?

    Hey
    I bought the iPhone 5 and when I setted the settings I chose the country where I live now but the time and date and other numbers because in the language of the country and not in the language that I chose which Is english
    so how can I change them?

    Go to settings >> general and checkout keyboard, international and date & time.

  • My iphone 3gs has started showing the wrong time  and date. All was fine until this afternoon when it changed.  My apps have the right time and date. However the world clock is wrong. I have to turn off the automatic time setting to get the right time.

    My iphone is showing the wrong time and date. All was well until sometime this afternoon when it changed...  to Nov 5 (2 days prior to today), and about 9 hours and some minutes before the actual time.  The world clock for my time zone shows the same wrong date and time. My calender shows the same wrong date and time.  The phone can not find my time zone any more.   The only fix I found was to turn off the automatic setting for time.  What is  happening? Ideas?

    just sorted mine went to
    settings-mail,contacts,calender-timezone support
    then turned it off then on tapped time zone and typed london
    this did sort mine

  • In the advanced tab of languages and Region the time and date formats will not change

    For a certian Application I am using I need to change the format of the Time and Date. I had no problems in Mountain Lion. In the advanced tab of languages and Region the time and date formats will not change. I need the date format to read as 01/01/14 and time format to read 13:00. As I said this was easily done in Mountain Lion and all previous Apple OS. I suspect it's an issue with in the OS.

    You're right, it has been that way for a long time. I've never bothered reporting it as a bug since it's simple enough to deal with, but reporting it would be a reasonable thing to do.

  • Has anyone else had issues with changing how the time and date look on the status menu in Mavericks?

    I'm trying to make it so the year displays, but haven't been able to figure out how to change that. I have the Day of the Week, Month, Day and Time only and I haven't been able to figure out how to do that in the Date & Time or the Language & Region Settings.

    There is no option in System Preferences. However, it may be possible to set it with a "defaults write" command.
    This page shows how to set the time and date format in the Terminal, but doesn't show whether you can add the year.
    http://apple.stackexchange.com/questions/75116/i-want-to-change-clock-from-12h-t o-24h-mode-via-terminal
    If you can find a description of Apple's date format code that includes the year, then it may be possible. Or not.
    I'm guessing Apple thinks only Time Travellers need to ask what year it is...

  • HT5706 My Apple TV is frozen on the time and date setting and then it goes to the screen saver I tried changing the batteries on the remote and it still doesn't make a difference someone help

    My Apple TV is frozen on the time and date setting and then it goes to the screen saver I tried changing the batteries on the remote and it still doesn't make a difference someone help...has anyone else had these problems?

    Hi i ran into the same problem Ithoght it was the control, i changed the batteries the the control, and stil did not work, in the same connection (network and everything) i installed a new one and it worked perfectly, i can deduct the unit is nit working properly

  • How do you set the time and date for the fax on the HP Office Jet 4622 All-in-one Printer?

    I installed the HP Office Jet 4622 All-in-one Printer and everything works wonderfu.  However on the test page for the fax the time and date are showing Jan-00-00 00:00AM.  I do not know how to change the date and time.  Please help.  Thanks.
    This question was solved.
    View Solution.

    Use the Setup (wrench icon) button on the front of the printer to look through the settings menu to set the printer time and date.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How do I keep the time and date stamp of my photo when exporting from iphoto

    Hi,
    I notice the time and date stamp changed when I exported the photos from iPhoto 11 to a external HDD.
    When I looked at the information about the exported photos on my external HDD the time and date changed to the time and date of when I exported the photos form iPhoto instead of keeping the time and date information of when the photo was taken as it appears in iPhoto.
    I thought the time and date stamp is in the meta data of the photo file and can't be changed, am I correct?
    Thanks,

    Kyzelios,
    How can view the meta data from "finder" or do I need a 3rd party app?
    "Get info" function only gives me the creation date which is the export date and time.

  • My gradson got ahold of my grandaughters IPod touch and I no longer have a settings button.  The time and date on this is wrong.  How can I fix this problem.

    I need help...  I no longer have all of the buttons on my IPod touch screen.  My grandson got a hold of it and boom..  The time and date is wrong also, and I have no access to fix this problem.  There is no settings button.
    Any help would be appreciated.

    Assuming that by buttons your mean the icons for various apps are missing, use the Spotlight search feature (double click the Home button and go all the way to the left past the music controls) and search for: Settings. Go to Settings>General>Reset>Reset Screen layout and also correct the time inthe Genera settings.
    The Setting app can't be deleted or hidden via Restrictions.

  • When I did 7.1 update on iPhone five my reminders no longer works correctly it automatically erases the time and date that I requested

    Can somebody tell me why my reminders no longer work correctly on 7.1 update on iPhone five every time I post a reminder it would delete the time and date of the reminder and my reminders do not go off.

    Remove Office 2008 for Mac using Microsoft deinstall procedure. Reinstall Office 2008 for Mac.  If there are updates, apply them. Using Disk Utility, verify/repair permissions on your boot drive.
    Does Office for Mac 2008 now work correctly? If not, you may want to repeat the above first sentence, and then update to Office for Mac 2011, and apply the latest (14.4.8) update which has Yosemite fixes.

  • HT1551 My appletv is properly connected to wireless network, everything looks all right but it can't adjust the time and date. As a result it doesn't work.

    My appletv is properly connected to wireless network, everything looks all right but it can't adjust the time and date. As a result it doesn't work.

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Also try restarting the router.
    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How to know the time and date when someone empty trash?

    someone delete very important videos on my mac PC , i need to know the time and date of what happens on my pc for 2 days ago to can know who delete these files and when the trash being empty
    also, i tried very hard to recovery these videos by using Data rescue program but i found old videos instead of the last videos hasa been removed??? i don't know how???!!
    so can anyone help me please

    Open the Console app located in HD > Applications > Utilities
    Select System Log on the left.
    Type trash in the search fileld top right corner of that window.
    That should reveal the date and name of the file or files that were deleted but they cannot be extracted from there.

  • Tell me what is ******* going on!!!????! The time and date issues!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Every times I went to Apple store, the phone automatically works good time, but when I came back, my phone is working very slow with wrong time!

    The time and date issues!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Every times I went to Apple store, the phone automatically works good time, but when I came back, my phone is working very slow with wrong time!
    I want to get a new iPhone to replace this defective phone. I am gonna be crazzzzzzzyyyyyyyy with anger,!!!,!,,,!  I takes2 hours to go to Regent street apple stores for three times!!!!!. It is a lot of transport fees !
    PLz tell me why! How to deal with it !

    Unless it's confirmed officially that your phone is defective, then you can ask for a replacement. Or you have to live with you. However you can trade it for a new one if you don't care the price drop.

Maybe you are looking for