Automator and Applescript to export movie with quicktime

I have started a work flow that asks for some files from a folder and then passes the list to an Applescript. So far the script is:
on run {input, parameters}
set output_items to {}
tell application "QuickTime Player"
activate
close every window
end tell
repeat with i in input
tell application "QuickTime Player"
open (i as alias)
-- HERE HERE HERE
close front document
end tell
end repeat
return output_items
end run
What I cannot figure out is how to get the file name excluding the extension where I have "HERE HERE HERE". I want to be able to get Quicktime to export the file to the desktop with the same file name as a Quicktime Movie. I cannot figure out how to do this...any help?

Thanks to both of you for your help.
I have made (well still in the process of finishing it up) a folder action work flow that takes movie files, converts them to an iPhone format and moves them to iTunes.
I would like to give credit where credit is due. If you guys are okay with it, can I add your info (name, email, profile on apple discussions, whatever) to the credits?
Thanks
_Nacho

Similar Messages

  • I cannot open my movies with Quicktime or imovie

    Hi - I've run into a major hurdle. I try to export a movie as a Quicktime file, self-contained with audio and video. Each time I export it and try to open it with Quicktime or imovie, those applications crash. It was working fine a week ago. Have Final Cut Express 3.5.1 and Quicktime 7.1.3. Please help as this is really messing up my progress towards a deadline!!!

    Here's two paths which might help:
    1) Try opening the saved movie in FCE (not iMovie)
    2) Try saving it as a reference file (not self-contained option) and see if that will open in FCE or Quicktime
    Are you using 'save as quicktime movie' or 'quicktime conversion'? And what is your final target codec and settings?

  • HT202905 Applescript is exporting folders with a space after the foldername.

    Applescript is exporting folders with a space after the foldername. This is causing problems with an FTP upload of ours. Is there a way to ensure Applescript doesn't insert spaces on the end of folder names?
    Thank you!

    one4truth wrote:
    i bought a used 2 year old macbook pro last week did an erase and install with leopard and once that was done with nothing transfered firewire the drive had over 20 gigs of used space on it so i started snooping around and saw a number of folders in a folder labeled base system that have a solid red circle with a white dash in the middle next to them after clicking on them it says i do not have permission even though i am in under admin?
    the fact that you are an admin doesn't mean that you automatically have access to everything. those folders are owned by the system and have restricted permissions. you should not mess with them. those permissions are mostly restricted to prevent curious users with itchy fingers from damaging the system. as an admin user you can change those permissions and give yourself access to those folders but as i said you shouldn't.
    any ideas to what it is what to do or why it took over 20 gigs to install?
    20 Gigs sounds like a bit too much. have you installed any programs besides leopard itself?

  • I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?,

    I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?, I have built a android application using adobe flex, and i have exported it with native air. The application is working fine on samsung phones whereas it is getting crashed on Moto Phones, which runs on android kitkat, is there any compatibility issue ?

    Thanks, Flex harUI, for the direction in regards to isolating build changes. That aside (still working on it), can you offer any direction in regards to my original question on SDK and AIR compatibility? I'm specifically looking for a version compatibility mapping or anything that definitively states, "Flex SDK x.y.z works with the following versions of AIR". This information is crucial for us in order to more specifically plan our own roadmap built upon these two frameworks as we consider both existing installations of our software and future distributions.

  • Need to export Movie to Quicktime Movie w/ similar file size and quality.

    Let me preface in that I am not in the video editing profession. Many times I have exported my work to the professionals. I'm sure knowing what you're doing is half of the battle. Here is my dilemma. First, I'm using Quicktime pro just to add a text track to the movie. I  then save the file as what Quicktime pro calls Movie .mov. This looks good and has the quality of the original .mov and the small data size. However, no other player than quicktime will recognize the text track. I then tried exporting from Movie to quicktime movie format (still .mov, can anyone explain the difference of the two .mov types???), but I find that the image quality is poor. Yet, in the quicktime format other players (except windows media player) recognize the text track. By poor quality I mean that I think what I have is the blocking effect. I assume that this is due to the bitrate being to low. Again, I would like to keep the file size low and managable for data storage and downloading purposes. I was hoping that in the end all video players would be able to have no issues.
    My current file sized are all less than 1MB and are of good quality.
    Just adding a small test track the Movie .mov is still less than 1MB
    The size of the image is 512x512
    I should also say that I'm a PC user with a quicktime pro windows version. I'm sure that doesn't help me one bit!! However, I believe my issues are more with the fact that I'm not experienced in compressing files and knowing exactly the right settings.
    Here is what I've tried thus far. Movie to quicktime movie
    H264 codec
    Current for fps (Which is in the original is 8fps)
    Key frames automatic
    frame reordering checked
    I've tried Automatic data rate and setting the bit rate, even at 2000kbps (the quality is low). My original movie with the highest kbps is only 1151kbps and has no artifacts
    encoding Best quality multi-pass
    custom size 512x512
    deinterlace checked

    am i correct that this 'my photo stream' process is not removing any image data?
    Yes,  as long as you have iPhoto's iCloud preference pane configures as follows:
    You're be getting the full image file, pixel dimensions, etc. which is essentially a bit by bit copy of the photo on the Phone.
    When you add tags and other metadata and export the file out of iPhoto as a jpeg with the checkboxes selected to include that metadata there will be some image compression.  However, if one chooses High or even Medium JPEG Quality one will be hard pressed to detect any image degradation unless printing very, large prints or otherwise displaying the image at a very, large size.
    I ran a test on a 1.4 MB photo from my iPhone  and compared the original to two exports, one at High and the other at Medium JPEG Quality and got these results:

  • Trying to export movie from QuickTime Pro to AVI and getting white screen

    Hi there,
    I am trying to export a movie from QuickTime Pro to an an AVI file. It goes through the process as if everything has worked, but when I open the finished file, all I get is a white screen with no audio or picture.
    I need to save lectures from school from the school website to my computer so that I can watch them when I do not have internet access. QuickTime gives me the option to save the video straight from the web, but as soon as I turn off my AirPort it tells me that I need internet to continue watching the movie..
    I need some way to get the files to my computer. Any suggestions?

    I am trying to export a movie from QuickTime Pro to an an AVI file
    AVI is just a container ... specifically, which codec are you using when exporting? And why export to AVI?
    QuickTime gives me the option to save the video straight from the web, but as soon as I turn off my AirPort it tells me that I need internet to continue watching the movie
    That usually means that your system doesn't have the codec installed needed to view the video, but your web browser is using a plugin that does. What format are the web videos? Flash?
    -DH

  • Automator and applescript to copy new files in a folder with same name as parent folder

    I have an iMac with a pictures folder (Finder folder) containing several subfolders with pictures. As per now, all these subfolders are imported into an iPhoto library (and the structure of the Finder pictures folder is thus maintained: The iPhoto events are named the same as the Finder subfolder). I.e. I have not created any albums in iPhoto.
    I have also set up a workflow, where new iPhone photos are automatically being synced to specified Finder folders within the iMac pictures folder. So what I want to do is to make a workflow to import potential new photos from week to week into the existing iPhoto structure. I know iPhoto has this Autoimport folder, so this one is unpacked and "mapped". So, this is what I´m hoping to do:
    Automator (iCal - want to do this on a weekly basis):
    - Get specified Finder items -- set to target folder = iMac pictures folder
    - Get folder content (with subfolders)
    - Filter Finder items
         - Items from the last 7 days (which then would be any new files created last week)
    - Applescript/shell script loop(?)
         - Get folder name for each file´s (from previous step) parent folder
         - Create new folder with same name as the file´s parent folder (if not already existing) under the iPhoto Autoimport folder
         - Copy the given file into the folder from above
    - Run iPhoto application (Automator task), which then should just auto import the new photos according to the Finder folder structure
    Whith the workflow above, I aim to maintain the existing iPhoto structure, and just import new photos into the existing structure. Creating folder names under the Autoimport, similar as the existing Finder folder names / iPhoto events should make it possible to have the new files imported under the existing event, right?

    Anyone?
    I have now switched to Aperture (from iPhoto) due to Aperture´s capability to handle Finder folder structure, and due to the possibility of having the pictures within Aperture as referenced files to the pictures within the Finder folders (i.e. possibility to delete pictures from both library and Finder folder at the same time).
    So I have a superior Finder folder called "Album". Within "Album" I have several subfolders (sub albums) containing pictures. The "Album" folder with subfolders are imported into Aperture as "Projects and albums", and the pictures are uploaded within the Aperture structure as referenced files. So for now the Aperture structure is more or less a direct mirror of the Finder folder structure, whereas "Album" is the project.
    And this is my current workflow in Automator, but I´m searching help with my Applescript:
    - Get specified Finder items (target folder = the superior Finder folder "Album")
    - Get Folder content
    - Filter Finder items (to look for potential new files to import into Aperture)
         - Kind is not folder
         - Date created last X days
    The output files from this task enters an Applescript
    on run {input, parameters}
           repeat with f in input (**Loop**)
                   tell application "Finder"
                          set fileName to name of (f)
                          set parentFolder to name of container of (f)
                          tell application "Aperture"
                                 tell library 1
                                        tell project "Album"
                                               if (exists album parentFolder) then
                                                 ** I then would like to check if fileName already exist within the existing album**
                                                 ** If not existing, I would like to import file f into the existing album as a referenced file**              
                                               else if not (exists album parentFolder) then
                                                       make new album with properties {name:parentFolder}
                                                ** I then would like to import file f into the new album as a referenced file**
                                               end if
                                        end tell
                                 end tell
                          end tell
                   end tell
           end repeat
    end run

  • No sound when I export my movies with QuickTime for windows.

    Using QuickTime Pro for windows and getting no sound on my exported movies. Won't even give me the option of adjusting the sound on options then movie settings. Any ideas? Thanks...

    QuickTime Pro can't extract audio from muxed file formats (MPEG 1 or 2 and Flash).
    MPEG Streamclip (free) can.

  • Crash 0::42 when Exporting Audio with Quicktime:

    Hello Folks,
    We're having an issue with exporting .mov files from After Effects.  When a user tries rendering a project through Make Movie > Ouput Module > Quicktime Movie, AE crashes with the error code 0::42 if the user simply clicks the 'Format Options' button for Audio output.  In addition, if the user selects File > Export > Quicktime Movie, the movie will get about half way done and crash with the same error.
    This error occurs on all of our workstations.  We are using CS4 and HP workstations of various makes and models, the only direct similarity is they all use Realtek built in audio.  I have done some troubleshooting using procmon.exe and the issue that seems to be coming up points to a conflict with our audio driver and Quicktime (see the following regesty entries below)
    The following kept coming up with a BUFFER OVERFLOW and NAME NOT FOUND results:
    HKLM\System\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\HDAUDIO\FUNC_01&VEN_10EC&DEV_0262&SUBSYS_103C 130A&REV_1002\4&705ED8E&0&0001\DirectSound\Device Presence
    HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Drivers32
    Also, both registry entries point to the file
    C:\Program Files\Adobe\Adobe After Effects CS4\Support Files\(Media Core plug-ins)\Common\AsioWdm.dll
    Does AsioWdm.dll have some conflict with our HD Realtek audio and quicktime?
    I tried uninstalling and reinstalling the Sound card drivers / codecs.  This actually allowed me to export Quicktime movies without crashing via File > Export.  However, we're still experiencing the crash when clicking on 'Format Options' from Make Movie > Output Module > Format Options.
    Does anyone have any idea what's causing / how to resolve our issue?
    Any help would be much appreciated.
    Thanks,
    Ben

    Hello again,
    Thank you for your responses, here is an update on our status:
    I am testing a simple scene with a .wav file.  AE only crashes when we're using the Quicktime module and if we click on Format Options in the audio settings.  All other modules seem to work just fine.  Interestingly, if we choose File > Export > Quicktime Movie, we can access the audio compression options and AE does not crash.
    In regards to ASIO, as far as I know, we are not interfacing with anything else.  The workstations we're using have built-in speakers, but I don't see how that could be an issue and nothing else is plugged in.
    As for the codecs, we have the k-lite package installed as well as DivX, Xvid and whatever comes with the Realtek drivers.  I tried uninstalling k-lite and xvid, but neither seemed to help.
    Other things I have tried:
    - Uninstalled and reinstalled AE
    - Updated Quicktime to the newest version
    - Uninstalled and reinstalled Quicktime to version 7.65
    - Disabled openGL support
    NOTE: we recently tried this on one of our workstations (z600) with windows 7 64 bit and we got the same issue.
    No matter what we do, AE still crashes when we have the Quicktime format selected and click the Format Options Button for the audio settings.
    Any other ideas?

  • Export slideshow with quicktime

    I want to export my slideshow as a movie. The problem is that I want to chance my resolution to 720X576 (I live in the PAL world). But the export dialog box only gives 3 choices. Strange, since quicktime can handle HD.
    Any thoughts?

    Hi Polleke,
    The only way you can export with those dimensions is selecting an album, go to share/export, choose the Quicktime tab, input your PAL dimensions and set your other options.
    The caveat to this method is you can only have the current chosen song for the audio, there is no Ken burns and I think the transition is a dissolve.
    I think if you go the iMovie way you can have everything just like iPhoto but will be able to export to Quicktime with PAL format.
    Lori

  • Export movie with alpha to png sequence

    I'm trying to export tweened animation to .png image sequence
    with alpha transparency.
    The individual png files appear to be clean -- but when I
    open the file sequence in QuickTime, it looses the 8-bit alpha.
    Anyone know how to get around this? Thanks!
    QT 7.4.1, 10.5.2, CS3

    MCs are dynamic and designed to play at runtime in the flash
    player - to export to video you simply
    need to convert them to Graphic symbols.
    --> Adobe Certified Expert *ACE*
    --> www.mudbubble.com
    --> www.keyframer.com
    xfiretyra wrote:
    > I've created a flash animation and I need to export it
    to Quick time or PNG
    > sequence so I then can importet to premiere. When I
    export it to Quicktime the
    > movie clips in the scenes doesn't play and the same with
    PNG. So now Im cuting
    > out all the movie clips to individual scenes. However
    this is a hell of a job
    > as when I paste the frames on to the scenes they don't
    end up on the right
    > place, centered on the page so I've to almost redo
    everything. Do you have any
    > good advice for me how to make it a bit easier?
    >

  • Exporting Movies as Quicktime Issue

    I've been having major issues with exporting animations from Flash CS4 as Quicktime movies with and alpha channel.  I seem to always get some kind of artifacts showing up.  Basically, it looks like chunks of the graphics remain in place for a few frames and then disappear. I am exporting as Animation at 100% quality... and I work on a Mac.  Has anyone encountered this issue and found a way to solve it?  Please see the attached file for reference.
    thanks

    One more thing to add: when I move the clip to the correct place in the timeline (in this case it's at 16:20:30;00) the exported clip does not start on the same frame that it was set in the original sequence. I was off by a little over a second so I repositioned it in the original sequence and exported again. The second export had the correct starting frame but the last frame was off by over 3 seconds.
    Any ideas?

  • Unable to edit movies with Quicktime Pro 7

    I recently upgraded to Quicktime Pro from Quicktime 7 although I am not able to edit movies. After moving the markers to the correct postion, all of the editing commands remain greyed out (i.e. cut/copy/delete/trim to selection). I've verified that the upgrade took place properly, reinstalled, and still nothing. Any ideas?

    QT does not support editing mpeg-1 or mpeg-2 video. QT Mpeg Limitations
    Open the movie and check MovieInfo to see if that is the format of the clips you are attempting to edit. If it is, you can use this freeware to do some editing and also can export both sound and video to other formats with it. Mpeg StreamClip
    Even if the video is not mpeg it may have been flagged by the creator to not allow editing. If you try to save such flagged videos you usually get an error message that the video cannot be saved.

  • Exporting movie with 2.35.1 aspect ratio

    I used filmic pro on my 4S to capture 24fps video along with a 2.35.1 overlay guide so my video composing will work once everything is edited. I have edited the video in iMovie with 1920x1080 24fps project settings and now I want to export it. Some videos I have seen recommend putting a picture of 2 black bars over the video but I think this is a waste of time and space since I will have to render the 2 black bars.
    What would be the correct way of exporting my video with a 2.35.1 aspect ratio in iMovie? It would also be good if there are guides for Final Cut, and Adobe Premiere since I intend to try these out too.

    iMovie will render your movie in 16:9 (1920x1080) or 4:3 (standard def), since those are the sizes of television screens.
    To show a movie in 2.35:1, you will need to use the set the aspect ratio of the project to 16:9, and then, use the Rotate, Crop, Ken Burns tool on the middle Toolbar to set each clip to FIT. You can then Share the movie, and it will create the black bars for you.
    If you want to show your movie on a device (like a computer screen or a web page) that is not constrained by the 16:9 or 4:3 limitation, you may be able to process your movie in QuickTime Pro to trim to exact dimensions, but you should check in the QuickTime Pro discussions to make sure, because I have not tried this myself.

  • Create Automator workflow/AppleScript to automatically move files within NAS

    Running iMac / Macbook Air (OS 10.9.5), having the Macs connected wireless to the same network as a Seagate Central (NAS). On the Seagate Central and the iMac I have specified a couple of folders which are bidirectional synced via "Sync folders pro", e.g. pictures/movies folders. As a family, we have several iPhones (4S and 5S) with dedicated folders on the Seagate Central / iMac. Having the Seagate Media app on the iPhones, we are able to upload (and thereby free iPhone memory) pictures/movies directly onto the Seagate Central (pictures/movies which then are synced back onto the iMac). However, when uploading pictures/movies from the iPhone to the Seagate central (via Seagate Media app), it is not possible to define a target directory, and the pictures are therefore uploaded to a dedicated directory. I therefore search for some workflow/script to automatically (when new pictures/movies are uploaded, or at a daily basis);
    - Search for pictures/movies within a specific NAS folder
    - Move the pictures/movies to another specific NAS folder
    - Delete all other files/folders within the NAS folder being searched
    New to Automator / scripting, so I hope you bear with me even if the questions are dumb.
    Is it possible to make the NAS recognize a workflow/script without starting the iMac and/or MBA?

    Ok, so I made it a bit further, now having the following Automator Workflow (iCal)
    1. Get requested clients (check for ignore input from this action)
    - afp://192.168.1.86/Public
    2. Connect to client
    - I end up with a mounted disc (Public folder). Note that I end up at the same folder even if using afp://192.168.1.86/Public/iPhone/Photos in step 1.
    3. Get specified Finder items (check for ignore input from this action - to avoid having the Public folder itself following the workflow)
    - Choose the subfolder Public/iPhone/Photos
    4. Get folder content
    5. Filter Finder items
    - Did not get any results by using arguments as "kind is picture" and/or "kind is movie"
    - Ended up using arguments as "name contains jpg", "name contains mov" etc
    6. Move Finder items
    - Destination folder: Public/Pictures/iPhone
    - I now successfully managed to transfer the pictures and movies from one NAS folder to another
    *** I now want to continue the workflow to delete all other Folders/Files on Public/iPhone/Photos ***
    7. Get specified Finder items (check for ignore input from this action - to have no existing input for the remaining workflow)
    - Choose the subfolder Public/iPhone/Photos
    8. Get folder content
    - Results no showing a folder and a file
    9. Move Finder items to trash
    However, I´m encountering a couple of problems with this workflow;
    Note1: If there are no pictures/movies to move (no output from #5 going into #6), the workflow will stop. Any suggestions on how to skip step #6 and go to #7 if there are no pictures/movies to move? Applescript within Automator? Setting up the workflow as iCal (regular basis), so would be nice if the workflow just completes without errors (i.e. still goes on with deleting other files on the folder, even if there are no pictures/movies to move).
    Note2: Step #9 result in a error "Finder could not move the specified items to trash". Has this something to do with a folder and some other file being attempted deleted from a NAS folder? Any suggestions for how to cope with this problem?

Maybe you are looking for

  • RE: How to have multiple application running under one server

              I have one server           I have many application           Question: Is it possible for me to have a weblogic properties file under each           of this application.           

  • Ipod touch is not syncing over wifi at home

    Hi is there anyone out there that is having trouble with syncing there ipod touch with there home computer and receiving there email as well. But are able to go on the wifi outside of thier home in public domains and only able to partially receive th

  • Quick dynamic update question

    Hi all, We've just got Color at work and I'm pretty impressed with it. Next they'll be bundling PFTrack or Boujou for free! Just a quick question though.. If I send an edit from FCP to Color, do some grading (including keyframing), and then get a rev

  • How to disable the v$session functionality ?

    Hi All, Whenever a client connects to oracle, a row is inserted into v$session object that contains specific information of the client. How can I disable this feature .... Thanks & Regards, Kumar.

  • Updating multiple rows in a table in ADF

    Hi How do we update multiple rows in a table. Onclicking a update button the changed rows must be updated.