FCP XMLs into AME watch folder

Hi, recently Adobe Media Encoder added support for FCP XML files. I am exporting FCP XMLs from Premiere into an AME watch folder but no job is being created in the queue, despite having 'Auto-Encode Watch Folders' turned on and 'Start encoding automatically when idle for:' set to 0 minutes. If I manually add the same FCP XML file to the encode queue, the job is created and processes correctly. Has anyone been able to make AME process FCP XMLs automatically using watch folders?
The point of doing this is to potentially free up workstation resources by doing all rendering on dedicated AME machines, allowing quicker turnaround of the kind of short, simple edits that our users do.
This is on OSX Mavericks, Adobe CC Premiere 7.2.1(4) and Adobe Media Encoder 7.2.0.43.
thanks

[Moved to AME forum.]

Similar Messages

  • AME watch folder - hangs when too many files

    I have about 350 vob files in a watch folder, ever time I start up AME it seems to start processing them but it just starts "not responding".  I noticed that it is writing files to the Media Cache folder but then just eventually stops after about a min or two.   If I only put like 20 files in the folder it works ok.
    Is there a way to disable the media cache files from being written?  I don't know that they are necessary just for what I'm doing (i'm not previewing or anything).  I don't know that it is the issue but it seems AME is hanging on the # of files and the fact that they are VOB/mpeg2.  Has anybody ever experienced this?
    The # of files is not a one time deal, this will be a reoccurring issue and it would be much nicer to be able to just dump all the files and be done.
    I'm using CS5.5, Win 7 64bit, recent i7 Sandy Bridge proc, 16GB ram.  The watch folder is on a Synology NAS connected via gigibit, maybe that is part of the problem (that it is not local).  The media cache folder is on a local 2TB drive (WD Black) with plenty of room.
    Any insight would be appreciated.
    thanks
    Ryan

    The fact that the watch folder is not local to the AME machine may indeed factor in.The process is definitely more robust in a local scenario; network environments complicate matters in a number of ways. Can you run a test where you copy the same batch of files to a watch folder on the AME box?
    A few other questions:
    Is the "Auto-Encode Watch Folders"  option enabled (at the top right of the Queue panel)? And are all 350 files getting added to the AME queue?
    If Auto-Encode *is* enabled and some jobs are *not* getting added to the queue, then please try with Auto-Encode enabled.
    We're not suggesting this as a workaround but just to give us more insight into where things are failing.
    What are CPU and memory usage though the process, from the time you drop files into the watch folder until AME hangs? Are either getting maxed out?
    How big are the VOB files? How long does it take to copy all of them into the watch folder?
    I know of no way to disable the creation of media cache files.
    Thanks for bringing this issue to our attention and giving us an opportunity to troubleshoot it.
    Mark Mapes
    Premiere Pro/AME Sr. Quality Engineer

  • I want to read the content of a text file dropped in a watched folder into a string variable

    I have a workbench process with 2 variable.
    inDoc (DataType=Document/input/required)
    outStr (DataType = String/output)
    The document being passed to the workflow is a text file with 4 lines of text in it.  when the text file is dropped into the watched folder, it will be assigned to the inDoc parameter in the workflow.
    My workflow needs to extract the 4 lines of text and write it into a string (outStr).
    Id like to use the FileUtilsService.ReadString service but i can't since its input parameter is the file path.  When i do, i get the following error...
    Caused by: ALC-FUT-001-011: File rO0ABXNyABZjb20uYWRvYmUuaWRwLkRvY3VtZW50yAEFUxsO+CEDACNJAAtfY2FsbGJhY2tJZFoADV9kZXNlcmlhb Gl6ZWRJABBfZGlzcG9zYWxUaW1lb3V0WgAJX2Rpc3Bvc2VkWgAZX2lzRGlzcG9zYWxUaW1lb3V0RGVmYXVsdFoAE19 pc1RyYW5zYWN0aW9uQm91bmRKAAdfbGVuZ3RoSQAOX21heElubGluZVNpemVaAAhfb3duRmlsZVoAC19wYXNzaXZhd GVkWgALX3BlcnNpc3RlbnRJABFfc2VuZGVyQ2FsbGJhY2tJZFoAEV9zZW5kZXJQYXNzaXZhdGVkWgARX3NlbmRlclB lcnNpc3RlbnRJAA5fc2VuZGVyVmVyc2lvbkkABl9zdGF0ZUwAC19hdHRyaWJ1dGVzdAATTGphdmEvdXRpbC9IYXNoT WFwO0wACF9jYWNoZUlkdAAfTGNvbS9hZG9iZS9pZHAvRG9jdW1lbnRDYWNoZUlEO0wADF9jYWxsYmFja1JlZnQAIUx jb20vYWRvYmUvaWRwL0lEb2N1bWVudENhbGxiYWNrO0wADF9jb250ZW50VHlwZXQAEkxqYXZhL2xhbmcvU3RyaW5nO 0wAC19kYXRhQnVmZmVydAAeTGNvbS9hZG9iZS9zZXJ2aWNlL0RhdGFCdWZmZXI7TAAPX2V4cGlyYXRpb25UaW1ldAA QTGphdmEvbGFuZy9Mb25nO0wABV9maWxldAAOTGphdmEvaW8vRmlsZTtMABBfZ2xvYmFsQmFja2VuZElkdAAhTGNvb S9hZG9iZS9pZHAvRG9jdW1lbnRCYWNrZW5kSUQ7WwAHX2lubGluZXQAAltCTAAMX2lucHV0U3RyZWFtdAAVTGphdmE vaW8vSW5wdXRTdHJlYW07TAAPX2xvY2FsQmFja2VuZElkcQB+AAhMAAxfcHVsbFNlcnZhbnR0ACRMY29tL2Fkb2JlL 2lkcC9JRG9jdW1lbnRQdWxsU2VydmFudDtMABFfcmFuZG9tQWNjZXNzRmlsZXQAGkxqYXZhL2lvL1JhbmRvbUFjY2V zc0ZpbGU7TAAVX3NlbmRlckNhbGxiYWNrUmVmSU9ScQB+AARMABZfc2VuZGVyR2xvYmFsQmFja2VuZElkcQB+AAhMA A1fc2VuZGVySG9zdElkcQB+AARMABVfc2VuZGVyTG9jYWxCYWNrZW5kSWRxAH4ACEwAGl9zZW5kZXJQdWxsU2VydmF udEpuZGlOYW1lcQB+AARMAARfdXJsdAAOTGphdmEvbmV0L1VSTDt4cHcGAAAAAwAAcHd1AHMwOjA6MDowOjA6MDowO jEvMTI3LjAuMC4xLy8vLy8vLy8vZmU4MDowOjA6MDo3NDMyOmU0OWQ6NmUzMToxNTU0JTEwLzEwLjI0LjIzOS4xMjY vZmU4MDowOjA6MDowOjVlZmU6YTE4OmVmN2UlMTEvLy8vdXIAAltCrPMX+AYIVOACAAB4cAAAAcRJTU01MjU3XzAxL TIwMTFfMXwwMXx8YXx8fHxGZW1hbGV8MjAwMHw2fDh8Y3wyNTZ8MjU2fDkxMnwwMXx8fHx8fHx8Tnx8fHx8fHx8fHx 8fHx8fHx8fHxZfHx8fHx8fHx8fDAyfHx8fHx8TnwyMDEyfDJ8MTR8DQpJTU01MjU3XzAxLTIwMTFfMnx8fHx8fHx8f Hxhc2RmfDI1NnwyMDEyfDAyfDAxfDIwMTJ8MDN8MDJ8fHx8YXxhfDI1Mnx8fHxZfHx8fHx8fHx8fHx8fHx8DQpJTU0 1MjU3XzAxLTIwMTFfM3xOfHx8fHx8fHx8fDIwMDB8Nnx8fGFzZGZ8YXNkZnxhc2RmfDI1Nnx8fHx8fHx8fHx8fHx8f Hx8fHx8DQpJTU01MjU3XzAxLTIwMTFfNHxOfE58fE58TnxOfHxOfE58fE58TnxOfA0KSU1NNTI1N18wMS0yMDExXzV 8U2luZ2xlfDAxfHwyMDEyfDAyfDE4fDIwMTJ8MDN8MDN8MjM0fGFzZGZ8fGFzZGZhc3x8fHxFeGNoYW5nZS1Qcm8uO S40MDEuRnVsbC5XSU4uZW5fQ0EuRU5VLTEwLTIwMTF8DQoNCnBwdwYAAAAAAAB0AAp0ZXh0L3BsYWlucHNyABFqYXZ hLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAx3CAAAABAAA AADdAAKd3NmaWxlbmFtZXQAJ0M6XFVzZXJzXENodWxseS5QYXJrXERlc2t0b3BcaGRzY2FuLnR4dHQACGJhc2VuYW1 ldAAKaGRzY2FuLnR4dHQABGZpbGVxAH4AFXh3NwAtYWRvYmUvaWRwL0RvY3VtZW50UHVsbFNlcnZhbnQvYWRvYmVqY l9MQ19ERVYx//////////94 does not exist.
    at com.adobe.livecycle.fileutils.FileUtilsService.readDocument(FileUtilsService.java:363)
    which is what i expected...
    I've also tried with the Script.executeScript to call some java code but im not too strong in java and in all the examples i find, the file pointer requires a file path.
    import java.io.*;
    FileInputStream f = new FileInputStream(patExecContext.getProcessDataValue("/process_data/inDoc"));
    OR
    File f = new File(patExecContext.getProcessDataValue("/process_data/inDoc"));
    OR
    File f = patExecContext.getProcessDataValue("/process_data/inDoc");
    Any clue how to resolve my problem?

    Try the following code snippet to read the String content from the file recieved through watched folder endpoint.
    com.adobe.idp.Document inputDoc = patExecContext.getProcessDataDocumentValue("/process_data/inDoc");
    java.io.InputStream inStream = inputDoc.getInputStream();
    byte[] dataBuffer = new byte[inStream.available()];
    inStream.read(dataBuffer);
    String strData = new String(dataBuffer);
    patExecContext.setProcessDataStringValue("/process_data/outStr",strData);
    The code is not tested, hence if you find any mistakes, correct and test the functionality.
    Nith

  • Can Media Encoder take an image sequence in the watch folder and turn it into a video file?

    I'm using OSX and Media Encoder 6 (from premier 6) and can't figure out how to make the watch folder take a .jpeg or .dpi sequence and turn it into a single video file.
    I tried copying all the stills into the watch folder, that made 60 individual video files (one for each image).
    I tried making a folder inside the watch folder, and copying all the images into it.. to which Media Encoder did nothing.
    What am I missing? Will Media Encoder take image sequences and render them out as a audio-less video for me?
    Thanks for any imput.

    Hi action_packed,
    This is from the documentation: http://helpx.adobe.com/media-encoder/using/add-items-encoding-queue.html
    Still Image Sequences are not supported as source footage through Watch Folders. If a set of still images is placed in the folder being watched, each individual still file will be added as a separate item to the Queue rather than than the entire sequence as a single piece of footage.
    Make a feature request for that here: http://adobe.ly/feature_request
    Thanks,
    Kevin

  • Watched folder stops working in cluster

    Hi.
    Have you ever seen this, when an XML file is picked up in the watched folder??
    2009-08-27 17:52:16,660 ERROR [STDERR] Aug 27, 2009 5:52:16 PM com.adobe.idp.jobmanager.util.JobManagerUtil getQueueConnectionFactory
    SEVERE: JobManager:getQueueConnectionFactory():Error:Could not dereference object
    2009-08-27 17:52:16,660 ERROR [com.adobe.idp.jobmanager.ejb.JobManagerBean] JobManager:createJob:error sending message:java.lang.RuntimeException: JobManager:getQueueConnectionFactory():Error:
    Windows 2003 Server + JBoss + LiveCycle 8.2.1 SP3
    Two machines in a cluster.
    Works fine in a non-clustered dev environment.  Ported the app to the cluster, changed the watch folder to one shared by both machines, and got this.
    Here is the watched folder:
    \\xxxfile01a-906\as_shared\livecycle.xxxx.com\shared\documents\LCLetters\
    And I know this file was written:
    \\xxxfile01a-906\as_shared\livecycle.xxxx.com\shared\documents\LCLetters\input\RAMMLetter. xml
    When the file is written, the above quoted errors are posted in server.log.
    After those errors appear, the "input" folder mentioned above becomes empty.
    In the test environment the watched folder was not a shared folder via UNC, but a local folder in C:  In the new clustered environment, where a shared folder must be used, I have not yet ever seen the watched folder work.  This is the first time I was able to get a file into that watched folder to try.  (In other words, it's not that watched folders were working in the cluster before, and have now stopped.  It's not that other watched folders are working in the cluster.  This is the first and only watched folder being used in the cluster.)
    Any ideas?

    SOLVED:
    The following note from a different forum explained and solved the problem:
    Your JBoss is not yet fully configured for LiveCycle 8.0.1.  There was a period of time when LiveCycle's documentation accidentally excluded the following configuration steps:
    Add the following XML for defining a couple of connection factories to %JBOSS_HOME%\server\all\deploy\jms\hajndi-jms-ds.xml
      <tx-connection-factory>
        <track-connection-by-tx>true</track-connection-by-tx>
        <jndi-name>adobe_JmsQueueXA</jndi-name>
        <xa-transaction/>
        <rar-name>jms-ra.rar</rar-name>
        <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</con nection-definition>
        <adapter-display-name>JMS Adapter</adapter-display-name>
        <config-property type="java.lang.String" name="SessionDefaultType">javax.jms.Topic</config-property>
        <security-domain-and-application>JmsXARealm</security-domain-and-application>
        <config-property type="java.lang.String" name="JmsProviderAdapterJNDI">java:/DefaultJMSProvider</config-property>
      </tx-connection-factory>
      <tx-connection-factory>
        <track-connection-by-tx>true</track-connection-by-tx>
        <jndi-name>adobe_JmsTopicXA</jndi-name>
        <xa-transaction/>
        <rar-name>jms-ra.rar</rar-name>
        <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</con nection-definition>
        <adapter-display-name>JMS Adapter</adapter-display-name>
        <config-property type="java.lang.String" name="SessionDefaultType">javax.jms.Topic</config-property>
        <security-domain-and-application>JmsXARealm</security-domain-and-application>
        <config-property type="java.lang.String" name="JmsProviderAdapterJNDI">java:/DefaultJMSProvider</config-property>
      </tx-connection-factory>

  • Bridge Watch Folder

    I'm beating my head against what I think should be a fairly simple problem:
    1. Bridge watches a folder for incoming files.
    2. When files are added to that folder, they get loaded into a Photoshop file as a layer stack.
    3. A Photoshop Action runs, doing some image adjustments, etc.
    4. The processed file is saved as an animated gif.
    I found a solution that looked promising here: https://forums.adobe.com/message/4826884#4826884. The first script adds a "Hot Folder" menu item to Bridge. When the hot folder is started, it is supposed to hand off an array of files to the second script, which does the work of opening the files and processing them in Photoshop. It seems like it should work, but I haven't been able to make it fire off that second script, and I can't for the life of me figure out where it's failing. It could be that I'm just not familiar enough with ExtendScript Toolkit to figure out how to debug it usefully.
    Any help would be greatly appreciated - pointers toward scripting resources, maybe a different approach to the issue that I may not have thought of - whatever.
    Simon

    The fact that the watch folder is not local to the AME machine may indeed factor in.The process is definitely more robust in a local scenario; network environments complicate matters in a number of ways. Can you run a test where you copy the same batch of files to a watch folder on the AME box?
    A few other questions:
    Is the "Auto-Encode Watch Folders"  option enabled (at the top right of the Queue panel)? And are all 350 files getting added to the AME queue?
    If Auto-Encode *is* enabled and some jobs are *not* getting added to the queue, then please try with Auto-Encode enabled.
    We're not suggesting this as a workaround but just to give us more insight into where things are failing.
    What are CPU and memory usage though the process, from the time you drop files into the watch folder until AME hangs? Are either getting maxed out?
    How big are the VOB files? How long does it take to copy all of them into the watch folder?
    I know of no way to disable the creation of media cache files.
    Thanks for bringing this issue to our attention and giving us an opportunity to troubleshoot it.
    Mark Mapes
    Premiere Pro/AME Sr. Quality Engineer

  • Start Process From Scanned Document In Watch Folder or Email

    Looking for a way for a office person to scan a document into a watch folder or email a scanned document to LCES2.
    Then from that scanned document a process is started and the user in workspace has a routing slip (pdf) and the scanned document in view.
    I can see how to start the process with a email or watch folder but how do I get the scanned document in as a attachment to the process routing slip?
    Somewhat new to LC and not seeing any demo's on this. Any help would be great.
    Thanks,
    John

    Hi Jasmin,
    I'm facing a problem with the watched folder files, they appear under the Attachment tab for the user, but with broken links, i.e. "The requested resource () is not available" error.
    what I did is simply create a new process with watched folder  start point, define a list-document variable as I/O and assign this variable to the user service?
    can you help
    Hussam

  • How to import FCP XML to FCPX?

    The only problems people seem to be having is importing FCP XML into Adobe or other third party software. I can't even import it from one computer with FCPX to another computer with FCPX!!
    The following error message occurs when I try to import the XML file;
    The document "project name.fcpxml" could not be opened. The location is not available.
    In fact I get the same error message when re importing the fcpxml file into the project that created it!
    Any help would be great. Thanks.

    I can now import the fcpxml from one computer to another HOWEVER I still have a big problem.
    The footage that I shot was 1280 x 720 at 50fps - so I can create a smooth slo mo in post. In my 'original' project, I am usiing a 1280 timeline with a 25fps base so that when I 'retime' and 'conform speed' I get exactly what I want - the 50fps shot playing back at 25fps, thus creating slow motion.
    When I export the xml and import it into another computer, there is a problem - The timeline is correct - 25fps 720p resolution HOWEVER the media that was previously 50fps 720p is now 25fps 1920p....
    How/why does this happen and how can it be fixed?
    Presumably it is xml import settings but I'm so far unable to achieve this...

  • Applying rights management through a watched folder

    Greetings -- I'm trying to apply rights management to a PDF through a watched folder. I've created a short-lived process that invokes the Rights management Apply Policy module and created a watched folder endpoint. When I drop a PDF file into the watched folder, however, the result ends up in the failure bin (after a very, very long delay). Here's the error from the resultant log file:
    Failure Time----Tue Mar 11 11:18:30 EDT 2008
    source location ---- Reason of failure is-----Failure to invoke the job Apply Policy
    Failure to invoke the job Apply Policy
    Invocation error.
    javax.jms.JMSException: Could not create a session: javax.resource.spi.CommException: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
    Could not create a session: javax.resource.spi.CommException: org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
    ALC-DSC-600-000: com.adobe.idp.dsc.provider.service.scheduler.impl.SchedulerRuntimeException: Failure to invoke the job Apply Policy
    at com.adobe.idp.dsc.provider.service.file.scan.impl.FileScanJobImpl.invokeJob(FileScanJobIm pl.java:323)
    Any ideas on how to fix this?

    I believe the issue is that the user that you named in the enpoint definition as the person who will execute the service has to be named in the policy. Add that user to your policy.

  • Distiller 8 crashing when trying to add watched folder

    *** Reposted from Distiller Server forum ***
    Hi,
    I am running Distiller 8.0 and am  having issues trying to add watched folders. Adding watched folders in  the past has generally been trouble free, and nothing a quick restart  won't solve at worst.
    However, Distiller is now crashing when I try to  add a new watched folder. An empty dialog box shows and then the app  quits. It also does this when going into the watched folder dialog and  cancelling rather than attempting to add a folder.
    PDFs are  still being successfully created, so there isn't a problem on that side.  There is one oddity though - a PDF file has made it onto the watched  folder list. It obviously shouldn't be there, and won't budge when  attempting to remove it.
    Has anyone come across anything like this before.  Or, crucially, does anyone know what might be going wrong?
    Here's a  screenshot (with some blanked out business info) of the dialog that  comes up. This is just after trying to add a watched folder, and just  before it quits/crashes.
    Thanks,
    Kurt

    Please repost in the Acrobat forum. This forum is for a server based version of Distiller, not the version of Distiller that comes with Acrobat.

  • AME CS5.5 - Would be nice if Watch Folder also understood TIFF Sequences

    Hi...
    Like the header says...
    Did you guys over at adobe forget to add TIFF and other sequences to Watchfolders.
    Doesn't work here.
    Trying to add a TIFF SEQ folder to AME as a direct Watch Folder will result in AME doing weird stuff and subjecting itself to me force quitting it
    A fix would be nice
    Thanks

    Agreed - I would also like it if Watch Folders in AME could recognize still image sequences of any supported format; unfortunately that currently doesn't work.  We didn't forget about this; it was a case of the amount of time required to engineer and test the functionality exceeded the amount of time we had available.  We hope to include this functionality for a future release.
    Also worth noting that Watch Folders don't support Premiere Pro or After Effects projects.  That's an entirely different problem, and much stickier since you would have to somehow identify which sequence or comp inside of the project you want AME to render.
    I've made a comment about these limitations on the AME Help page about importing files to the queue and watch folders.  (Note that you too can make comments on the Help pages.)  Hopefully that will be of assistance to people in the future who encounter the same problem.
    > Trying to add a TIFF SEQ folder to AME as a direct Watch Folder will result in AME doing weird stuff
    Can you be more specific about what weird behavior you saw?  If you put a still image sequence into a folder being watched, the expected result is that AME will add each individual still file to the queue.  If you put a long still sequence in there, that may take a long time.
    As always, filing a feature request about changes you'd like to see is helpful.  Each submission really does matter.
    -=TimK
    -=Adobe After Effects and Adobe Media Encoder QE

  • TS2521 I am unable to import FCP sequence/EDL/XML into COLOR. Please help

    I am unable to import FCP sequence/EDL/XML into COLOR. Please help

    Please stop reposting the same question. If you want to bump it, add some new information to your post - for example -
    What codecs are you working with?
    What version of FCP?
    What version of Color?
    What version of OSX?
    What computer?
    What error messages do you receive?
    What have you tried to address the issue?
    x

  • Add prproj sequences into AME, via scripting

    Hi,
    we're using CS4 and the "Watch Folder" feature would have been nice, if it worked on prproj files.
    I tried to see what happens during export with a Sysinternals tool named "process monitor" but the log is just too big to make sense of.
    How can I add a prproj sequence to AME (Media Encoder) from the command line, or via windows scripting host, or via APIs?
    Our projects usually have just one sequence, or it has a known name. Since prproj files are XML, we could even have our own heuristics in script code. All I need is a way to feed a sequence from a prproj into AME.
    Choosing a named preset from AME is okay. We could provide all encoding settings explicitly though, if that's required.
    We need this because we have dedicated encoding boxes on the network and we could push a project (including video and audio sources) into a shared directory for the encoding box to pick up. Right now, we have to physically be at the encoding box, opening the prproj and exporting the desired sequence. It'd be nice to be able to cut and edit somewhere else and just push the encode job over the network.
    Is there any way?

    AME has no trouble at all understanding PP project files, and uses them regularly to do it's job.  Just not via the Watch Folder.  Sequences have to be manually set up.
    Indeed! I should have added " Watch Feature"  to maintain clarity.
    ...AME cannot transcode a PP sequence from another machine.
    Yes it can; we've done it and it works great! But even if it didn't, automatically pushing files to another computer's local storage is trivial. In either case, you then have to manually load the project & sequence, which gets back to the OP issue I think.
    To crackwitz or anyone else who stumbles upon this, there may be a workaround. You may be able to write a script via extendscript in AE, and Dynamic Link to a PPro project (locally stored or otherwise), then render from AE. My trials indicate that AE renders our projects at 50% the speed of PPro/AME (a well-known issue). That said, the ability to offload the rendering to a non-editing machine is worth the tradeoff in our case (it may not be in all cases). There are additional things to consider as well, including encode setting inconsistencies between PPro/AME and AE. The part we have not tested is whether you can specifiy a sequence via extendscript. If not, this will not work. If we confirm one way or another, I'll post back.
    It'd be great if Adobe could kick it up a notch for customers that need greater levels of automation and work-flow efficiency with regards to rendering. However, these types of features have been a need for us for years, so I would encourage anyone interested not to wait on Adobe for this, and experiement with work-arounds, and share what you come up with!

  • Find and replace with multiple files and with a watch folder

    I am trying to create a watch folder that uses red_menace script to:
    1. Have a folder that receives multiple xml files that run the script one by one.
    2. then move the files to an output folder.
    I tried modifying the set TheFIle to choose file -- the original text file to:
    with multiple selections allowed
    But that doesn't seem to work. I know i'm missing a step. Any help is much appreciated!
    Thanks!
    The way i'd like to setup things is having an input folder on the desktop (or just have the application on the desktop and I can drag the files onto it), and let it do it's thing. Once it's done have it export the xml files into an output folder.
    Here's what i got so far:
    on open
    set TheFIle to choose file -- the original text file
    set TheFolder to ("Macintosh HD:Users:user1:Desktop:out") -- the folder for the output file
    set TheName to (GetUniqueName for TheFIle from TheFolder) -- the name for the output file
    set TheText to read TheFIle -- get the text to edit
    set Originals to {"KPCALDATE", "KPCALEVENT", "KPCALDAY", "KPCALBODY", "obituaries name", "" & return & "</cstyle></pstyle>" & return & "<pstyle name=\"obituaries text\"><cstyle>", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\" font=\"ADV AGBook-Medium 2\">", "<pstyle name=\"Recipe Ingredients\"><cstyle>", " .com", " .net", " .org", " .edu", "www .", "www. ", "Ho- nolulu", "<pstyle name=\"kicker 12\"><cstyle allcaps=\"1\">fashion news</cstyle><cstyle allcaps=\"1\">" & return & "</cstyle></pstyle>" & return & "", "<component name=\"Headline 1\" type=\"Headline\">" & return & "<header>" & return & "<field name=\"Component name\" type=\"string\" value=\"Headline 1\"/>" & return & "<field name=\"Component type\" type=\"popup\" value=\"Headline\"/>" & return & "</header>" & return & "<body>" & return & "<pstyle name=\"hed STANDARD 36\"><cstyle>", "<pstyle name=\"obituaries text\"><cstyle allcaps=\"1\">", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\">", "<pstyle name=\"tagline\"><cstyle>-", "-", "
    Per serving:", "<pstyle name=\"Titlebar - mini, red\"><cstyle allcaps=\"1\">NATION & World </cstyle><cstyle allcaps=\"1\">Report</cstyle><cstyle allcaps=\"1\">" & return & "</cstyle></pstyle>" & return & "", "</cstyle></pstyle>"} -- the terms that can be replaced
    set Replacements to {"subhed", "subhed", "subhed", "Normal", "obituaries text", ", ", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\" font=\"ADV AGBook-Medium 2\">", "<pstyle name=\"Recipe Ingredients\"><cstyle>
    ", ".com", ".net", ".org", ".edu", "www.", "www.", "Honolulu", "", "<component name=\"Headline1\" type=\"Headline\">" & return & "<header>" & return & "<field name=\"Component name\" type=\"string\" value=\"Headline1\"/>" & return & "<field name=\"Component type\" type=\"popup\" value=\"Headline\"/>" & return & "</header>" & return & "<body>" & return & "<pstyle name=\"hed STANDARD 27\"><cstyle>", "<pstyle name=\"obituaries text\"><cstyle allcaps=\"1\">", "<pstyle name=\"obituaries text\"><cstyle name=\"Graphics Bold leadin\">", "<pstyle name=\"tagline\"><cstyle>—", " —", "
    Per serving:", "","" & return & "</cstyle></pstyle>"} -- the replacement terms
    repeat with AnItem from 1 to count Originals
    set TheText to (replaceText of TheText from (item AnItem of Originals) to (item AnItem of Replacements))
    end repeat
    try -- write a new output file
    tell application "Finder" to make new file at TheFolder with properties {name:TheName}
    set OpenFile to open for access (result as alias) with write permission
    write TheText to OpenFile starting at eof
    close access OpenFile
    on error errmess
    try
    log errmess
    close access OpenFile
    end try
    end try
    end open
    to GetUniqueName for SomeFile from SomeFolder
    check if SomeFile exists in SomeFolder, creating a new unique name if needed
    parameters - SomeFile [mixed]: a source file path
    SomeFolder [mixed]: a folder to check
    returns [text]: a unique file name and extension
    set {Counter, Divider} to {"00", "_"}
    -- get the name and extension
    set {name:TheName, name extension:TheExtension} to info for file (SomeFile as text)
    if TheExtension is missing value then set TheExtension to ""
    set TheName to text 1 thru -((count TheExtension) + 2) of TheName
    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 text 2 thru -1 of ((100 + Counter + 1) as text) -- leading zero
    set NewName to TheName & Divider & Counter & "." & TheExtension
    end repeat
    end tell
    return NewName
    end GetUniqueName
    to EditItems of SomeItems given Title:TheTitle, Prompt:ThePrompt
    displays a dialog for multiple item edit (note that a return is used between each edit item)
    for each of the items in SomeItems, a line containing it's text is placed in the edit box
    the number of items returned are padded or truncated to match the number of items in SomeItems
    parameters - SomeItems [list]: a list of text items to edit
    TheTitle [boolean/text]: use a default or the given dialog title
    ThePrompt [boolean/text]: use a default or the given prompt text
    returns [list]: a list of the edited items, or {} if error
    set {TheItems, TheInput, TheCount} to {{}, {}, (count SomeItems)}
    if TheCount is less than 1 then return {} -- error
    if ThePrompt is in {true, false} then -- "with" or "without" Prompt
    if ThePrompt then
    set ThePrompt to "Edit the following items:" & return -- default
    else
    set ThePrompt to ""
    end if
    else -- fix up the given prompt a little
    set ThePrompt to ThePrompt & return
    end if
    if TheTitle is in {true, false} then if TheTitle then -- "with" or "without" Title
    set TheTitle to "Multiple Edit Dialog" -- default
    else
    set TheTitle to ""
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SomeItems, AppleScript's text item delimiters} to {SomeItems as text, TempTID}
    set TheInput to paragraphs of text returned of (display dialog ThePrompt with title TheTitle default answer SomeItems)
    repeat with AnItem from 1 to TheCount -- pad/truncate entered items
    try
    set the end of TheItems to (item AnItem of TheInput)
    on error
    set the end of TheItems to ""
    end try
    end repeat
    return TheItems
    end EditItems
    to replaceText of SomeText from OldItem to NewItem
    replace all occurances of OldItem with NewItem
    parameters - SomeText [text]: the text containing the item(s) to change
    OldItem [text]: the item to be replaced
    NewItem [text]: the item to replace with
    returns [text]: the text with the item(s) replaced
    set SomeText to SomeText as Unicode text -- TID's are case insensitive with Unicode text
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, OldItem}
    set {ItemList, AppleScript's text item delimiters} to {text items of SomeText, NewItem}
    set {SomeText, AppleScript's text item delimiters} to {ItemList as text, TempTID}
    return SomeText
    end replaceText
    Message was edited by: gamebreakers

    When you use the open or adding folder items to handlers, you need to add the parameters for the file items passed to them.
    I'll go ahead and post the applet/droplet version of my original script from the previous topic for reference:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #FFEE80;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    -- search and replace multiple items applet/droplet/folder action
    -- the terms to replace - edit as needed
    property EditableItems : {¬
    "one", ¬
    "two", ¬
    "three", ¬
    "four", ¬
    "five", ¬
    "six", ¬
    "seven", ¬
    "eight", ¬
    "nine", ¬
    "ten", ¬
    "eleven", ¬
    "twelve", ¬
    "thirteen", ¬
    "fourteen", ¬
    "fifteen", ¬
    "sixteen", ¬
    "seventeen", ¬
    "eighteen", ¬
    "nineteen", ¬
    "twenty"}
    -- the folder for the output file(s) - change as needed
    property TheFolder : (path to desktop)
    property LastEditItems : EditableItems
    on run
    the applet/droplet was double-clicked
    open (choose file with multiple selections allowed)
    end run
    on open TheItems
    items were dropped onto the applet/droplet
    parameters - TheItems [list]: a list of the items (aliases) dropped
    returns nothing
    repeat with AnItem in TheItems
    ReplaceMultipleItems from AnItem
    end repeat
    end open
    on adding folder items to this_folder after receiving these_items
    folder action - items were added to a folder
    parameters - this_folder [alias]: the folder added to
    these_items [list]: a list if items (aliases) added
    returns nothing
    repeat with AnItem in these_items
    ReplaceMultipleItems from AnItem
    end repeat
    end adding folder items to
    to ReplaceMultipleItems from SomeFile
    replace multiple text items in SomeFile
    parameters - SomeFile [alias]: the file to replace items in
    returns nothing
    set TheName to (GetUniqueName for SomeFile from TheFolder) -- the name for the output file
    set TheText to read SomeFile -- get the text to edit
    set Originals to (choose from list EditableItems default items LastEditItems with prompt "Select the terms to replace:" with multiple selections allowed) -- the specific terms to replace
    set LastEditItems to Originals
    set Replacements to (EditItems of Originals with Title given Prompt:"Edit the following replacement terms:") -- the replacement terms
    repeat with AnItem from 1 to count Originals
    set TheText to (ReplaceText of TheText from (item AnItem of Originals) to (item AnItem of Replacements))
    end repeat
    try -- write a new output file
    tell application "Finder" to make new file at TheFolder with properties {name:TheName}
    set OpenFile to open for access (result as alias) with write permission
    write TheText to OpenFile starting at eof
    close access OpenFile
    on error errmess
    try
    log errmess
    close access OpenFile
    end try
    end try
    end ReplaceMultipleItems
    to GetUniqueName for SomeFile from SomeFolder
    check if SomeFile exists in SomeFolder, creating a new unique name if needed
    parameters - SomeFile [mixed]: a source file path
    SomeFolder [mixed]: a folder to check
    returns [text]: a unique file name and extension
    set {Counter, Divider} to {"00", "_"}
    -- get the name and extension
    set {name:TheName, name extension:TheExtension} to info for file (SomeFile as text)
    if TheExtension is in {missing value, ""} then
    set TheExtension to ""
    else
    set TheExtension to "." & TheExtension
    end if
    set {NewName, TheExtension} to {TheName, (ChangeCase of TheExtension to "upper")}
    set TheName to text 1 thru -((count TheExtension) + 1) of TheName
    tell application "System Events" to tell (get name of files of folder (SomeFolder as text))
    repeat while it contains NewName
    set Counter to text 2 thru -1 of ((100 + Counter + 1) as text) -- leading zero
    set NewName to TheName & Divider & Counter & TheExtension
    end repeat
    end tell
    return NewName
    end GetUniqueName
    to EditItems of SomeItems given Title:TheTitle, Prompt:ThePrompt
    displays a dialog for multiple item edit (note that a return is used between each edit item)
      for each of the items in SomeItems, a line containing it's text is placed in the edit box
        the number of items returned are padded or truncated to match the number of items in SomeItems
    parameters - SomeItems [list]: a list of text items to edit
    TheTitle [boolean/text]: use a default or the given dialog title
    ThePrompt [boolean/text]: use a default or the given prompt text
    returns [list]: a list of the edited items, or {} if error
    set {TheItems, TheInput, TheCount} to {{}, {}, (count SomeItems)}
    if TheCount is less than 1 then return {} -- error
    if ThePrompt is in {true, false} then -- "with" or "without" Prompt
    if ThePrompt then
    set ThePrompt to "Edit the following items:" & return -- default
    else
    set ThePrompt to ""
    end if
    else -- fix up the given prompt a little
    set ThePrompt to ThePrompt & return
    end if
    if TheTitle is in {true, false} then if TheTitle then -- "with" or "without" Title
    set TheTitle to "Multiple Edit Dialog" -- default
    else
    set TheTitle to ""
    end if
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {SomeItems, AppleScript's text item delimiters} to {SomeItems as text, TempTID}
    set TheInput to paragraphs of text returned of (display dialog ThePrompt with title TheTitle default answer SomeItems)
    repeat with AnItem from 1 to TheCount -- pad/truncate entered items
    try
    set the end of TheItems to (item AnItem of TheInput)
    on error
    set the end of TheItems to ""
    end try
    end repeat
    return TheItems
    end EditItems
    to ReplaceText of SomeText from OldItem to NewItem
    replace all occurances of OldItem with NewItem
    parameters - SomeText [text]: the text containing the item(s) to change
    OldItem [text]: the item to be replaced
    NewItem [text]: the item to replace with
    returns [text]: the text with the item(s) replaced
    set SomeText to SomeText as text
    if SomeText contains OldItem then
    set {TempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, OldItem}
    try
    set {ItemList, AppleScript's text item delimiters} to {text items of SomeText, NewItem}
    set {SomeText, AppleScript's text item delimiters} to {ItemList as text, TempTID}
    on error ErrorMessage number ErrorNumber -- oops
    set AppleScript's text item delimiters to TempTID
    error ErrorMessage number ErrorNumber
    end try
    end if
    return SomeText
    end ReplaceText
    to ChangeCase of SomeText to CaseType
    changes the case or capitalization of SomeText to the specified CaseType using Python
    parameters - SomeText [text]: the text to change
    CaseType [text]: the type of case desired:
    "upper" = all uppercase text
    "lower" = all lowercase text
    "title" = uppercase character at start of each word, otherwise lowercase
    "capitalize" = capitalize the first character of the text, otherwise lowercase
    returns [text]: the changed text 
    set SomeText to SomeText as text
    if CaseType is not in {"upper", "lower", "title", "capitalize"} then return SomeText
    return (do shell script "/usr/bin/python -c \"import sys; print unicode(sys.argv[1], 'utf8')." & CaseType & "().encode('utf8')\" " & quoted form of SomeText)
    end ChangeCase
    </pre>
    Edit: how does the choose from list dialog handle those big strings? I'm guessing not very well - is that why you avoided using them?
    Message was edited by: red_menace

  • Watch Folder doesn't work with cineform codec - help needed

    My computer is a:
    2x Intel Xeon Processor E5-2650 (2000 MHz, 20MB);
    16x Kingston DIMM 8 GB PC3-8500 ECC Reg.;
    PNY Quadro 4000 with 2048 MB GDDR5-RAM;
    2x 2000 GB Western Digital RE4 (7200 UPM/S-ATA II) as a RAID I
    1x 120 GB OCZ Vertex 3 SSD
    1x 240 GB OCZ Vertex 3 SSD (system disk)
    Tyan S7050GM4NR motherboard
    Windows 7
    with the actual version of media encoder cc and as codec I use cineform GoProStudioPremium-2.0.1.319
    I have about 2000 files to be converted from cineform avi with 4k resolution to cineform avi with 1920x1080.
    All files are pre-keyed and have rgb+alpha (4:4:4:4).
    When I add the folder to the "watch folder"-list then it encodes the first few clips and then I get the error message:
    the AMEEncodingErrorLog shows:
    - Encoding Time: 00:00:00
    03/26/2014 12:27:49 AM : Encoding Failed
    A low-level exception occurred in: CineForm AVI File (Exporter)
    A low-level exception occurred in: CineForm AVI File (Exporter)
    Export Error
    Error compiling movie.
    Unknown error.
    My cineform settings are:
    Does anybody know how to solve the problem or any workaraound?
    What I already tried is to drag and drop a "few" files, for example 50 clips manually into the ame. What then happens is that the media encoder crashes completely.
    I've got a client that needs all those files converted until the end of this week, so I would be really happy if anybody could help me.
    Or has anyone an idea for another encoder I could use? I also tried it with telestream episode but it does not support avi container with cinepro-codec...
    VirtualDub doesn't support alpha channels, so which program could work?
    Best regards,
    Wolfram

    Hello Nariman,
    thanks for your answer
    1. Exactly what version does it say you have?
    Version 7.2.0.43
    2. what happens if you open other types of files like .MOV or WMV and convert to Cineform?
    I tested it with mov- and wmv-files:
    No, same problem: [..\..\Src\LegacyTime.cpp-101]
    3. what happens if you take your Cineform files and convert them to other formats like H264?
    This works fine.
    4. How large or small are your files?
    The size of the files is between 70MB and 300MB, but 90 % of them are between 90MB and 130 MB.
    5  Are these stills or movies ?  How many minutes?
    All items are pre-keyed movies (which I exported from after effects via media encoder to the 4k-cineform files). The length of all files is between 2 und 5 seconds.
    6. Are you using 3rd party plugin to import and export Cineform?
    I have got the cineform studio premium codec installed. It shows up directly in the media encoder options. So I don't use anything else than media encoder and the cineform codec

Maybe you are looking for

  • SIlly NTSC monitor question

    This may be a silly question but, When viewing footage on an NTSC monitor, my footage looks quite different than it does in FCP on the computer screen. If I do color correction just based on the NTSC monitor for DVD output, will that DVD look the sam

  • How to add three columns under a column of Column Structure in BEx Query ??

    Hi all,     I have created a Structure for Taxes (with 10 rows) under Rows and another Structure for Company under Columns and it has 3 columns like Company A, B & C. Now I want to have three columns (Actual, Forecast & Total) under each company A, B

  • BPC 10.0 NW - Transport of cubes

    Hej gurus, I want to know what happens, if we delete a cube in the production environment and transport the cube from DEV to PRD. The technical name of the cube in DEV is not equal to the technical name of the cube in PRD. Will BPC be able to adjust

  • Horizontal scroll bar in selectOneMenu tag

    Hi, I am using selectOneMenu tag to show the data. The data size is larger than the size of selectOneMenu tag. Inspite of increasing the size of tag, I want to add a horizontal scroll bar. Can someone please suggest me, how to achieve this? Thanks in

  • Procedure Overloading on 10g

    Hi. We migrated from Oracle 9.2.0.7 and currently using Oracle 10.2.0.3.0 (development server). We have the following existing package: PACKAGE PKG_ADMIN FUNCTION A (p_emp_id IN NUMBER, p_emp_type IN NUMBER) BEGIN RETURN ('ABC'); END; FUNCTION A (p_e