Need to spawn multiple Automator app threads

I have an AppleScript that runs on a folder action when files are dropped in.
Each item triggers the same Automator app that FTPs the file.
Problem arises when the files come in faster than the Automator app finishes each FTP job, so some are skipped. If i could have the AppleScript somehow spawn multiple Automator app threads, this would be solved.
How would you go about solving it (sorry, can't slow down the incoming files)?
  Mac OS X (10.4.7)  

anyone?

Similar Messages

  • Spawning multiple threads ?

    Hi,
              In our application, the content of the main page is being
              retrieved from different databases. All the requests originiate from
              one JSP to different databases to retrieve the info. As the JSP
              processes each of the request sequentailly, there is considerable delay
              before the contents are displayed to the user.
              What I want to acheive is spawn multiple threads and display the content
              to the user in fractions as each thread returns. For eaxmple, if the
              user has subscribed to three news servers.. I want to be able to
              display the news from first server to the user without waiting to
              recieve response from the other two servers.
              What is the best approach to follow for such requirements ?? Any
              thoughts on this would be highly appreciated.
              Thanks,
              Sam
              

    I think you may need to spawn it into HTML frame. Each frame will perform
              and download independently.
              Is it what you need ?
              Siros
              "sam ernie" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              >
              > In our application, the content of the main page is being
              > retrieved from different databases. All the requests originiate from
              > one JSP to different databases to retrieve the info. As the JSP
              > processes each of the request sequentailly, there is considerable delay
              > before the contents are displayed to the user.
              >
              > What I want to acheive is spawn multiple threads and display the content
              > to the user in fractions as each thread returns. For eaxmple, if the
              > user has subscribed to three news servers.. I want to be able to
              > display the news from first server to the user without waiting to
              > recieve response from the other two servers.
              >
              > What is the best approach to follow for such requirements ?? Any
              > thoughts on this would be highly appreciated.
              >
              > Thanks,
              >
              > Sam
              >
              

  • Servlet spawning multiple threads causes server to freeze PC

    I'm attempting to write a servlet which, upon receipt of a particular GET request, spawns a thread to do various work which can then be queried by a different GET request. A third type of GET request stops a specified thread.
    This is working fine, except that I can only seem to have spawned one thread at a time. When I spawn another thread, my entire PC stops responding (even Windows Task Manager becomes so sluggish that I cannot kill the server) , and I have to do a hard reset of my PC. I'm using Sun Java System Application Server. The server logs do not contain any errors. I've tried the NetBeans debugger a bit, and it seems to happen when I call the start() method of the Thread.
    This is my first experience with servlets, as well as my first experience with Sun Java System Application Server. I'm also not a Java expert by any means. I'm sure I'm doing something stupid, but I haven't a clue what.
    I can post my code if necessary, but does anyone have any idea what could be causing the server to stop responding just because a servlet spawns two threads? Should I post my code?
    Sorry if this is a n00b question. Thanks in advance.

    I think you may need to spawn it into HTML frame. Each frame will perform
              and download independently.
              Is it what you need ?
              Siros
              "sam ernie" <[email protected]> wrote in message
              news:[email protected]..
              > Hi,
              >
              > In our application, the content of the main page is being
              > retrieved from different databases. All the requests originiate from
              > one JSP to different databases to retrieve the info. As the JSP
              > processes each of the request sequentailly, there is considerable delay
              > before the contents are displayed to the user.
              >
              > What I want to acheive is spawn multiple threads and display the content
              > to the user in fractions as each thread returns. For eaxmple, if the
              > user has subscribed to three news servers.. I want to be able to
              > display the news from first server to the user without waiting to
              > recieve response from the other two servers.
              >
              > What is the best approach to follow for such requirements ?? Any
              > thoughts on this would be highly appreciated.
              >
              > Thanks,
              >
              > Sam
              >
              

  • How to apply multiple automator workflows to one file

    Hi everyone,
    I've set up a few workflow applications to automate the process of making packshots from PDF files. The way those roughly work is they create a temporary copy in a folder, open a Photoshop droplet that executes all the actions on the file, and then save the finished product in a "finished" folder.
    However, we frequently need to deliver multiple packshots made from the same file. I was asked to make one automator app that allowed us to drop the PDF version on it, resulting in the multiple types of packshots in the "finished" folder, together with the original PDF.
    The way I have this set up right now is as follows:
    1) Copy the original PDF file to the "finished" folder
    2) Execute the first automator app
    3) Execute the second automator app
    This seems simple enough, and does work in 10.6.8. When I try it on a different computer in our studio though, with 10.7 installed, I get various errors:
    - Sometimes it says an error occured within one of the automator apps, while the app works fine when running it seperately (on all computers).
    - Sometimes it says something like "An error occurred while converting the data" when moving on from the first application to the second application
    - Sometimes I'll get an error message in the log, saying:
    *** -[_NSArrayl objectAtIndex:]: index 0 beyond bounds for empty array
    What I got from this is that it's actually not getting the right input it requires (or not getting any input, since it's an empty array). However, the previous task is set to "return the task input" (our systems are Dutch so excuse me for any discrepancies in translations please), and the resulting output that I get seems to be what I want the next automator application to use. Below is a screenshot of the error message:
    What I've tried:
    - I read somewhere that the newer versions of Automator require the action "Retrieve selected finder items" between them. I've tried using this in various ways (between all other actions/tasks, only before the second application to be run and before both applications to be run), but with no success. The problem I have with these is that, during the applications, it moves the files around, thus apparently selecting those folders as well.
    - Building an entirely new workflow on the newer system
    - Using "Start application" instead of "Execute Automator workflow". This results in Automator saying that it did execute the workflow while nothing happened.
    - Using "Ignore input" for the second application. This also results in Automator saying that it executed the workflow while nothing happened.
    So right now, I'm pretty stumped as to how to get this combination of apps to work in 10.7. Any solutions or workarounds are most welcome.
    Thanks in advance!

    Yes, angelanna. You can merge or split your video file via FCP sequence.
    ahaah, maybe I think angelanna would like to get the resulting file with MTS format because he mentioned “No need to be compressed”. Are you asking for this, angelanna?
    If so, a simple MTS files managing and editing tool  is needed. Maybe you can have a try the Mac version of Aunsoft Final Mate for managing HD camcorder footages. I just downloaded its free trial version and it offers a simple way of garping footages directly  from camcorder. And also it provides a attractive feature to join flawlessly and split accurately native MTS files for video file output with original MTS format.
    Maybe this is the tool cwhich an help you out, angelanna.
    Enjoy your video.

  • Best Way to Aggregate Multiple Announcement Apps and Possibly External RSS Feed

    Hello,
    I have two separate announcement apps (one in sub-site A, and one is sub-site B). I am trying to create a webpart that will display content from both apps together.
    I have tried to setup a CSWP and have been able to set the query to pull in the data (Although it shows expired announcements, which I would need to eliminate). Now, I am trying to customize the display of the CSWP, including the property mapping values
    to display the announcement title (currently working with the URL as a link) and body (truncated like the announcement summary view if possible).
    How can I get the body from the announcement to display? The 'body' field isn't listed as an option in the drop down list of mapping values. Do I need to toggle an option on the separate announcement apps, create a column, map a field, or some combination?
    Also, I'd like to know if it is possible to add in an external RSS feed. Or, if there is a completely different way to approach and accomplish this, please let me know.
    Thank you

    Hi,
    To display the “Body” field of Announcements list properly in Content Search Web Part, you can take a look at this blog about how to customize the display template for a good
    start:
    http://social.technet.microsoft.com/Forums/en-US/bf0eb4de-445f-435a-8c88-1826bfb3aae5/best-way-to-aggregate-multiple-announcement-apps-and-possibly-external-rss-feed?forum=sharepointdevelopment
    If there are more complex needs in customization, the two links below would be helpful:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/09/03/3588171.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/05/28/stage-11-upload-and-apply-display-templates-to-the-content-search-web-part.aspx
    Also, if you have several questions, it is recommended to post them in each single thread to make others in this forum easier to focus on one issue in one thread.
    Best regards
    Patrick Liang
    TechNet Community Support

  • Need to run multiple copies of portal on one machine

    This is a little involved to explain so I'll try to be clear.
    Right now we have multiple developers working on our single copy of our portal
    running on one machine at another location. No good can come of this and much
    bad has already happened.
    What we need is to be able to run different copies of our portal on different
    ports on that same machine. Making a copy of the domain, changing the port and
    java.io.tmpdir just confuses the first server started when the second one goes
    RUNNING. Changing the Web Application name doesn't help either.
    It looks like it's only our stuff that gets cornfused when I set up multiple servers
    (user_projects/someDomain, user_projects/someDomain2) or multiple Web Apps (someDomain/beaApps/portalApp/webApp1,
    someDomain/beaApps/portalApp/webApp2) since I can log into the console just fine.
    The Big Idea is that we need each developer to have their own sandbox to play
    in along with a demo/test copy of our software.
    I've dug through the BEA docs and these news groups and have not found anything
    that directly pertains to our situation. The BEA docs are particularly thin on
    information pertaining to dealing with more than one developer or deploying to
    remote machines.
    Here are some of the particulars and constraints of our setup.
    We are running WebLogic Platform 7.0.0.0 on a Solaris box at another physical
    location. All access is via network. We have no root access for a variety of
    reasons.
    Oracle is used for our JDBC. No Pointbase.
    Our WebApp has a servlet as the starting point.
    We deploy an exploded version of our servlet and JSPs for convenience.
    We edit and compile our java source on Windows boxes and FTP the .class and .jsp
    files up to their proper places on the server.
    Naturally, the ideal solution would be to have more than one machine for a server.
    Right now we don't have that option.
    Thanks for any help that you can give,
    Jon Davis

    Travis,
    We tried something very similar to that. We're using WebLogic Platform 7.0.
    We only have one login on this Solaris box.
    I copied our domain (${HOME}/bea/user_projects/somePortal) to another directory
    (${HOME}/bea/user_projects/somePortal-devel) and changed the relevant XML files
    with regards to ports and installation directories.
    Maybe the UID that each server runs as is the difference........
    Maybe an earlier version of the products are more tolerant of this and what we're
    experiencing is a "feature".
    At least I know that my initial approach wasn't such a bad idea :)
    Thanks,
    Jon
    "travis wissink" <[email protected]> wrote:
    >
    Jon,
    We do this with very little issues. I’ll take a stab at putting this
    into words.
    I suggest that you have the developers run their own instance from their
    own Solaris
    user home directory. So in /home/travis make a directory bea/app (/home/travis/bea/app)
    in the bea/app directory copy the applications, bin, StartPortal.sh,
    StopPortal.sh,
    and config directory from your current application, probably /opt/bea/wlportal4.0/.
    Then make sure that your scripts (in the developers home directory)
    all reference
    jar files in the /opt/bea/{wlportal4.0 and wlserver6.1} directory's.
    Next go
    through the /home/travis/bea/app/config/portalDomain/{config.xml & *.sh},
    /home/travis/bea/app/bin/unix/*.sh,
    and /home/travis/bea/app/application/portalDomain/{applicationDir}/WEB-INF/web.xml
    and start and stop scripts to change all “application” directory references
    to
    relative pathing from the /home/travis/app/bea directory also change
    all references
    of the 7501 and 7502 ports to another port for each developer.
    Hope this is readable and helps
    -travis
    "Jon Davis" <[email protected]> wrote:
    This is a little involved to explain so I'll try to be clear.
    Right now we have multiple developers working on our single copy ofour
    portal
    running on one machine at another location. No good can come of this
    and much
    bad has already happened.
    What we need is to be able to run different copies of our portal ondifferent
    ports on that same machine. Making a copy of the domain, changing the
    port and
    java.io.tmpdir just confuses the first server started when the second
    one goes
    RUNNING. Changing the Web Application name doesn't help either.
    It looks like it's only our stuff that gets cornfused when I set upmultiple
    servers
    (user_projects/someDomain, user_projects/someDomain2) or multiple Web
    Apps (someDomain/beaApps/portalApp/webApp1,
    someDomain/beaApps/portalApp/webApp2) since I can log into the console
    just fine.
    The Big Idea is that we need each developer to have their own sandbox
    to play
    in along with a demo/test copy of our software.
    I've dug through the BEA docs and these news groups and have not found
    anything
    that directly pertains to our situation. The BEA docs are particularly
    thin on
    information pertaining to dealing with more than one developer or deploying
    to
    remote machines.
    Here are some of the particulars and constraints of our setup.
    We are running WebLogic Platform 7.0.0.0 on a Solaris box at another
    physical
    location. All access is via network. We have no root access for avariety
    of
    reasons.
    Oracle is used for our JDBC. No Pointbase.
    Our WebApp has a servlet as the starting point.
    We deploy an exploded version of our servlet and JSPs for convenience.
    We edit and compile our java source on Windows boxes and FTP the .class
    and .jsp
    files up to their proper places on the server.
    Naturally, the ideal solution would be to have more than one machine
    for a server.
    Right now we don't have that option.
    Thanks for any help that you can give,
    Jon Davis

  • We have multiple devices in the family, including now 4 iphones, all who share the same Apple ID. I want to stop this, but need thoughts on multiple IDs as Findmyphone works well as same ID?!

    We have multiple devices in the family, including now 4 iphones, all who share the same Apple ID. I want to stop this, but need thoughts on multiple IDs as Findmyphone works well as same ID?!

    I don't know if I'm asking this all in a way that can be understood? Thanks ED3K, however that part I do understand (in the link you provided!)
    What I need to know is "how" I can separate or rather create another Apple ID for my son-who is currently using "my Apple ID?" If there is a way to let him keep "all" his info on his phone (eg-contacts, music, app's, etc.) without doing a "reset?') Somehow I need to go into his phone's setting-create a new Apple ID and possibly a new password so he can still use our combined iCloud & Itunes account?
    Also then letting me take back my Apple ID & password, but again allowing us (my son and I) to use the same iCloud & Itunes account? Does that make more sense??? I'm sincerely trying to get this cleared up once and for all----just need guidance from someone who has a true understanding of the whole Apple iCloud/Itunes system!
    Thanks again for "anyone" that can help me!!!

  • Multiple automated numbering in the same page

    Hi everyone,
    I am using InDesign CS4 and am trying to print CD labels with CD numbers on them. Each page has two CD labels on it and I have to serialize them. For example, the first page will have 001 - Disk 1 of 500  and  002 – Disk 2 of 500. The page numbering option can only do one serial number per page. How can I create a multiple automated numbers like that? If InDesign can’t do it, is there any plug-in that can do this?
    Thank you for your time.
    Teddy

    Ok Nearly did it with a Paragraph Style
    You will need to convert the numbering to text and GREP Search
    Find
    ^\b(\d\d\s)
    Change To
    0$1
    But it works, you just need 500 paragraph returns
    See screen shot
    Why is everything queued these days?
    Direct link here
    http://img26.imageshack.us/img26/8734/67851396.jpg

  • Spawning multiple approval tasks in parallel in OIM11g SOA Composite

    Hi,
    We are trying to implement the following scenario.
    1) We are trying to develop a SOA composite for AD Group Access
    2) The request dataset contains a child table for AD User Group Details which is as follows.
    <AttributeReference name="AD User Group Details" attr-ref="UD_ADUSRC" type="String" length="20" widget="text" available-in-bulk="true">
    <AttributeReference name="Group Name" attr-ref="Group Name" type="String" length="400" widget="lookup" available-in-bulk="true" lookup-code="Lookup.ADReconciliation.GroupLookup" primary="true"/>
    </AttributeReference>
    3) Consider the user is already provisioned to AD.
    4) User now tries to request for AD Group Access by using a request template
    5) The request dataSet for the resource "AD Group Access" will be displayed where the user would "Add" the group(s) to which (s)he want access.
    6) Once the request is sumbitted the associated SOA composite would be executed.
    7) Now, in the SOA composite the logic should be as follows:
    a. For each group selected, there is a corresponding dataApprover who should approve the request.
    b. Once the dataApprover approves the request it goes to the next approver who is securityApprover.
    c. Once the securityApprover approves the request, the request should go thru and the user should get the membership in the AD Group.
    d. Since "AD User Group Details" is a child form in the request dataset, the user can add multiple groups in the same request.
    e. If there are muliple groups selected in the same request, then the same request should spawn parallel approval tasks for all corresponding dataApprovers and securityApprovers.
    f. Then the user should get membership to those AD Groups for which the corresponding dataApprover and securityApprover had approved the request.
    e. If a dataApprover or securityApprover rejects the request then the user shouldn't get membership to the respective group. However, this shouldn't prevent the user from getting membership to other groups for which dataApprover-securityApprover approval was done.
    The dataApprover and securityApprover for the groups are stored in a db table mapping to the corresponding group name.
    We have implemented a SOA composite for which the logic is fine if we add only one group in the child table of request dataset. As per the current implementation, when a user submits the request, the dataApprover and securityApprover for the selected group are fetched from the table and the global variables in SOA composite are set with the ID of dataApprover and securityApprove using setVariableData. These are sting variables. These variables are used in the approval task. The approval task has two "Single Type" participants - dataApprover and securityApprover. These participants fetch the value of dataOwner and securityOwner from the global variables set using setVariableData.
    Now, as mentioned above, if mutiple groups are added like group1, group 2 etc. then there should be multiple approval tasks spawned in parallel that will be approved/rejected by dataApprover1-securityApprover1, dataApprover2-securityApprover2 etc. Depending on the output (approve/reject) the user should get membership to appropriate groups.
    Any inputs on how to modify the current composite to spawn multiple approval tasks in parallel depending on the number of groups added from the requestDataSet would be helpful.
    Regards,
    Swaroop

    Single request id then you are bit safe. The way to do it would be:
    1. Set the dataApprovers as a comma separated list of all the data approvers for all the groups.
    2. Set the securityApprovers as a command separated list of all the security approvers for all the groups.
    3. In Human Task assign the first stage to all the dataApprovers and second stage to securityApprovers.
    Cons of this approach are:
    1. All the approvers would see all the data and they might be confused what they are approving.
    2. securityAppprovers for say group1 won't get the item untill all the dataApprovers approve the request even though dataApprover has approved the request for group1.
    3. Would be hard to implement the rejection cases; depending upon how you want to handle the rejections. For e.g. what if any dataApprover rejects the request? Should the whole request be rejected? If so what would happen to those which have already been approved by dataApprovers? Same case goes for securityApprovers. Again since you cannot modify the requested data once the request is submitted; thus you cannot remove the rejected groups from the request.
    4. You provisioning won't trigger untill all dataApprovers and all securityApprovers have approved the request.
    5. Any one approve from comma separated list of approvers would approve the request. Thus you cannot make sure that all the approvers should approve the request. The workaround would be to create parallel stages in human task and assign one group/approver to one parallel stage. This would mean that you will have to hard code the number of parallel approvals which can be generated in your BPEL human task (This would again depend upon the number of groups requested). To workaround this you could use BPEL extenal routing program where you can pragmatically assign tasks but again since there is no entitlement based request engine in OIM, thus there would be issues there too.
    As a workaround, make sure that you allow only one group to be requested per request and reject the request outright if multiple groups are requested in a single request. You will need to buy in the business on this one.
    Have heard the grapevine that 12G which is in the pipeline would have entitlement based request engine and also would allow for modification of request data once the request is submitted.
    HTH,
    BB

  • I want to know HOW to CLOSE Multiple Open Apps at ONCE. I keep mistakenly opening lots of things at one time.

    I want to know HOW to CLOSE Multiple Open Apps at ONCE. If I have many apps going at one time and want to stop fast, surely there is a way to hit like(alt-F4 in Windows) and BAM! They all go down. I need a feature like that...

    Alt+F4 in Windows only closes the active program.
    Command+Q does the same thing for Mac. Just keep hitting that key combo untill all are closed.

  • Accessing multiple Automator variables in a Run Applescript action

    I have an Automator app set up with 4 variables feeding into a Run Shell Script with the following code. And it runs perfectly.
    /Applications/Adobe\ After\ Effects\ CC/aerender -sound ON -project $1 -comp "$2" -output $3/$4
    However, I need to be able to see the progress of the Script while it processes in the Terminal window. So, I'm setting up a Run AppleScript to tell Terminal to run the script, but I'm getting two problems.
    code:
    on run {input, parameters}
              set aVar to item 1 of input
              set bVar to item 2 of input
              set cVar to item 3 of input
              set dVar to item 4 of input
              tell application "Terminal"
      activate
                        do script "/Applications/Adobe\ After\ Effects\ CC/aerender -sound ON -project aVar -comp \"bVar\" -output cVar/dVar"
              end tell
    end run
    Problem 1--Either my syntax or method of setting the 4 variables to access the array of 4 input variables is wrong. And I don't know enough about AppleScript to figure it out.
    Problem 2-- AppleScript really doesn't like the spaces in "Adobe\ After\ Effects\ CC" even though the Terminal has no problem with it. But it errors out before it even gets to Terminal.
    Any help that anyone can give will be greatly appreciated.

    The backslash is also used as the escape character in an AppleScript string, so to actually get the character you need to escape it (you can also use the term quoted form of to let AppleScript figure out how to quote the string).  To use the variables, you need to use the concatentation operator to mix the variables and text pieces - by putting a variable inside the string the identifier just becomes text.
    Your string should look something like:
    "/Applications/Adobe\\ After\\ Effects\\ CC/aerender -sound ON -project " & aVar & " -comp " & bVar & " -output " & cVar & "/" & dVar
    or perhaps
    quoted form of "/Applications/Adobe After Effects CC/aerender" & " -sound ON -project " & aVar & " -comp " & bVar & " -output " & quoted form of (cVar & "/" & dVar)

  • Single/Multiple Folio apps

    Hi,
    IS IT POSSIBLE THROUGH CREATIVE CLOUD TO CREATE A SINGLE FOLIO APP WHICH WILL HAVE THE CONTENT UPDATED OCCASIONALLY? I DONT NEED MULTIPLE FOLIO APPS (IE ANY PREVIOUS CONTENT IS NOT RELEVANT SO DONT NEED ANYONE TO BE ABLE TO DOWNLOAD IT). SO CAN I JUST HAVE A SINGLE FOLIO APP THAT HAS ITS CONTENT UPDATED.
    IT ALSO RAISES THE GENERAL QUESTION AS TO HOW MUCH EDITING I CAN DO ON A SINGLE FOLIO APP ONCE IT IS PUBLISHED AS NO DOUBT TYPOS ETC WILL BE PRESENT AND WILL NEED TO BE CHANGED
    THANKS VERY MUCH

    If you purchased a Single Edition serial number for US$395, you have one year to update the content, after which your Single Edition license will expire and you will no longer be able to rebuild your Single Edition application.
    For more information :
    DPS single edition FAQ
    http://www.adobe.com/products/digital-publishing-suite-single/faq.html

  • I need to run multiple external programs concurrently using RMI objects.

    have a web based solutiion which uses a backend machine for some processing. I have a RMI based Java proram running on the backend machine and the web server talks with this backend machine through RMI. Now, on this backend machine, I need to call some external program using Process s = Runtime.getRuntime().exec(....). Since this is a web application, multiple clients will connect at the same time and I need to run this external program for multiple clients at the same time.
    Here is what I do. I have a separate RMI object bound to registry for each client that connects to the web server. This RMI object implements runnable interface, since I can't extend this class from Thread (it already extends from UnicastRemoteObject). So each time I call upon a method from this object, only one process gets started and other objects need to wait till this process finishes.
    I need to start multiple processes at the sametime so that other clients don't have to wait for this thread to finish.
    Please let me know if anybody has any other solution than installing an application server on this backend machine.
    Here is my code.
    public class iLinkOnlineSession extends UnicastRemoteObject implements Session, Serializable, Runnable
      public iLinkOnlineSession(String sessName, String sessId, String rootLogs, String rootWrks) throws RemoteException
        setSessionId(sessId);
        setName(sessName);
        ROOT_LOGS = rootLogs;
        ROOT_WORKSPACE = rootWrks;
        searchKeys_ = new Vector();
        searchObjects_ = new Hashtable();
        Thread s = new Thread(this);
        s.start();
      public void run()
        System.out.println("running");
      public String checkLogin(String user, String passwd)
        String msg = "";
        String cmd = "iLinkOnlineLogin";
        cmd += " param "+ user + " param " + passwd;
        System.out.println("cmd: " + cmd);
        try
          Runtime run = Runtime.getRuntime();
          Process proc = run.exec(cmd);           // Call to the external program.
          InputStream in = proc.getInputStream();
          Reader inp = new InputStreamReader(in);
          BufferedReader rd = new BufferedReader(inp);
          String line = rd.readLine();
          while(line != null)
            System.out.println(line);
            msg += line;
            line = rd.readLine();       
          int res = proc.waitFor();
        }catch(Exception e)
             e.printStackTrace();
        System.out.println("Msg: " + msg);
        return msg;
      public String searchObject(String user, String passwd, String param1, String paramVal1, String param2, String paramVal2, String param3, String paramVal3, String relLev, String mfgLoc)
        String cmd = "iLinkOnlineSearch";
        cmd += " param " + user + " param " + passwd + " param " + getSessionId() + " param " + logFile_ + " param " + param1 + " param " + paramVal1 +
              " param " + param2 + " param " + paramVal2 + " param " + param3 + " param " + paramVal3 + " param "
              + relLev + " param " + mfgLoc;
        System.out.println("cmd: " + cmd);
        try
          Runtime run = Runtime.getRuntime();
          Process proc = run.exec(cmd);                // External program.
          InputStream in = proc.getInputStream();
          Reader inp = new InputStreamReader(in);
          BufferedReader rd = new BufferedReader(inp);
          FileWriter out = new FileWriter(resultFile_);
          System.out.println("Filename: "+resultFile_);
          BufferedWriter wout = new BufferedWriter(out);
          String line = rd.readLine();
           while(line != null)
            System.out.println(line);
            wout.write(line);
            wout.newLine();
            wout.flush();
            line = rd.readLine();
          int res = proc.waitFor();
          wout.close();
          if(res == 0)
            boolean ret = createResultTable();
            if(ret == true)
              return GlobalConstants.SUCCESS_MSG;
            else
              return GlobalConstants.ERROR_MSG;
        }catch(Exception e)
                e.printStackTrace();
        System.out.println("getting results");
        return GlobalConstants.ERROR_MSG;
      }

    I guess I don't get it.
    RMI servers are inherently multi-threaded, so why are you running separate servers for every client?

  • Download Multiple Documents App from Solutions2Share

    Hello, I have downloaded the 'Download Multiple Documents App' from Solutions2Share and installed it on several existing site collections on my SharePoint online office 365 tenant. It works without any problems on all sites on all site collections apart
    from one....which is typically the site I need it to work most on.
    When I try to download multiple documents from a document library from this site I get directed to the download multiple documents page and I see the app trying to download the documents but then get message ''Could not retrieve list:Forbidden''
    This happens with every document library on the site. What is strange , when I do this on a document library on the top level site of the same site collection, i.e the default site that is created when creating a site collection - it works fine.
    I've gone through all the site settings and site features and cannot see what would be causing this! I am the Site Administrator and am in the Site Owner/Members permissions groups for this site. Tried it with different browser too.
    kegan1

    Hi,
    According to your error message, it says that the Download Multiple Documents App has permission issue for the list. You can contact [email protected] or go to knowledge base:
    http://wiki.solutions2share.net/category/products/download-muliple-documents/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Retaining Custom made Icons For Automator Apps

    Hello, I've noticed that when I give a custom made icon to an Automator app, it will display it on my Mac but when I send it to someone, it's original icon is displayed. Is there any way to have it display the custom made icon even when I send it to someone else?

    Jerry,
    I suspect you are using the old trick from the Classic OS of just transferring the icons between the Info windows.
    I think there is a way to retain that icon but it is quite involved. I haven't tried this so just guessing at this point.
    The normal icon for the Automator app is stored in the package that is created when you save the completed workflow. You can get access to the package by using the Show Package Contents contextual menu item in the Finder.
    Inside the package you will find a number of files and folders. Within the Resources folder you will find two files related to the icons for the package, one for the Applet and one for documents.
    The Applet icon file is the one that you need to work on and change to retain your modified icon. There is a little utility called Icon Composer that is an Apple product available on my machine in the Open with dropdown contextual menu. This might have been installed with the Developer tools though.
    Within Icon Composer you can replace the icons within the Applet file and they should stick upon transfer to another machine. Here is the description within the help files of Icon Composer.
    "You need to give IconComposer at least one image to generate an icon (.icns) file. However, you should provide four different versions of the icon. IconComposer optimizes each version for rendering at the resolutions of 128x128 pixels, 48x48 pixels, 32x32 pixels, and 16x16 pixels.
    If you give IconComposer only one image, it should be optimized to look best at 128x128 pixels. This ensures it looks goods when displayed at the maximum resolution of 128x128 pixels, and looks acceptable when scaled down to the smaller resolutions.
    If you supply different sizes of the icon to IconComposer, you should also provide 1-bit image masks for the three smaller resolutions. An image mask defines what parts of the icon are clickable. Assuming the color black is used to compose the image mask, any areas that are colored black in the mask define which parts of the icon can receive mouse clicks.
    IconComposer can create icons from the following image formats: GIF, JPEG, PDF, PICT, PNG, TIFF, and any of the QuickTime-supported image formats. To create the actual icon file, drag the icon images to the corresponding image wells in IconComposer. Then choose Save from the File menu, which prompts you to name the icon file and choose a location for it."
    So as you can see it could be quite involved.
    It might be easier to develop a method to automate what you are currently doing and provide the people with a blank file that has the other icon to transfer.

Maybe you are looking for