MPEG-2 to MPEG-4 batch convert

I have a large number of MPEG-2 files that were imported from an analogue source using Dazzle (on a pc). I want to edit them in iMovie, and i am looking for a program that can batch convert multiple files from MPEG-2 format to MPEG-4 format so that i can open them in iMovie.
If anyone knows how to do this and what program to use, i'd be grateful.

Not sure what kind of MPEG you have, what is the extension?
You may be able to get Compressor to work with it. Try and see what happens. My typical experience is that things  slow down with lag, beachballs, the works.
But see what happens first hand.
Russ

Similar Messages

  • MPEG Streamclip Batch Pixelation

    Hi there
    I have a strange issue. When I use MPEG Streamclip to convert a video to MP4 one at a time it runs absolutely fine and the video looks perfect. However when I start a batch conversion I get all sorts of pixelation throughout the resulting MP4s. I am setting them to convert with exactly the same perimeters as if I were converting one at a time but for some reason they are a much worse quality. Particularly on transitions within the video. I was just wondering if anyone had any idea why this may happen when doing big batches and not when done singly? I'm stumped!!
    Thanks in advance.

    I have MPEG Streamclip 1.8, Mac OS X 10.3.9, QT 7.1.6, no Flip4Mac etc installed.
    If I drag a bunch of files from the Finder into the Batch window, I'm asked what to do ("Export as DV"), where to save the converted files, enter conversion options and then I find that only the first file is added to the list.
    With my setup all (five) MPEGs were added to the list and the conversion options were asked only once. And all files were processed.
    So I tried the "Add Files..." button. "Files" is plural, but NOOOoooo. I was asked the same questions as above, but only the first file was added to the list.
    With my setup all (five) MPEGs were added to the list and the conversion options were asked only once. And all files were processed.
    Did you choose "Join all the files" in the conversion options? THEN only the very first input MPEG is processed (all the input DV files are processed, though). Seems like a bug with the MPEG input. But was that your problem?

  • How to convert vob to mpeg with mpeg to vob converter for mac

    MPEG has standardized the following compression formats and ancillary standards: MPEG-1, MPEG-2, MPEG-3, and MPEG-4. MPG is one of a number of file extensions for MPEG-1 computer files.
    VOB is based on MPEG-2 program stream format.MPEG to VOB Converter for Mac can both convert MPEG (MPEG-1, MPEG-2, MPEG-3, MPEG-4) to VOB for Mac and convert VOB to MPEG on Mac OS X (Snow Leopard included). Moreover, it could convert HD MPG (MPEG-2 HD) to VOB and VOB to HD MPG (MPEG-2 VIDEO) on Mac OS X.
    Free download mac vob to mpeg converter.
    Step 1, Import or drag and drop VOB or MPEG file to this Mac VOB to MPEG (MPG) Converter.
    Step 2, Choose output format as VOB or MPEG (MPEG-1, MPEG-2, MPEG-3, and MPEG-4). You are allowed to trim, crop video, and set video biterate, resolution, and screen size before conversion.
    Step 3, Click “Convert” to start VOB to MPEG or MPEG to VOB conversion. This powerful software support ripping DVD and converting VOB and MPEG in batch.
    Note: If you are not satisfied with the original video effect, you can trim, crop, add watermark and set brightness with this applicaton, learn how to edit vob on mac snow leopard
    Tips: A good, open source tool for playback VOB is MPlayer OSX and VLC Media Player, and Apple DVD player. If you wish to burn the VOB files to a standard DVDR disc, you need to have all the other standard DVD files as well, including IFO and BUP files. If you have all of the required files, you can get solutions with freewares like handbrake.
    vob to mpeg converter for mac;mpeg to vob converter for mac;vob to mpeg mac;convert vob to mpegmac;convert mpeg to vob mac;convert .vob to mpeg mac

    !http://www.dailyllama.com/news/2004/images/golden_honey_spam_large.jpg!

  • Using MPEG streamclip to convert VIDEO_TS files (DVDs) with chapters

    I am using MPEG Steamclip to convert DVDs (ie VIDEO_TS files).
    Where the DVD has no chapters then it converts in one go into a new file.
    However where the DVD has some chapters, it gives me an option to convert each chapter individually. I actually just want to convert the whole DVD in one go, with all the chapters merged together - is there any way to do this?
    Thank you

    Thanks for the help

  • Using MPEG Streamclip to convert files for EX-1 sequence

    I am trying to use MPEG Streamclip to convert mp4 and mpeg files in order to edit them in the same sequence as my EX-1 footage. What settings should I use on MPEG Streamclip that would be most appropriate for seamlessly editing the former MPEG and mp4 files with the EX-1 footage? Any thoughts on what sequence settings I should use? Right now I have it set as "XDCam Ex 1080p24 VBR" but every time I bring in files I have tried to convert using MPEG Streamclip, they need to render and I'm trying to avoid that. Thanks!

    Thanks for the help

  • .mpeg to .mov converter

    I have all my videos in .mpeg format, and i was just wondering if anyone knows a good .mpeg to .mov converter so that i can play these movies on my iPod 5g, thanks.

    PSPWare (free), Forty-TwoDVD-VXPlus ($2499), Export2QT ($15), and MPEG2 Works 4 ($25) will all convert MPEG1 files to iPod compatible files in a seamless process. MPEG StreamClip will convert the file to an intermediate file format with separate audio and video streams which can them be converted to iPod compatible format by QT Pro, MoviesForMyPod (Free), or Podner ($15) or other QT based scripted applications.

  • Batch convert TODs to MOVs Automator?

    Hi guys
    Given the local help (Apple resellers) are clueless, I was hoping one of you BRILLIANT FCP users might be able to help me.
    The deal is I'm working on a new series and management decided to go tapeless. So they bought a batch of problematic JVC Everio HDD (GZ-70) DV minicams.
    They produce .TOD files which of course FCP 6.0 (upgrading to Studio v.2 and allegedly Final Cut Server one day but I have my suspicions this will be delayed interminedly) can't deal with.
    So we are converting to QT .MOVs one by one by one by one and it is a drag.
    Does anyone have an Automator script to batch convert TODs to MOVs?
    I would be so grateful if you could help... We're dying here.
    Julie

    Hi
    Google finds:
    feed://www.amazon.com/rss/people/A3TTNRJ34PR4OX/reviews
    "Forget about following JVC's instructions: they are too time-consuming and don't allow batch processing. The easiest conversion method I've found requires two freeware programs: The VLC media player, and MPEG Streamclip, both available on the Apple Website (and elsewhere). You'll first need to use the VLC player to convert the .TOD into a .TS file, which takes seconds (you are only changing the container format to MPEG TS, not actually changing compression). Once you've changed the .TOD file to a .TS file, you can use MPEG Streamclip to change to a variety of file formats that Final Cut Pro can recognize. Of course since you are recompressing the file at this point, expect this to take far longer than the first step."
    The Mpegstreamclip pages at:
    www.squared5.com
    explain how to batch process using this conversion utility:
    "MPEG Streamclip supports batch processing: just drag some files in the batch list, choose a conversion and a folder, click the Go button and MPEG Streamclip will automatically convert all your files."

  • How to batch convert with After Effects CS3

    I sure hope this isn't a super silly question!
    I have never used After Effects as it came with my Adobe Master Suite and it's quite duanting to learn all of those programs at once. I'm trying to figure out how to convert several MPEG files to AVI using a batch convert process. It would seem to me that would be a pretty simple process and I've read in several locations that it can't be done with Premiere Pro any more. They also say it can be done in After Effects but they don't explain how.
    I'm pretty new to video editing so layman's terms would be much appreciated. I'm running After Effects CS3 on Windows XP.

    It can be done, but After Effects is far from being a specialized encoding application. A bit like using a ten ton truck to commute
    In CS4, threre is such an specialized app. It's called Adobe Media Encoder, and it can be used in standalone mode or invoked from within Premiere Pro or AE.
    Remember, After Effects is a content creation tool that offers multiple ways to render the content you create. But it's not an utility to convert or encode video formats.
    If you really want to do this in AE, this could be a way:
    Import all your MPEG files in the Project Panel.
    Select them all (drag with your mouse or make Project panel active, then Control+A on Win or Command+A on Mac).
    Drag them all to the New Comp button at the bottom of the project panel.
    You will get a dialog which offers to place all these files in a single After Effects Composition, or create a separate Composition for each. Select the latter.
    In the Project panel, select the resulting compositions and go to Composition > Add to Render Queue. Set each item to AVI format with your codec of choice.
    Of course, there are a million variables that couldn't be discussed in a single post or thread.
    As you can see, you are performing a lot of steps because After Effects is designed to render video once you have created content in the form of After Effects Compositions. In that context, these steps would not be "a lot" - you arrive there quite naturally.
    I suggest you take a look at the After Effects Help chapter on Rendering and exporting

  • How do I batch convert a group of Quicktime movies to H.264

    I want to know the best way to batch convert movies in Quicktime Pro with H.264 compression and save as a .mov file?
    Thanks in advance for reading and replying to my post,
    Sebastian

    I want to know the best way to batch convert movies in Quicktime Pro with H.264 compression and save as a .mov file?
    The QT Pro Player is not, in and of itself, a batch processing application. You can, however, parallel process your files easily enough. Simple open your additional source files and set up your export options for each. As each new export begings, a new progress bar will appear in your export window. If you wish true sequential batch processing, use an application like MPEG Streamclip (free) as your "front end" to access the QT structure for exportation.

  • Batch converter recommendations/ Archos conversion question

    Currently I'm using iSkysofts Video converter to convert videos (from Cannon HD handheld and Archos 605) so that all our data is in the same format. Anyone have any other batch converter recommendations? I like the Skysoft, but looking for something 'better' for our newly purchased iMac.
    Also, we are using the Archos 605 to capture some data from a TV (people playing the game Rock Band), but when we go to convert, the audio is never in sych after it's converted. Sounds to me like a sample rate problem, but i've done everything to try and combat the issue and to no avail. I've contacted Archos as well, but again, nothing. I just wanted to see if any of you out there have experience with the Archos.
    Thanks!

    MPEG Streamclip does batch processing to h.264 iPod/iTunes/Apple TV formats from a slew of video formats and it is free. It tends to be faster than QT Pro as well.

  • Is there an application that can batch convert wma to m4a and save the output files to their respective original file location?

    I need to convert thousands (yes, really) of wma files to m4a.  The wma files are all located in different folders and each converted m4a file needs to end up in the same folder as its respective original wma file.  Does anyone know of an application that can do this?
    Thanks,
    Will

    I'm not completely sure that MPEG Streamclip can convert AVCHD footage (.mts files).  If MPEG Streamclip doesn't do the job, then get a copy of Clipwrap, which was designed for transcoding .mts files to QuickTime/Apple Intermediate Codec (that's the format/codec you need to convert the .mts files to for use in FCE).

  • Batch convert Pages files to Doc and stay in the same folder?

    Hi there,
    I use iWork '09 on Mountain Lion. I recently switched to Microsoft Word and prefer it over Pages (personal preference). However, I have nearly 1000 files on my computer that are in Pages format. I have extensively searched this issue in the Apple Support Communities and it appears that there are scripts that DO EXIST that batch convert Pages files into Word files. However, it appears that many of these scripts were built for older versions of iWork and therefore I run into various errors. For example, I used the script available at http://pagesfaq.blogspot.com/2008/01/export-folder-to-word-rtf-pdf-txt-or.html and click run but nothing actually happens (the script runs for less than a second, then I can click run again). I was able to use one script successfully (pasted below), but the only reason I can't use it is because it saves ALL my converted documents in one folder on my desktop and I would like a script that can save them in the original file were the Pages document is located.
    So, is there an iWork '09 compatible script that can convert my Pages documents to Word documents and save them in the same folder as the original? Oh, and for an added bonus, it'd be cool if the script also deleted my Pages version after it was done with the conversion
    --[SCRIPT batch_exportPages2DOC] (* Enregistrer ce script en tant que script ou progiciel. Exécuter ce script ou déposer l'icône d'un dossier sur son icône. Il ouvre tout document Pages du dossier et l' enregistre en fichier DOC  dans le dossier "was_Pages_now_DOC". Celui-ci peut être sur le bureau ou dans le dossier "~/Documents". Si le GUIscripting n'est pas activé le script demande votre mot de passe pour l'activer. Le script récupère le dossier d'exportation par défaut dans le fichier de préférences de Pages. Éviter de cliquer durant l'exécution du script sauf évidemment pour sélectionner le dossier source. ************* Save the script as script or application bundle. Run it or drag and drop a folder icon on its icon. It opens every Pages's documents stored in the folder and save it as DOC file in a folder named "was_Pages_now_DOC". This one may be on the desktop or in the "~/Documents" folder. according to the property storeOnDesktop. If GUIscripting is disabled the script ask for your password to enable it. The script extract the default export path from the Pages's preferences file. Don't click when the script is running. Except, of course, to select the source folder. ************* Yvan KOENIG (VALLAURIS, France) 2008/04/20 2009/06/17 adapté pour format .doc 2009/12/13 updated for MacOs 10.6… *) property theApp : "Pages" property theExt : "pages" property nomDuRapport : "report_Pages2DOC.txt" property nom_du_dossier : "was_Pages_now_DOC" property storeOnDesktop : true (* true = dest folder will be on Desktop false = dest folder will be in "~/Documents" *) property msg1 : "" -- globale property msg90 : "" -- globale property msg91 : "" -- globale -- property msg92 : "" -- globale property msg94 : "" -- globale property msg96 : "" -- globale property msg99 : "" -- globale property rapport : "" -- globale property dossierDeStockage : "" -- globale property dossierParDefaut : "" -- globale property localExport : "" -- globale property newExt : "" -- globale property newType : "" -- globale property isOs4 : missing value -- globale property isOs5 : missing value -- globale property theMenu : missing value -- globale property menuExport : missing value -- globale property types : {{"doc", "SLDocumentTypeMSWord", 2}, {"pdf", "SLDocumentTypePDF", 1}, {"txt", "SLDocumentTypePlainText", 4}, {"rtf", "SLDocumentTypeRichText", 3}, {"rtfd", "SLDocumentTypeRichTextBundle"}, 3} --===== (* our settings *) property typeNum : 1 (* 1 = WORD, 2 = PDF, 3 = Txt, 4 = rtf, 5 = rtfd *) property theButton : missing value (* 1          button PDF 2          button Word 3          button RTF 4 button Standard *) --===== on run (* lignes exécutées si on double clique sur l'icône du script application • lines executed if one double click the application script's icon *)             tell application "System Events" to set dossier to choose folder (* dans un bloc System Events pour avoir un titre de dialogue "localisé" • in a System Events block to get a localized dialog title. *)           my commun({dossier})             --          my commun({"Macintosh HD:Users:yvan_koenig:Desktop:for_see:" as alias}) end run --===== on open (sel) (* sel contient une liste d'alias des éléments qu'on a déposés sur l'icône du script (la sélection) • sel contains a list of aliases of the items dropped on the script's icon (the selection) *)           my commun(sel) end open --===== on commun(elems)           my nettoie()           my prepareMessages()             tell application "System Events"                     if not (UI elements enabled) then set (UI elements enabled) to true (* Active le GUI scripting • Enable GUI scripting *)                     set titres to title of processes           end tell -- to System Events             if theApp is not in titres then my activateTheApp() (* Active et ferme la fenêtre du document créé à l'ouverture • Activate and close the doc's window created at opening *)           set {newExt, newType, theButton} to item typeNum of types (* item 1 = {"doc", "SLDocumentTypeMSWord",2} item 2 = {"pdf", "SLDocumentTypePDF",1} item 3 = {"txt", "SLDocumentTypePlainText",4} item 4 = {"rtf", "SLDocumentTypeRichText",3} item 5 = {"rtfd", "SLDocumentTypeRichTextBundle",3} *)           set sysAtt to (system attribute "sys2")           if 4 > sysAtt then                     if my parleAnglais() then                               error "This script requires MacOs X 10.4 or higher !"                     else                               error "Ce script requiert MacOs X 1.4 ou ultérieur !"                     end if           else if 5 > sysAtt then                     set isOs4 to true                     set isOs5 to false                     if my getVersion() < "4" then                               set theMenu to 3                               set menuExport to 13                     else                               set theMenu to 10                               set menuExport to 9                     end if           else if 6 > sysAtt then                     set isOs4 to false                     set isOs5 to true                     if my getVersion() < "4" then                               set theMenu to 3                               set menuExport to 13                     else                               set theMenu to 10                               set menuExport to 8 (* was a wrong 9 *)                     end if           else                     set isOs4 to false                     set isOs5 to false                     if my getVersion() < "4" then                               set theMenu to 3                               set menuExport to 13                     else                               set theMenu to 10                               set menuExport to 8 (* was a wrong 9 *)                     end if           end if           my fermeFenetres() (* • Close existing windows *)             my afficheLeMessage(msg1) (* Éviter de cliquer… • Don't click… *)           tell application theApp to set localExport to localized string "Export"           set dossierParDefaut to my getDefaultExport() as text           set rapport to ""           set dossierDeStockage to my creeDossierDeStockage(nom_du_dossier) (* Unicode text *)             try                     repeat with elem in elems                               try                                         my exploreTraite(elem as alias, "")                               end try                     end repeat                       if rapport = "" then set rapport to msg90                     -- crée un fichier texte sur le Bureau                     set p2d to path to desktop                     set p2r to (p2d as Unicode text) & nomDuRapport                     tell application "System Events"                               if exists (file p2r) then delete (file p2r)                               make new file at end of p2d with properties {name:nomDuRapport}                     end tell                     set rapport to rapport as text                     write rapport to (p2r as alias)             on error MsgErr number NroErr                     if NroErr is not -128 then                               beep 2                               tell application (path to frontmost application as string) to ¬                                         display dialog "" & NroErr & " : " & MsgErr with icon 0 buttons {msg99} giving up after 20                     end if -- NroErr is…                     return           end try             my nettoie()           if my parleAnglais() then                     my afficheLeMessage("Export done.")           else                     my afficheLeMessage("Traitement terminé.")           end if end commun --===== on nettoie() (* pour ne pas stocker dans le fichier script • So it will not be stored in the script file *)           set dossierDeStockage to ""           set dossierParDefaut to ""           set rapport to ""             set localExport to ""           set newExt to ""           set newType to ""           set isOs4 to missing value           set isOs5 to missing value           set theMenu to missing value           set menuExport to missing value           set theButton to missing value           set msg1 to ""           set msg90 to ""           set msg91 to ""           set msg92 to ""           --           set msg94 to ""           set msg96 to ""           set msg99 to " " end nettoie --=====  on afficheLeMessage(m)           beep 1           tell application (path to frontmost application as string)                     activate                     if my parleAnglais() then                               display dialog m buttons {" OK "} default button 1 giving up after 10                     else                               display dialog m buttons {" Vu "} default button 1 giving up after 10                     end if           end tell end afficheLeMessage --===== on creeDossierDeStockage(Nom) (* S'il n'existe pas, construit un dossier destination sur le bureau ou dans "~/Documents" • If does not exist, create a destination folder on the desktop or in "~/Documents" *)           local dd, dds           if storeOnDesktop is true then                     set dd to path to desktop as Unicode text           else                     set dd to path to documents folder as Unicode text           end if             if Nom ends with ":" then                     set dds to dd & Nom           else                     set dds to dd & Nom & ":"           end if           (* dossierDeStockage n'existe pas, on le crée • dossierDeStockage is not available, build it *)           tell application "System Events" to if not (exists item dds) then make new folder at end of folder dd with properties {name:Nom}           return dds as Unicode text end creeDossierDeStockage --===== on exploreTraite(elem, ptree) (* elem est un alias • elem is an alias *)           local elem_, cl_, type_Id           set elem_ to elem as Unicode text           tell application "System Events" to tell disk item elem_                     set cl_ to class                     if cl_ is folder then                               set type_Id to ""                     else                               set type_Id to type identifier                     end if           end tell --  "System Events"           set cl_ to cl_ as Unicode text             if type_Id is in {"com.apple.iwork.pages.pages", "com.apple.iwork.pages.sffpages"} then (* C'est un fichier Pages. • It's a Pages document *)                     my TraiteUnDocument(elem_)           else if cl_ is in {"file package", "«class cpkg»"} then                     set rapport to rapport & msg91 & elem_ & return (* "Package", Attention, un package EST un dossier "spécial". • Caution, a package IS a "special" folder. *)           else if cl_ is in {"folder", "«class cfol»"} then                     my ExploreUnDossier(elem_, ptree)           else                     set rapport to rapport & msg92 & elem_ & return (*  "Pas un document Pages". • "Not a Pages's document" *)           end if -- typeId_ is … end exploreTraite --===== on ExploreUnDossier(dossier, ptree)           local nomElement, cheminElement, c           repeat with nomElement in list folder dossier without invisibles                     set cheminElement to dossier & nomElement                     tell application "System Events" to set c to name of (dossier as alias)                     my exploreTraite(cheminElement as alias, ptree & c & ":")           end repeat end ExploreUnDossier --===== on TraiteUnDocument(leCheminOriginal_UniText)           my export2Doc(leCheminOriginal_UniText as alias, leCheminOriginal_UniText) end TraiteUnDocument --===== on export2Doc(p, leCheminOriginal_UniText) (* • here p is the path as alias *)           local flag, nom_de_p, nouveauChemin, w, bof, x, p_xport           try                     tell application theApp                               open p                               set flag to false                               repeat 300 times (* Attends que le fichier soit réellement ouvert. • Wait until the file is really open *)                                         if my getNbWindows() > 0 then                                                   set flag to true                                                   exit repeat                                         end if                               end repeat                     end tell -- to theApp                     if flag is false then error number 8888 (* Le fichier n'a pu être ouvert. • The file can't be open. *)           on error MsgErr number NroErr                     if NroErr = 8888 then                               set rapport to rapport & msg94 & leCheminOriginal_UniText & return                     else                               set rapport to rapport & "### " & MsgErr & " ### " & errNbr & return                     end if                     return (* can't do the remaining tasks *)           end try             tell application "System Events" to tell file leCheminOriginal_UniText                     set nom_de_p to name           end tell -- System Events             if nom_de_p ends with theExt then set nom_de_p to text 1 thru -(2 + (length of theExt)) of nom_de_p           set nouveauChemin to dossierParDefaut & nom_de_p & "." & newExt           --log nouveauChemin           tell application "System Events" to if exists (file nouveauChemin) then set name of file nouveauChemin to nom_de_p & my horoDateur(modification date of file nouveauChemin) & "." & newExt (* name stamped *)           try                     set {w, bof} to my getFrontWindow()                       tell application "System Events" to tell application process theApp                               click menu item menuExport of menu 1 of menu bar item theMenu of menu bar 1 (* Exporter… *)                               repeat until exists sheet 1 of window w                                         delay 0.1                               end repeat                               tell sheet 1 of window w (* sheet containing the buttons PDF, Word, RTF, Standard *)                                         --          get properties of UI elements of radio group 1                                         if isOs4 then                                                   click button theButton of radio group 1                                         else if isOs5 then                                                   click checkbox theButton of radio group 1                                         else                                                   click radio button theButton of radio group 1 (* I hope that they will no longer change it *)                                         end if -- isOs4 is true                                         (*                                         if typeNum is 2 then                                                   delay 0.2                                                   tell pop up button 1                                                             click                                                             click menu item quality of menu 1                                                   end tell                                                   delay 0.2                                         end if                                         *)                                         click button 1 (* Suivant… *)                                         repeat until exists button localExport                                                   delay 0.1                                         end repeat                                         click button localExport (* Exporter… *)                               end tell -- to sheet…                                 repeat 20 times                                         if exists sheet 1 of window w then                                                   click button 2 of sheet 1 of window w (* "Ne pas consulter " dans éventuel rapport d'anomalies • "Don't review" in sheet reporting possible export anomalies *)                                                   exit repeat                                         end if                                         delay 0.1                               end repeat                     end tell -- to process … System Events                       if dossierDeStockage is not dossierParDefaut then (* we must move the file from folder dossierParDefaut to folder dossierDeStockage *)                                 set p_xport to dossierDeStockage & nom_de_p & "." & newExt                                 tell application "System Events" to if exists (file p_xport) then set name of file p_xport to nom_de_p & my horoDateur(modification date of file p_xport) & "." & newExt                               tell application "Finder" to duplicate file nouveauChemin to folder dossierDeStockage (*                               • before 10.5, System Events is unable to move *)                                 my wait4File(p_xport)                                 tell application "System Events" to if exists file nouveauChemin then delete file nouveauChemin                     end if -- dossierDeStockage is not…                     my ferme1fenetre()             on error errMsg number errNbr                     set rapport to rapport & msg96 & p & return & errMsg & " ### " & errNbr & return           end try end export2Doc (* ===== • Build a stamp from the modification date_time *) on horoDateur(dt)           local annee, mois, jour, lHeure, lesSecondes, lesMinutes           set annee to year of dt           set mois to month of dt as number (* existe depuis 10.4 *)           set jour to day of dt           set lHeure to time of dt           set lesSecondes to (lHeure mod 60)           set lHeure to round (lHeure div 60)           set lesMinutes to (lHeure mod 60)           set lHeure to round (lHeure div 60)           return "_" & annee & text -2 thru -1 of ("00" & mois) & text -2 thru -1 of ("00" & jour) & "-" & text -2 thru -1 of ("00" & lHeure) & text -2 thru -1 of ("00" & lesMinutes) & text -2 thru -1 of ("00" & lesSecondes) (* • Here, the stamp is  "_YYYYMMDD-hhmmss" *) end horoDateur (* ===== • Take care, the front window may be an Inspector or a dialog one. *) on getFrontWindow()           local namesOfWindows, w, flag           tell application theApp to activate           set flag to false           tell application "System Events" to tell application process theApp                     set namesOfWindows to name of every window                     repeat with w in namesOfWindows                               if subrole of (get properties of window w) is "AXStandardWindow" then                                         set flag to true                                         exit repeat                               end if                     end repeat           end tell           return {w, flag} (* • w is the name of the front document's window *) end getFrontWindow (* ===== • Wait that the file is completely written on disk *) on wait4File(p) (* • p must be Unicode text *)           local oldSize, nnn, newSize           set oldSize to 0           tell application "System Events" to set nnn to name of file p             repeat                     try                               tell application "System Events" to set newSize to physical size of file p                               if oldSize < newSize then                                         set oldSize to newSize                               else                                         exit repeat                               end if                     end try           end repeat end wait4File --===== on activateTheApp()           local bof, status           tell application theApp to activate           if my getStartingStatus() is false then tell application "System Events" to tell application process theApp to keystroke return           repeat                     set {bof, status} to my getFrontWindow()                     if status is true then exit repeat           end repeat end activateTheApp (* ===== • Close existing open windows *) on fermeFenetres()           repeat while my getNbWindows() > 0                     my ferme1fenetre()           end repeat (* • Now there is no open window *) end fermeFenetres --===== on ferme1fenetre()           tell application theApp to activate           tell application "System Events" to tell application process theApp to keystroke "w" using {command down} end ferme1fenetre --===== on getPlistValue(valName, default)           local thePlist, u           set thePlist to (path to preferences folder as Unicode text) & "com.apple.iWork." & theApp & ".plist"           tell application "System Events"                     if exists file thePlist then                               tell contents of property list file thePlist                                         try                                                   set u to (value of property list item valName) (* Unicode Text *)                                         on error (* On est là si Pages n'a rien enregistré avec des préférences neuves • Here if Pages never saved with the new preferences file. *)                                                   set u to default                                         end try                               end tell -- to contents of…                     else (* On est là s'il n'y a pas de fichier de préférences • Here if there is no preferences file. *)                               set u to default                     end if           end tell -- to system events           return u end getPlistValue --===== on getStartingStatus()           return my getPlistValue("LSDefaultsUseDefaultStartingPoint", false) end getStartingStatus --===== on getDefaultExport()           local u           (* son of a *****, I forgot that they don't use the same name !! *)           if theApp contains "Pages" then                     set u to my getPlistValue("SLDocumentDefaultExportDirectory", "~/Documents")           else if theApp contains "Numbers" then                     set u to my getPlistValue("LSDocumentDefaultExportDirectory", "~/Documents")           else                     error "I didn't coded a Keynote version !"           end if             set u to (POSIX file (do shell script "echo " & u)) as text           if u ends with ":" then                     return u           else                     return (u & ":")           end if end getDefaultExport --===== on getNbWindows()           tell application "System Events" to tell application process theApp to return count of windows end getNbWindows --===== on getLocale(a, x)           tell application a to return localized string x end getLocale --===== on getVersion()           try                     tell application theApp to return version           on error                     return "1"           end try end getVersion --===== on parleAnglais()           local z           try                     tell application theApp to set z to localized string "Cancel"           on error                     set z to "Cancel"           end try           return (z is not "Annuler") end parleAnglais --===== on prepareMessages()           if my parleAnglais() then                     set msg1 to "Don’t click when the script is running." & return & "Except, of course, if it ask for."                     set msg90 to "No problem during the export process."                     set msg91 to "Package"                     set msg92 to "Not a " & theApp & "’s document"                     --                     set msg94 to theApp & " can’t read it"                     set msg96 to "Not copied."                     set msg99 to "Oops"           else                     set msg1 to "Éviter de cliquer durant l’exécution du script" & return & "sauf s’il le demande."                     set msg90 to "Exportation réussie sans incident."                     set msg91 to "Package"                     set msg92 to "Pas un document " & theApp                     --                     set msg94 to theApp & " n’a pas pu le lire"                     set msg96 to "Pas copié."                     set msg99 to " Vu "           end if           set msg91 to "### " & msg91 & " ###  "           set msg92 to "### " & msg92 & " ###  "           --           set msg94 to "### " & msg94 & " ###  "           set msg96 to "### " & msg96 & " ###  " end prepareMessages --===== --[/SCRIPT]

    Try this app: http://tyorex.com/iWorkConverter
    Batch convert Pages files to doc and pdf.

  • Looking for a howto for an applescript to batch convert PPTS to Keynote...

    Looking for a howto for an applescript to batch convert PPTS to Keynote...
    Hi to group!
    (cross posted this a couple of weeks ago to Keynote forum, no responses) Perhaps the query really belongs here...)
    (I) Have a whole bunch of PPTs to convert to Keynote, now and more as time goes on.
    Looked into applescript to try to automate this a bit (could open PPT file but did not see any way to 'Save' file from a script).
    Also looked into bash scripting/automator too -- way too many options to choose from. Help!
    Anybody done anything similar to this already?
    TIA for pointers. //GH

    A word of caution.
    I have not tried the workflow before.
    I am not an applescript expert.
    These steps were quickly composed using my basic knowledge in Applescript
    What I was planning was to create a script droplet that when a ppt file is dropped upon it, it extracts the name of the file and sets it to a variable to name the keynote file later. You might have to modify it a bit to batch process multiple files.
    Try going through batch processing scripts made for quark or Adobe photoshop ( Not sure if these exist on internet) to see how they have implemented the steps in applescript.
    To GUI Script Keynote, do these steps...
    All the code has to go in here
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">activate application "Keynote.app"
    tell application "System Events"
       tell process "Keynote"
          -- insert GUI Scripting statements here
       end tell
    end tell
    </pre>
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">click menu item "Export…"  of menu 1 of menu bar item "File"  of menu bar 1</pre>
    This will click the next.. button provided the default export type is set to PPT
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">click button 2 of sheet 1 of window 2
    </pre>
    This will click the Export button on the next window
    click button 1 of sheet 1 of window 2
    This piece of code can be used to set the name of the ppt file using the extracted name in the first step
    <pre title="this text can be pasted into the Script Editor" style="font-family: Monaco, 'Courier New', Courier, monospace; font-size: 10px; padding: 5px; width: 720px; color: #000000; background-color: #E0E0E0; overflow: auto">set value of text field 1 of sheet 1 of window 2 to "<string>"
    </pre>
    May be there is a better way out there.
    Thanks for red_menace for his Script formatter script
    Message was edited by: dj9027

  • Can I use Adobe Acrobat X Pro to batch convert v1.6 PDF files to v1.3?

    Recently I have posted up a project so the contractor can read the text in the PDF and create hyperlinks from these text. These PDFs are in format of engineering drawings.
    He informed me that he was going to use PHP to read the PDF text as javascript cannot.
    He then asked me to convert the version of our current PDF files from v1.6 to a lower version: v1.3, because php cannot work with higher PDF versions.
    So I found this PDF version converter: [link removed by forum host] but it only converts one by one. I have like a few hundreds of them, so I really need something to do batch convert.
    Could anyone help me out here? We (the small business I am working at) do not have Adobe Acrobat X Pro but will buy it if it can do the job.
    Otherwise could anyone advise me of any other software that can do this?
    Thanks heaps.

    Yes, Acrobat XI Pro can do this very easily. You can create an Action that runs the PDF Optimizer tool, which can convert the file content so it's compatible with any earlier version of PDF (as well as other things). Actions can then be run against a folder of files.

  • How do I batch convert .ai to .jpg or .png in Bridge CC 2014?

    I have found where you could "Export" them out in older versions of Bridge but no "Export" function exist in CC 2014.

    You could do it like this: http://www.santoshgs.com/blog/189/how-to-batch-convert-png-to-jpeg-using-photoshop-cs2/
    But can I be honest? I'd do that with a more efficient and far faster conversion utility like IrfanView. Photoshop is incredibly slow for this type of work. For example, I did a quick test to demonstrate the difference in performance:
    folder with 10 images in jpg format, 5600px by 5600px. Simple jpg to png batch.
    Photoshop: over six minutes.
    IrfanView: one minute and 40 seconds.
    That's a rather big difference - and with large numbers of images I just do not have the time to wait for Photoshop to finish the job. It's too slow.
    Another issue is that during the conversion process Photoshop cannot be used - while with a simple conversion utility you can leave it running in the background, and continue to use PS for other work if required. This matters if you have hundreds of images to convert.
    Btw, Irfanview (windows only) is free to download @ http://www.irfanview.com/
    The batch processing you can find under File-->Batch Conversion <b>
    ImageMagick is also free and open source. It is a command line tool, and easy to use for conversions.Will also work on a mac. But it is much slower than IrfanView, a tad faster than PS.
    http://www.imagemagick.org/script/convert.php
    http://www.ofzenandcomputing.com/batch-convert-image-formats-imagemagick/

Maybe you are looking for