AppleScript watched folder

I need of a "watched folder" that will email a URL of any new files for me automatically. I have a folder on a Snow Leopard server that is in the Web Server’s Document’s folder. People drop QuickTime Movie files in this folder and then I send out an email with the URL to the file. Do you know of a way to automate this process for each new file dropped into the folder? The email would have this link: http://3.156.4.93/len/filename. The people would recieve the email and click on the link and the QuickTime movie opens up in their web browser.

This sounds like a simple Folder Action script. Indeed, Apple provide several samples that trigger on a file being added to a folder - check /Library/Scripts/Folder Action Scripts for starters.
One trickier element is that most AppleScript examples of sending emails usually hinge around Mail.app, but if this is running on a server then Mail.app might not be running, so you may have to look at alternative options, such as generating mail via a command line:
on adding folder items to my_folder after receiving the_files
          repeat with each_file in the_files
  -- work out the file name
                    set filename to name of (info for each_file)
  -- build the URL
                    set fileURL to "http://3.156.4.93/len/" & filename
  -- here's your message text
                    set msg to "A new movie has been uploaded, click " & fileURL & " to view it."
  -- save that to a temp file
                    do shell script "/bin/echo '" & msg & "' > /var/tmp/msgTxt"
  -- setup the recipient
                    set rcpt to "[email protected]"
  -- send it via the command line
                    do shell script "/usr/bin/mail -s 'New Movie' " & rcpt & " < /var/tmp/msgTxt"
          end repeat
end adding folder items to
Save this as a folder action script, then you can assign it to your upload directory via the Finder on the server.
The alternative, non-AppleScript option, is to use Launchd with a WatchPath defined. This will trigger a shell script whenever a directory changes. Without a GUI running on the server, though, you're still restricted to command-line driven mail.

Similar Messages

  • Applescript watched folder using label colour as trigger

    Hi can anyone with good applescript knowledge please let me know if this can be done?
    I have Folder A and Folder B
    I want only items in Folder A that are "Labeled Blue" to be Moved and compressed into Folder B (on the same drive).
    Applying the label command and colouring "Blue" would be the trigger.
    Any help in how to do this would be very welcome, thanks in advance.

    Many thanks for your feedback.
    In order to compress the moved files, the script might be modified as follows:
    set A to POSIX file "/Users/pierre/Desktop/A"
    set B to POSIX file "/Users/pierre/Desktop/B"
    tell application "Finder"
        activate
        move (items of folder A whose label index is 4) to folder B
        reveal result
    end tell
    tell application "System Events" to tell process "Finder"
        click (menu item 1 of menu 1 of menu bar item "File" of menu bar 1 whose name begins with "Compress")
    end tell
    Since the last part of the above script uses GUI Scripting, you must enable the Accessibility Frameworks by clicking the checkbox labeled "Enable access for assistive devices" in the Universal Access System Preference pane.

  • 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

  • InDesign automation using watch folder

    Hi InDesign experts,
    Can we use InDesign desktop version (CS5) for a remote batch processing work without any manual intervention?
    For example, a script automatically picksup the input file and create pages automatically using watch folder. Is this allowed in desktop license agreement.
    Thanks in advance.

    Marc,
    Power Switch is available for both platforms. Trial period is 30 days.
    Here are some topics I recommend you to read at start in the User Guide: JavaScript for applications,
    AppleScript for applications and Adobe InDesign. Here are some samples (see Javascripts for CS applications).
    If you, or somebody else is interested, I can post the script I wrote.
    Here are a few short tips to get you started:
    Don’t confuse Javascript/AppleScript for CS applications with Internal scripting in PowerSwitch (scripts written in SwitchScripter). You need the former: the script attached to an InDesign/Photoshop/Illustrator/Acrobat/Quark/etc configurator. You drop a configurator into the flow, attach In and Out folders and a script to it.
    You can add up to 5 arguments which are simple strings that can be passed from the Properties panel in PS to the script.
    Attach the script to Command property. Don't use Open and Save in the script -- PS handles them on its own (Open and Save as parameters)
    Use $doc in the script instead of activeDocument
    If you had any questions, I would gladly answer them. Probably we could even start a new thread on the Power Switch topic.
    Kasyan

  • Javascript Watch Folder in Mac?

    Hi Scripters,
    Need guide lines about Watch folder in mac platform for the InDesign automation.
    Thanks
    Karpanai

    Both of those posted links relate to 'mouse position'… I think Harbs posted them in the wrong thread…? What you have asked for does NOT exist… AppleScript can 'watch' a folder and has events such as 'on adding items' and 'on removing items' these events can trigger your script. JavaScript with the ESTK does not provide system level events for objects like File or Folder. You could create a script that is triggered by an AppleScript outer wrapper by using app.doScript()… The closest the CS Suite has is Bridge's scheduleTask()
    Personally I find AppleScript's 'Folder Action Scripts' tend to be a little flakey…

  • Excel save as pdf hangs when launched through a watch folder

    Hi there,
    I've configured a watch folder to launch a batch file which launch a .exe file I've written in C++
    In this application I launch Excel which open a .XLS document which contains macros.
    At the end of the computations there is a macro which save as pdf.
    At this point everything hangs and I have to cancel the job I've created for the watch folder.
    If I disable the watch folder and I place the starting file inside the watch folder
    and I manually launch the .bat file (which usually is launched by the watch folder) everything works perfectly.
    I really really hope there will be someone here coming with a solution for me.
    By the way on the windows forum I've got a very disappointing answer where they stated it was probably a fault of my application.
    Well fortunately that was not the problem because
    I can reproduce the problem even removing my application from the equation so now we have cleared
    the issue is not casued by my application.
    So if you want to try it yourself just follow the steps below:
    1) create an excel document so that after you open it it automatically run a save as pdf operation and close excel. (let's call this document "PRINT_TEST.xls")
    2) create a batch file named "Excel_launcher.bat" and write the command
    ""C:\Program Files\Microsoft Office 15\root\office15\EXCEL.EXE" "C:\teststampapdf\PRINT_TEST.xls""
    3) Now create a watch folder job that execute that batch file.
    something like "C:\watchfolderX\Excel_launcher.bat"
    4) now create a watch folder that uses that job and for file filter use "*.txt" enable it and start it
    5) now launch manually the batch file and you'll see that it print the pdf and closes itself
    6) drop a txt file inside the watch folder you've created and you'll see it hangs at the save as pdf operation.
    This is something that have to be fixed and it's due to excel.
    I can launch and save documents with all the application I want but excel so that's the problem.
    Please take a look and keep me updated I badly need to find a solution for this issue.
    THANK YOU in advance,
    Davide

    Hi Davide,
    This is no the right forum for your issue. I think you can consult this issue on some Excel end-user related forum.
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do I determine the name of a file from a watched folder

    I would like to generate a log to track the names and outcomes of files processed from a watched folder.  I don't see a way to access the name of the file from within the process.  I have a variable "inPDF" which is data type "document" and "outResult" which is type "xml" but I don't see a way to access the file name (or path) of the "inPDF" "document" object.  Is there a way to access the file name and path?

    Thank you, this sounds promising.
    Where can I find documentation describing the attributes that can be retrieved using the getDocumentAttribute function?  Also, where can I find a complete reference on the Document object?
    Best Regards,
    Noam

  • 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

  • Problem with "watch folder" and Windows 7

    I have just switched to Windows 7 and Elements 9 - so far things are working quite well, but I am having a problem with "Watch folder"  It is watching my odf folder "My Pictures" but all my new photos are going into Libraries/Pictures and PSE9 won't let me add that to the watch folder section.  I am afraid that if I ask PSE9 to Get Photos and Videos / From Files and folders I may get a whole buch of duplicates in my Organizer.
    Any help would be appreciated.

    Thank you - I followed your directions
    and found that I had already tagged it to watch, but hadn't realized that it was tagging both the old and the new.  Big learning curve for me.

  • Any Tutorial / Sample to create Single PDF from multiple source files using PDF assembler in a watched folder process.

    Any Tutorial / Sample to create Single PDF from multiple source files using PDF assembler in a watched folder process. I have a client application which will prepare number of source files and some meta data information (in .XML) which will be used in header/footer. Is it possible to put a run time generated DDX file in the watch folder and use it in Process. If possible how can I pass the file names in the DDX. Any sample Process will be very helpful.

    If possible, make use of Assembler API in your client application instead of doing this using watched folder. Here are the Assembler samples :  LiveCycle ES2.5 * Programming with LiveCycle ES2.5
    Watched folder can accept zip files (sample : Configuring a watched folder to handle multiple input files and write results to a single folder | Adobe LiveCycle Blog ). You can also use execute script to create the DDX at runtime : LiveCycle ES2 * Application Development Using LiveCycle Workbench ES2
    Thanks
    Wasil

  • Get filename from Watched folder start point

    I have a watched folder as a start point and I can use the
    symbols %F and %E in order to save the output documents in the Result folder.
    This is easy.
    What I cannot do, is getting in a string variable the same filename in order to use it within the Process:
    Is it possible?
    I would like to exploit this filename to discriminate the activities that the file have to make...
    Thanks you as usual!

    thank you Jasmin, your answer is correct and now it works!
    only I don't understand why my way didn't work...
    Instead of a setValue, I used directly a INSERT SQL activity with getDocAttribute(/process_data/@docXML, "basename") as parameter: as is, it didn't work!
    As you suggest, if I put a setValue between the Watched folder startpoint and the INSERT SQL activity (now with the populated string as parameter), it works...
    Bah!
    Thank you again!
    Fabio

  • 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

  • Adobe photoshop elements 13 Watch folder is not working

        I am getting a "Watch Folder Service" warning box.
    "Please start the Adobe's Active File monitor service from Service manager (Control Panel -> Adminstration Tools -> Service)"
    Looks like the “Adobe Active file Monitor V13” is missing.
        I need help

    Have you checked your services panel to see what is running and what is not running?  If this particular service isn't running then you can right-click on the column for that service and change it to Automatic as shown in the picture attached here:
    The above picture is TAKEN IN Windows 7 so if you are on a Mac then it might look different from the picture I have posted here.

  • Watch Folder in Adobe Media Encoder CS3

    Hello,
    We are currently working on a project to automate some video encoding. Files uploaded to a server should get automatically converted into a specific format. (Unfortunately) we only have the CS3 to work with.
    We couldn't find the "watch folder function" (like in CS5, CS6) in the CS3 AME (since it is not even an own application, but built into Premiere/AE?). Does this AME version even support the function? Is there any other way we could solve the problem?
    Thanks in advance,
    - Marc

    This functionality is not in the CS3 version of the application.

  • Problem with Watched Folder endpoint

    Hi,
    We have a problem with a watched folder endpoint. The watched folder is set in a directory in a linux server. The directory then is mapped to a windows directory where files arrive from time to time. Everything works fine until the watched folder service stops for no particular reason. After that we need to restart the service from the admin UI console.
    I found in another post something related to the MySql database losing connection with livecycle after some inactivity, but I'm not sure if this is our case or even how to solve the problem.
    Here's what we found in the log
    2010-11-11 17:10:31,890 INFO  [com.adobe.idp.dsc.provider.service.file.write.impl.FileResultHandlerImpl] FileResultHandlerImpl ----- preserved- source ----/data/livecycle/lc_wrk/edi/stage/Wx130df02e731a9c7b14738905/C0158_208.dat--- to ---/data/livecycle/lc_wrk/edi/preserve/ /C0158_208.dat
    2010-11-11 20:39:46,366 INFO  [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Handling 1 trigger(s) that missed their scheduled fire-time.
    2010-11-11 20:40:22,056 ERROR [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Error retrieving job, setting trigger state to ERROR.
    org.quartz.JobPersistenceException: Couldn't retrieve job: Prepared statement needs to be re-prepared [See nested exception: java.sql.SQLException: Prepared statement needs to be re-prepared]
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1338)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2789)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$37.execute(JobStoreSupport.java:2757)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.ja va:3662)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2751)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:313)
    Caused by: java.sql.SQLException: Prepared statement needs to be re-prepared
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
    at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1124)
    at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:676)
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
    at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeQuery(CachedPreparedStatem ent.java:90)
    at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStat ement.java:255)
    at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectJobListeners(StdJDBCDelegate.java:843)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1319)
    ... 5 more
    2010-11-11 20:40:22,061 ERROR [org.quartz.core.ErrorLogger] An error occured while firing trigger 'WatchedFolder.WatchedFolder:1107'
    org.quartz.JobPersistenceException: Couldn't retrieve job: Prepared statement needs to be re-prepared [See nested exception: java.sql.SQLException: Prepared statement needs to be re-prepared]
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1338)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2789)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$37.execute(JobStoreSupport.java:2757)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.ja va:3662)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggerFired(JobStoreSupport.java:2751)
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:313)
    Caused by: java.sql.SQLException: Prepared statement needs to be re-prepared
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
    at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1124)
    at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:676)
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1030)
    at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeQuery(CachedPreparedStatem ent.java:90)
    at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeQuery(WrappedPreparedStat ement.java:255)
    at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectJobListeners(StdJDBCDelegate.java:843)
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveJob(JobStoreSupport.java:1319)
    ... 5 more
    2010-11-11 20:56:46,550 INFO  [com.adobe.idp.scheduler.jobstore.DSCJobStoreTX] Handling 1 trigger(s) that missed their scheduled fire-time.
    thanks

    Originally Posted by bjbradleyUSC
    Is there a problem with running the ZCM client and the Endpoint client on the same machine?? I am having problems getting both of them to install on a single machine.
    If I install the ZCM Client, it will pull down the policies and work correctly. Then I try to install Endpoint and it will not finish up it's checkin procedure and it will not get the policies set in place for it.
    Otherwise, I'll start with Endpoint on a fresh machine install it and it works great pulling down the policies. But the ZCM doesn't seem to pull down the policies correctly?
    Just wondering if this was known problem or is there something I am not doing correctly...
    Thanks
    BJ Bradley
    This is issue that you are seeing is just for the client, correct? The ZESM server and ZCM server are on separate machines, correct?

Maybe you are looking for

  • Unable to call from my office desk

    Hi Team, I have got India Unlimited Subscription. I have registered 4 numbers out of 5 and on of its my office desk phone. Am unable to use/dial the "skype to go numbers" from that Cisco (Office desk) phone. Pls advice in this regard

  • Inspection lot without batch no.

    Hi For 03 inspection type, inspection lot is creating without batch number, while doing UD it is asking for batch number. Client will give the batch number only at GR. Im unable to clear the lot. Please advise, how to create a inspection lot without

  • Errors when importing 10.2.0.4  Solaris xml schema into 11g Linux

    We are migrating our database from 10g on Solaris to 11g on Linux. Used expdt for full DB but getting this error - (ORA-39139: Data Pump does not support XMLSchema objects. TABLE_DATA:"SPRUBATCH"."ACCNT_XML_STG_50" will be skipped.) for the schema co

  • After Effects Autoscroll - Vertical Animation Preset Issue

    Hi After Effects Community, I am hoping someone can assist me with an issue I have been unable to work out when applying the Autoscroll Vertical Animation preset in After Effects CC. I have already spent ages working way through the forums and googli

  • Discoverer Workbooks Scheduling

    Hi All, When a workbook is scheduled in Discoverer, does it save the output automatically? If so, will the output be saved to my local machine or to the Database. I have a requirement, where i need to publish the output of the scheduled workbooks to