Move Files By FileName

I have a load of files that are desposited on my user desktop via ftp.  Each of these files begins with the same six letters.  It is a pain to select all of the files manually and then pull them into a folder.  I have looked extensively and have tried unsuccessfully to create an applescript that will accomplish the following action:
Take the files with fileNames containing "XXXXX" (or beginning with "XXXXX") at "mac HD:user:me" and move them to the folder "XXXXX" at "mac HD:user:me."
These files all end with the same extension, so I could also delimit the files to be moved by using their extension, if that is a better solution.
Lastly, it would be great if I could also set the above action to occur automatically at some interval.
I can't imagine that prescribing the above sort of action is difficult via applescript, but I must admit that a solution eludes me.  If someone happens to have a script that accomplishes this sort of action that they might share, please let me know.
Thanks

Twtwtw is right: there should never be a colon in any file name!
I've put four JPEG files on my desktop, sequentially named “XXXX# - 20130410s132159265.jpg”,  “XXXX# - 20130410s132159266.jpg”,  “XXXX# - 20130410s132159267.jpg” and  “XXXX# - 20130410s132159268.jpg” (but without any colon in their names). Then I created a folder named “XXXX” in my home folder. Then I run the following script:
set theDestinationFolder to POSIX file "/users/pierre/XXXX" as alias
tell application "Finder"
          move (files of desktop whose name begins with "XXXX") to theDestinationFolder
end tell
The four files were properly moved to the destination folder, while the following result was displayed in the AppleScript Editor Result panel:
{document file "XXXX# - 20130410s132159265.jpg" of folder "XXXX" of folder "pierre" of folder "Users" of startup disk of application "Finder", document file "XXXX# - 20130410s132159266.jpg" of folder "XXXX" of folder "pierre" of folder "Users" of startup disk of application "Finder", document file "XXXX# - 20130410s132159267.jpg" of folder "XXXX" of folder "pierre" of folder "Users" of startup disk of application "Finder", document file "XXXX# - 20130410s132159268.jpg" of folder "XXXX" of folder "pierre" of folder "Users" of startup disk of application "Finder"}

Similar Messages

  • Move files with doubelspace in filename using CLIENT_HOST in Forms10g

    Hi,
    We have following code witten to move files in Forms 10g ( 10.1.2.0.2 ) -
    CLIENT_HOST('cmd /c move '||'"'||Source||'"'||' '||Dest);
    The above code works fine for files with single space in filename. For Example - "a b.txt"
    However fails for files having doublespace in filename. For example, "a b.txt"
    Any workaround for this.
    Thanks.

    how about creating a test button with following trigger
    DECLARE
       l_source      varchar2(100)         ;
       l_destination varchar2(100)         ;
       l_blank         varchar2(1)  := ' ' ;
       l_enclosure   varchar2(1) := '"'    ; 
       l_cmd          varchar2(300)        ;   
    BEGIN
       l_source      := 'C:\tmp\a    aa.txt'   ;
       l_destination := 'C:\tmp\bbb   bbb.txt' ;
       l_cmd         := 'cmd /c move'
                    || l_blank || l_enclosure ||  l_source      || l_enclosure
                    || l_blank || l_enclosure ||  l_destination || l_enclosure
       message (l_cmd) ;
       message ('  ');
       CLIENT_HOST (l_cmd) ; PS : untested, no access to Oracle right now

  • Move file with space in the filename - SM49

    Hi,
    I am using operating system command, MV, to move files across directories in application server. If the filename has spaces, this move fails. Can you please tell me if any escape character can solve this issue? I have already tried using backslash, single and double quotes.
    Thanks,
    Hema

    here's the solution:
    http://www.freebsd.org/cgi/man.cgi?query=file&apropos=0&sektion=0&manpath=FreeBSD+8.1-RELEASE&format=html
    The one significant difference between this version and System V is that
         this version treats any white space as a delimiter, so that spaces in
         pattern strings must be escaped.  For example,
            >10        string  language impress        (imPRESS data)
         in an existing magic file would have to be changed to
            >10        string  language\ impress        (imPRESS data)
    hope that helps

  • How can I link 1 movie file with several logic projects?

    Hi all,
    I've been  working on the music for a film with a colleague of mine and are sharing logic files via dropbox. 72 cues had to be altered for logisitical reason to work in someone else's studio for the final mix. Since I had a copy of the movie on my machine and my colleague had a copy on his we thought that if we put our movie into the root directory of our logic project's folder then the movie would automatically load up with the projects after we shared them via dropbox. We checked to make sure that both movies had the same filename. Unfortunately this did not work and we had to then reassociate 72 cues individually with each logic project. With such limited time to prepare the cues for the final mix this really took too much time.
    Is there any way in logic (9.1.8) to associate 1 movie file with a number of logic projects quickly, without having to open up the project and select open movie?
    kind regards
    /mischa

    Seems to me that if you both had the movie file in the same location on both of your drives (eg on Macintosh HD at root level, in no other folder) then all the project files would search for this common path and find the file.
    The problem arises when there is even a small difference between path names.
    Unfortunately, this won't help you at this point as all the project files already are associated with unique file paths for the movie. By now, you've probably already done it one by one - but maybe for next time....?
    There's no bulk or quick way to do this.

  • How to move files from an external hard drive to a time capsule that is part of an extended network

    What are the steps for copying or transferring 235 GB of files (primarily .mts movie files) that are on a Western Digital external hard drive to a 500 GB Time Capsule that I want to use as an external hard drive?  After the files have been moved, I will be returning the Western Digital external hard drive to my son's coach and will be using iMovie to access the 500 GB Time Capsule to create a highlight video. 
    Currently, I have a 1TB Time Capsule that is serving as the wireless router for my network and for Time Machine backups to two Macs.  The 500GB Time Capsule is set up as an extended part of the 1TB Time Capsule's network.
    I can copy and paste files from the Western Digital exernal hard drive to the Desktop of my iMac but when I try to move a file from the Western Digitial external hard drive to the empty 500 GB Time Capsule, the following error message pops up:
        "The item “filename” can’t be moved because “Linda's Time Capsule (2)” can’t be modified."
    Thank you.  Linda

    Click anywhere on the open desktop so that the Finder menus are displayed at the top of the screen.
    Click Go > Network
    Double click the Time Capsule icon, then double click the icon representing the drive to mount it on the Mac's desktop. It is named "Data" unless you have changed it
    You can drag/drop files to the "Data" icon on the desktop
    235 GB is going to take forever if you try to do this using wireless. If at all possible, connect an Ethernet cable from your Mac to one of the LAN <-> ports on the Time Capsule.
    Even using Ethernet, you are probably looking at 10-12 hours for the file transfer.  All bets are off with wireless only, but a guess would be several days....or even more.

  • Opening an IMG_2712 Mov. file on Macbook Air?

    I was sent a few Quicktime videos with the tag IMG_2712 Mov. and then couldn't open them on a Macbook Air that has been updated so it has the quicktime software that comes with Maverick 10.9.5 Version (1.3 GH Intel Core 15). This tag is not listed in the Quicktime tags listed on the Apple site. Is there another application that will open them? I tried to put them in to iMovie without success.

    I was sent a few Quicktime videos with the tag IMG_2712 Mov. and then couldn't open them on a Macbook Air that has been updated so it has the quicktime software that comes with Maverick 10.9.5 Version (1.3 GH Intel Core 15). This tag is not listed in the Quicktime tags listed on the Apple site. Is there another application that will open them? I tried to put them in to iMovie without success.
    The filename suggests the video was recorded on a digital camera or a device like an iPhone. For instance, an iPhone video would use the generic MOV file container to hold H.264 video with AAC audio which should normally be compatible with your QT X player. Unfortunately, depending on how the videos were handled, the data could be corrupted, the file containers could be corrupted, or the files may be being trapped by player for security reasons.
    My recommendation would be to try playing the file in an app like VLC which might play files using codecs which are incompatible with or unconvertible by QT X. If the file plays in VLC, then you should be able to determine what codecs where used to create the file and whether or not the content should be QT X compatible. If file plays and is not QT X compatible, then the videos should be convertible to QT X formats. If the files play and are already in QT X compatible formats, then the files may a have a security problem which may be gotten around by simply copying the compressed data to a new file container. On the other hand, if the file will not open and play in an app like VLC, then it is most likely that the videos were corrupted before or during transmission to you and you would need to request the files be resent in a more diligent manner to avoid such problems.

  • Can't open .mov files in quicktime anymore

    I can't think of any system changes that I've made recently but a few days ago I was able to open .mov files with quicktime and now I can't. I get the following error when I try to open one. Error -1856: an unknown error occurred (filename.mov) I've uninstalled quicktime, rebooted and reinstalled with no luck. I've searched these forums and googled the error number but can't find anything. Does anyone know what might be going on? Thanks.

    Actually, I can't open anything in quicktime anymore. I've tried opening avis, mov, mp4 and m4a files... all give the same error message and number. I've reinstalled both qt and itunes but no luck.

  • Move files and create unique name something wrong with my script

    Can you see where I might be going wrong here?
    Just trying to create a unique name if something exists.
    In English.
    Move file to the destinationFolder
    Item exists in destinationFolder > Move file in the destination folder to the fake Trash > If it exists in fakeTrash too then give it a new name an ending of_a.psd then out it in the trash
    Once thats done move start file to the destination folder.
    Currently when the file exists in the destination folder and in the trash, I get the prompt then the error
    error "System Events got an error: Can’t get disk item \"NN_FR10WW06290PK3LE.psd\"." number -1728 from disk item "NN_FR10WW06290PK3LE.psd"
    set fileMatrix to {¬
              {folderName:"BHS", prefixes:{"BH", "SM", "AL"}}, ¬
              {folderName:"Bu", prefixes:{"BU"}}, ¬
              {folderName:"Da", prefixes:{"ES"}}, ¬
              {folderName:"Di", prefixes:{"DV"}}, ¬
              {folderName:"Do", prefixes:{"DJ", "RA"}}, ¬
              {folderName:"In", prefixes:{"GT", "CC"}}, ¬
              {folderName:"Fr", prefixes:{"FR"}}, ¬
              {folderName:"No", prefixes:{"NN"}}, ¬
              {folderName:"Ma", prefixes:{"MA", "MF", "FI", "MC", "MH", "MB"}}, ¬
              {folderName:"Pr", prefixes:{"PR"}}, ¬
              {folderName:"To", prefixes:{"TM15", "TM11", "TM17"}}, ¬
              {folderName:"Wa", prefixes:{"WA"}}, ¬
              {folderName:"Se", prefixes:{"SE"}}}
    tell application "Finder"
              set theHotFolder to folder "Hal 9000:Users:matthew:Pictures:HotFolderDone"
              set foldericon to folder "Hal 9000:Users:matthew:Pictures:Icons:Rejected Folder Done"
              set fakeTrash to folder "Hal 9000:Users:matthew:FakeTrash"
      ---here
              repeat with matrixItem in fileMatrix -- look for folder
                        set destinationFolder to (folders of desktop whose name starts with folderName of matrixItem)
                        if destinationFolder is not {} then -- found one
                                  set destinationFolder to first item of destinationFolder -- only one destination
                                  set theFolderName to name of destinationFolder
                                  repeat with aPrefix in prefixes of matrixItem -- look for files
                                            set theFiles to (files of theHotFolder whose namestarts with aPrefix) as alias list
                                            if theFiles is not {} then repeat with startFile intheFiles -- move files
                                                      try
      move startFile to destinationFolder
                                                      on error
      activate
                                                                display dialog "File “" & (name ofstartFile) & "” already exists in folder “" & theFolderName & "”. Do you want to replace it?"buttons {"Don't replace", "Replace"} default button 2 with icon 1
                                                                if button returned of result is "Stop"then
                                                                          if (count theLastFolder) is 0 thendelete theLastFolder
                                                                          return
                                                                else if button returned of result is"Replace" then
                                                                          set fileName to get name ofstartFile
                                                                          if exists file fileName indestinationFolder then ¬
                                                                                    try
      --next line moves existing file to the faketrash
      move file fileName of destinationFolder to fakeTrash
      move file startFile to destinationFolder
      --if it already exists in fake trash give it a new name then move that file to fake trash
                                                                                    on error errmess numbererrnum -- oops (should probably check for a specific error number)
                                                                                               log "Error " & errnum& " moving file: " &errmess
                                                                                               set newName to mygetUniqueName(fileName,fakeTrash)
                                                                                               set name of fileNameto "this is a unique name"-- or whatever
                                                                                               set name of fileNameto newName
      --Now move the renamed file to the fake trash
      move file fileName to fakeTrash
      --now move the startfile to destination folder
      move file startFile to destinationFolder
                                                                                    end try
                                                                else -- "Don't replace"
                                                                          if not (exists folder "Hal 9000:Users:matthew:Desktop:Rejected Folder Done") then
                                                                                    set theLastFolder toduplicate foldericonto desktop
                                                                          else
                                                                                    set theLastFolder to folder"Hal 9000:Users:matthew:Desktop:Rejected Folder Done"
                                                                          end if
                                                                          delay 0.5
      move startFile to theLastFolder with replacing
                                                                end if
                                                      end try
                                            end repeat
                                  end repeat
                        end if
              end repeat
              try
                        if (count theLastFolder) is 0 then delete theLastFolder
              end try
    end tell
    to getUniqueName(someFile, someFolder)
         check if someFile exists in someFolder, creating a new unique file name (if needed) by adding a suffix
              parameters -          someFile [mixed]: a source file path
                                  someFolder [mixed]: a folder to check
              returns [list]:          a unique file name and extension
              set {counter, suffixes, divider} to {0, "abcdefghijklmnopqrstuvwxyz", "_"}
              set someFile to someFile as text -- System Events will use both Finder and POSIX text
              tell application "System Events" to tell disk item someFile to set{theName, theExtension} to {name, name extension}
              if theExtension is not "" then set theExtension to "." & theExtension
              set theName to text 1 thru -((length of theExtension) + 1) of theName -- just the name part
              set newName to theName & theExtension
              tell application "System Events" to tell (get name of files of folder(someFolder as text))
                        repeat while it contains newName
                                  set counter to counter + 1 -- hopefully there aren't more than 26 duplicates (numbers are easier)
                                  set newName to theName & divider & (item counter ofsuffixes) & theExtension
                        end repeat
              end tell
              return newName
    end getUniqueName

    There are numerous errors in your script, and it's a large script so there might be more, but these are the standouts for me:
    At line 48 you:
                                                                          set fileName to get name of startFile
    which is fair enough - you then use this to see if the file already exists in the destinationFolder. However, if it does the logic about how to deal with that is flawed.
    At line 56 you catch the error:
                                                                                    on error errmess number errnum -- oops (should probably check for a specific error number)
                                                                                              log "Error " & errnum & " moving file: " & errmess
                                                                                              set newName to my getUniqueName(fileName, fakeTrash)
                                                                                              set name of fileName to "this is a unique name" -- or whatever
                                                                                              set name of fileName to newName
      --Now move the renamed file to the fake trash
      move file fileName to fakeTrash
      --now move the startfile to destination folder
      move file startFile to destinationFolder
                                                                                    end try
    so let's focus on that.
    56: catch the error
    57: log the error
    58: generate a new unique filename
    59: change the name of fileName to some other string
    Hang on, wait a minute.... we already ascertained that at line 48 you defined fileName as a string object that indicates the name of the file. This is just a string. It's no longer associated with the original file... it's just a list of characters. Consequently you cannot set the 'name' of a string, hence your script is doomed to fail.
    Instead, what I think you want to do is set the name of the startFile to the unique string. Files have filenames, and therefore you can set the name.
    You have a similar problem on line 64 where you try to 'move file filename to fakeTrash'. fileName is just a string of characters. It isn't enough to identify a file - let's say the file name is 'some.psd'. You're asking AppleScript to move file some.psd to the trash. The question is which some.psd? The one on the desktop? in your home directory? maybe on the root of the volume? or maybe it should search your drive to find any/all files with that name? nope. None of the above. You can't just reference a file by name without identifying where that file is. So you probably want to 'move file fileName of destinationFolder...'
    There may be other problems, but they're likely to be related - all issues with object classes (e.g. files vs. strings), or not being specific about which object you want.
    As I said before, though, I might be way off - you don't say where the error is triggered to make it easy to narrow down the problem. Usually AppleScript will highlight the line that triggered an error. Knowing what that line is would help a lot.

  • IMovie Can't Find Movie File Location

    I had to reinstall the OS and all software on my MacBook Pro and after I imported the Movie files back into iPhoto, iMovie can no longer find the movie files for the projects. When I open an iMovie project, there is a yellow triangle with an exclamation point in it. How can I tweak the iMovie project file to point to the movies in the new location?

    It is not the easiest thing to do, but it is possible.
    Please make a backup copy of the project file before attempting brain surgery.
    An imovie project file (with extension .rcproject) is a package. Right click on your Project file in the Movies/iMovie Projects folder. Select Show Package Contents.
    There should be a text file in there called Project.
    It will be in hexadecimal, so you need a hex-capable text editor to read it.
    I would suggest BBEdit (best but $$$) or PListEditPro (free from Apple).
    In this file, you may be able to see the paths and filenames for the clips used in the project.
    This is where iMovie expects to find the clips.
    The least risky thing to do is to move them to where iMovie thinks they should be, with the right names. However, this may impact iPhoto if you are changing the iPhoto library without telling iPHoto.
    So, alternatively, you could edit the file with the new paths and or file names.

  • Need to split Quicktime movie files

    Hi Group!
    I have a bunch of movie files (MPEG4) that I need to split.
    I'm thinking a workflow like this:
    - open movie in qt pro
    - create out-point at the 65 minute mark
    - cut it
    - create new movie
    - paste it
    - rename it to oldname_"Part1"
    - save it
    - close it without saving
    - rename remaining file to oldname_"Part2"
    - save it
    - close it without saving
    So far I have the split/cut/paste part working, but I can't figure
    out how to name a open movie file in Quicktime.
    (I'm new to all this, as you can tell, and the Library in the Script Editor
    for the Quicktime components did not really explain a lot to me).
    Any help appreciated!
    Thanks!

    Try something like this…
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">set save_folder to path to movies folder as Unicode text
    tell application "QuickTime Player"
    set my_movie to the front movie
    set my_file to save_folder & my suffixwith_extension(mymovie's name, "_Part2")
    save my_movie in my_file -- use for a reference to the original
    -- save self contained my_movie in my_file -- use for a portable file
    end tell
    to suffixwith_extension(filename, suffix)
    if file_name contains "." then
    tell (a reference to AppleScript's text item delimiters)
    set {tid, contents} to {contents, "."}
    set file_name to file_name's text items
    tell (a reference to file_name's item -2) to set contents to contents & suffix
    set {file_name, contents} to {file_name as Unicode text, tid}
    end tell
    else
    set file_name to file_name & suffix
    end if
    return file_name
    end suffixwithextension</pre>

  • Importing movie file - transitions don't work?

    Hi all, this is my first post. I searched a bit here and EVERYWHERE on the internet, but couldn't find a solution to my question.
    I'm trying to import a .mov file I created in powerpoint. In the file there are smooth transitions, where one images fades into another. When I import the file, I can view the movie in the preview window (double click the filename in the Project tab). It plays fine, all transitions are intact. However when I drag it into my composition the transitions are gone and there is no fading. It's like there is an alpha channel that's not getting interpreted correctly. I've tried every setting in the Interpret Footage window for the Alpha channel.
    I've done this in several other projects. It's always a pain to get past this part. For some reason I can never repeat the same steps to get it to work.
    If anyone knows what REALLY going on and what I can do to import the footage properly, I would appreciate the help.
    Thanks!

    Todd_Kopriva wrote:
    > It's still puzzling that I can play the movie fine in AE's preview window :/
    What version of After Effects are you using?
    When you say "preview window", what panel are you actually referring to?
    If you're referring to the player window that opens when you double-click a QuickTime footage item in the Project panel, then you need to know that in After Effects CS4 and earlier, this is just a QuickTime Player window.
    Ah, that makes sense then.
    I'm using CS4.

  • How can I sync a .mov file of a home-made video?

    How can I sync a .mov file of a home-made video?

    Another way. You can use a USB flash drive & the camera connection kit.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • Why don't my imported movie files show in iMovie?

    I have a frustrating problem, and I don't know what to do. Sometimes when I import a movie file (usually a dv file) into iMovie, it doesn't show up. If I go to my finder, however, and look in the coresponding event folder, it's there. I can even open it in Quicktime and watch it no problem. It just doesn't show in iMovie when I have iMovie open, therefore I have no way of editing it. Sometimes if I try and import it again, it'll work fine, and sometimes it will only show a portion of the video in my iMovie, while the entire video is seemingly intact in the finder. I have plenty of room on my hard drive for the video. It does this with mov files too sometimes. Is there just a roblem with my iMovie?

    This has been driving me barmy as well. I am on early 2011 MacBook Pro unibody, Lion OSX10.7.4. Clicking 'import' and navigating to the movie file just would not work. Why oh why? Your answers about showing 'all clips' in the event window or iMovie marking them as rejected were not relevant. Also these are movie clips I have put on my hard disk from my phone, they have not come through iPhoto.
    Despair. No forums hold the answer. Until I remembered a Microsoft glitch in Lion that I just found out yesterday. (Does anybody else think that Lion is actually all downsides from 10.6.8? I haven't yet found a single thing that makes it better, and loads of things that make it worse. And I waited a year to 'upgrade'). Exel files with a '/' in the filename give you this infuriating message saying they are in use by another user. Er... doh, no other users are connected, no one else even knows these files exist, never mind uses them at the same time. Magic: Delete the '/' from the filename, and hey presto all is fine.
    EXACT SAME THiNG with iMovie files. I took the '/' out of the filename and import now works fine. There you are. Yet another bit of Lion poop.

  • Songs show up as "QuickTime movie file" and won't share or sync

    I have a few mp3 audio files in iTunes that aren't being transferred to my iPod (3G) and aren't showing up when I share my iTunes library to another computer, and I can't figure out why.
    The filenames have ".mp3" extensions. When I do a 'Get Info' on them in the Finder, they're identified as "MP3 Audio File". Running 'file' on them from a Terminal window says "MP3 file with ID3 version 2.2.0 tag". They play just fine in iTunes as well as in QuickTime Player.
    But when I do a 'Get Info' on them from within iTunes, iTunes says each one is a "QuickTime movie file". And when I access this computer's shared music from iTunes on another computer on my network, everything shows up except these tracks; and when I sync my iPod, everything shows up except these tracks. I don't get any error messages.
    Why does iTunes think these songs are movie files, and how do I correct it?
    G5/1.8 Single   Mac OS X (10.4.8)  

    These files have the wrong creator.
    You can correct this by running the script on this web page.
    The page also contains information about avoiding this in the future.
    Hope this helps.
    M
    17' iMac 800 MHz, 768 MB RAM, 200 GB HD, DL burner   Mac OS X (10.4.8)   iTunes 7.0.1

  • Problem sharing .mov files to iTunes...

    I'm making another attempt to solve a problem that's been vexing me for some time.  I have video files I've downloaded from the internet (legal content I have paid to download) that I can watch on my iMac using iTunes.  I bought an Apple TV (one of the first generation ones that has an internal hard drive), but only some of my video files will sync to it.
    I've tried addressing the problem using the option in iTunes to create an Apple TV version of the file, but that failed (I got a message that said "Error occurred while converting the file "Filename". An unknown error occurred (-54).").  I get that message immediately.
    I have Flip4Mac and Final Cut Studio (the version before the current version).  Since I couldn't fix the problem using iTunes, I thought I'd open the file with Quicktime and see if I could do something to convert it to something that iTunes could sync to my Apple TV.  So, I opened the file in Quicktime and tried to Share it to iTunes.  When I did that, there were three options:  iPhone & iPod, Apple TV, and Computer.  I could only select the iPhone & iPod option (the others were grayed out and not selectable).  so I clicked the Share button with the "iPhone & iPod" option selected.  An export progress window pops up, and it appears that the who export process is completed, but, at the end, it tells me "Can’t make file "Macintosh HD:private:var:folders:Ue:Ueqla9MhGcSWPlZdlCEsOE+++TI:-Tmp-:Filename (iPhone & iPod).m4v" into type alias."
    This is all probably some basic aspect of how the video files I'm dealing with are created.  I'm hoping someone here can tell me, in fairly basic terms, what's going on here, and if there is anything I can do about it.
    Here's some information about the file that might be relevant:  It's a QuickTime movie file (.mov), 135 MB, Codecs: AAC, Sorenson Video 3, Hint, 18 minutes, 2 audio channels, total bit rate: 961, Encoding software:  Sorenson Squeeze 5.0.
    I'm a novice when it comes to video editing.  I really can't understand why in the world I have files that play in iTunes on my computer, but won't play on my Apple TV.  Is it a limitation of compatibility, or is it something that is done purposefully to the files?  How can I fix it?

    Okay, I opened it with MPEG Streamclip and tried to export it in the Apple TV format three times, and every time I immediately got a message that Streamclip had closed unexpectedly.  It started to create the .m4v file, but only got about 8 KB into it, so it almost instantly failed.
    I then used streamclip to export it to the .mp4 format, and that worked, which is very strange.  I would swear that I have tried that before and it didn't work.  Maybe I only tried to convert it to Apple TV format in the past.
    You've helped me resolve an important issue, and I appreciate that.  Do you have any idea why the other options didn't work?
    I'm going to set about converting some other files from different sources and see if it continues to work.  I'll post again then.  If everything goes well, I'll mark this thread answered.
    Thank you for your help.
    Note:  I should mention that these files are older.  They were created before the iPad was avaiable, and maybe before the iPhone and Apple TV (or at least early in the life of those devices).  They look like they may have even been filmed on video tape and converted to digital (they are not widescreen or HD).  I don't know if that matters or not, but thought I would mention it.

Maybe you are looking for