"Place into Photoshop" with multiple files

I'd love to see this feature in Bridge
Import multiple files into an existing photoshop file (with a predetermined size ) as smart object layers in photoshop.
The options that Bridge currently offers falls short in 2 area
Load Files into Photoshop Layers-- does not import smart objects and creates a new photoshop file that ends up being as large as the largest imported file
Place into Photoshop--only lets you do one at a time
I need "Place into Photoshop" with multiple files
Is there a way to do this?
Thanks!!

I agree, placing multiple files into your PSD as smart objects all at once like InDesign would be a great (and logical) feature for Photoshop to have. The only "workaround" I have is to create a shortcut using Ctrt+Alt+Shift+D (which is not used by anything), so you can place pictures/graphics more quickly, rather than using the menu each time.

Similar Messages

  • Generate Proxy from WSDL with multiple Files

    I need to load a WSDL (to generate a web service consumer proxy). However, that WSDL is build from multiple files, both .wsdl and .xsd, not a single one. It seems the SAP wizard to generate the proxy does expect one single WSDL file however.
    Is there a way in SAP to load a WSDL with multiple files, or do I need to (manually) flatten all these files into one single file?

    I am not sure why it fails in WebSphere. Please try posting
    this question to a WebSphere newsgroup.
    Regards,
    -manoj
    http://manojc.com
    "viswanath" <[email protected]> wrote in message
    news:40aee7fa$1@mktnews1...
    >
    thanks manoj for your reply.
    I'm using IBM WebSphere SDK for Web Services v5.1
    for generation of java client.
    I'm able to generate the client but the problem is
    the WSDl2Java command ignored the SOAPHeaders while
    generating the proxy. Since I'm using SOAP headers for
    authentication the code fails.
    Thanks,
    Viswanath
    "manoj cheenath" <[email protected]> wrote:
    I am not sure which tool you are using
    to generate web service clent. To generate
    a WLS web service client you have to use clientgen.
    Details here:
    http://e-docs.bea.com/wls/docs81/webserv/anttasks.html
    Regards,
    -manoj
    http://manojc.com
    "viswanath" <[email protected]> wrote in message
    news:40ad8a07$[email protected]..
    HI,
    I have a web service (implemented in .NET) which extends soap headersfor
    doing
    Authentication. WSDL is generated out of this web service. But wheni use
    wsdl2java
    (J2EE) to generate a proxy class, there is no interface generated forsoap
    headers.
    Without extending SOAP headers the web service works fine.
    Basically, I'm looking for a way to generate java interfaces (ie.
    proxies)
    for
    SOAP headers out of the WSDL file.
    PFA the WSDL file and the proxy
    Any help on this is appreciated.

  • Working with Multiple Files in Workspace Layout

    If I was working with multiple files in the workspace layout, they each used to be available for selection from a tab.  Now I can either cascade the files horizontally or vertically - but not have them appear in a tab across the top of the workspace layout.
    Does anyone know how to set the workspace to present multiple files in tabs?  I have CS3.

    Tanya,
    This may not help, but the times when that happens to me is when I go too fast and some operations haven't finished. I then try to select a file that hasn't completed and the file I select is in the process of having the data updated. The worst is when it is trying to render as I am doing something.
    I hope this helps some.
    Mel

  • Problem Creating PDF with Multiple Files in Pro. 7

    I'm using Adobe Acrobat Professional 7 on a computer with Windows XP.
    The problem is that when I try to create a PDF with multiple files everything just suddenly stops. There are 75 files involved and when it gets to around 41 or so (don't know the exact number because I turned away from my computer for just a moment), it just stops. There are no error messages; nothing. Just a blank Acrobat screen.
    Last week I had a different problem which was resolved by an uninstall/reinstall and I was able to create the PDF with those exact same 75 files, but after the PDF was created I realised that some changes needed to be made. I dumped the PDF, made the appropriate changes and left it for the weekend. Today I the new problem has arisen.
    Any ideas what the problem might be?

    I've read many discussions about Acrobat and problems with server files, with the general solution being what you are doing... copy the files to a local hard drive

  • Create folder with multiple files (was: folders)

    Can you create a folder with multiple files and direct the page to go to the folder and then the reader can select the file they wish to choose?  Example  Council Mintes Folder with a file for each set of minutes.  The hyperlink would open the folder and then the reader would select whch set of minutes they'd like to see.

    You may not have access to it depending on your hosting company and  plan, but if you did have the ability to change it you'd normally do it in the admin area of your hosting account which would update the proper files on your server.
    You may also be able to do it manually, but the "how to" depends on the server type you are running.
    EDIT: I'd still suggest using a server script (like the PHP I linked to) because the look of a directory with browsing turned on is pretty ugly and can't be changes since it's not a page on your site. With the PHP I linked to, you could have an actual page for your links, complete with your site's design, that simply lists the files from the specified directory. It's very simple to set up if you have PHP on your server.

  • How to send the mail with multiple file attachments ?

    Sending mails with multiple files as attachments.

    You need to start from the app, assuming that it has an email function, that contains the files that you want to send as attachments. The Photos app allows you to send up to 5 photos on the same email, but if you want to send multiple file types then you need an app that supports all those file types. I use the GoodReader app which supports quite a few document/file types (e.g. PDF, Excel, Word, pictures), and from that I can select multiple files (including different types) and attach them to the same email.

  • Pull a zip file with multiple files unzip it, and finally load one of the f

    Hi Aill,
    I have following query.
    Could we do the following with XI: pull a zip file with multiple files from a vendor which resides outside of XI server network, unzip it, and finally load one of the files to SAP?
    Regards
    Rohan S

    Hi Varadharajan,
    I have 10 text files in some ZIP file on one server which is out side of network. We can reach that file through Proxy only to read ZIP file.
    I need to extract the file and on the bases of some condition one of the file i need to upload data to SAP.
    Is it possible. If possible then How?
    Regards

  • I've downloaded two adobe cs6 files to a new computer.  How do I activate photoshop with these files?

    I've downloaded two adobe cs6 files to a new computer.  How do I activate photoshop with these files?

    i said the 2nd file name you listed in message 6 was incorrect, not the file name in message 8.
    but if the file name message 8 is correct, both names in message 6 are incorrect.  or you just might have a typo for the first file name.
    in any case, make sure both file names are exactly the same but have different (a 7z and an exe) extensions, put both in the same directory and then click the exe.

  • Issue with multiple files merging into 1

    I'm trying to write some code that will read the contents of multiple files in a directory then output it into a single file. However when I try to open the files via a for loop it does not recognise the variable I have assigned for the filename:
    FileReader fr = new FileReader(fileName);
    please see the full program so far, it isn't finished and this currently has me beat, any help would be greately appreciated.
    Thanks
    Chris
    import java.io.*;
    public class OutputCCFile
              public static void main(String []args)
                   File absolutePath = new File("C:\\java\\Credit Cards");     
                   String[] ccFiles = absolutePath.list();
                   try
                        boolean newFile = false;
                        CCHeaderLine cch = new CCHeaderLine();
                        String strDate = cch.getDate();
                        String headerLine = cch.getHeader();
                        File file = new File("TUHCC_"+strDate);
                        FileWriter fw = new FileWriter(file);
                        fw.write(headerLine);
                        fw.flush();
                        fw.close();          
                   }catch(IOException e) {}
                   for (int i = 0; i<ccFiles.length;i++)
                             String filename = ccFiles;
                             filename.toUpperCase();
                             if (filename.startsWith("C")) //only want to open files beginning with C
                                       FileReader fr = new FileReader(fileName);
    /*Exception in thread "main" java.lang.Error: Unresolved compilation problem:
         fileName cannot be resolved */
                                       BufferedReader br = new BufferedReader(fr);
                                       String dataLine = br.readLine();

    String filename = ccFiles;
    filename.toUpperCase();
    if (filename.startsWith("C")) //only want to open files beginning with C
    FileReader fr = new FileReader(fileName);
    There are several problems here.
    1) Variable names (and many other things) are case sensitive in Java. filename != fileName
    2) filename.toUpperCase(); will not change filename, it will just determine its upper case version and discard it                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Bug when dealing with multiple file input elements?

    I'm running Apex 4.2 and have an odd problem.
    Back Story:
    I have created a page on a standard web server (Apache) that allows a user to select multiple images from there local machine. The form reads one file at a time displaying a preview of the image and reading the exif data from the file.  We are entering extra data about each picture into a form.  So the flow of the page is: user selects images -> first image is displayed and user enters data -> submits data via ajax -> user hits button and next image comes up.  The user repeats until all images are done.  I have not done the ajax portion but all other parts work fine on the Apache server.
    The Problem:
    I need to recreate this type of form in Apex.   If I create a multiple file input item on a page all the tabs stop working.  They take you to a 404 page with the message "The requested URL /apex/wwv_flow.accept was not found on this server ".  I have tracked it back to anything calling the apex.submit() javascript function. 
    Literally if I make a html region and place "<input id="uploadInput" type="file" name="myFiles" multiple>"  into the region source the apex.submit() function stops working.
    Any thoughts?

    Epic Fail wrote:
    Literally if I make a html region and place "<input id="uploadInput" type="file" name="myFiles" multiple>"  into the region source the apex.submit() function stops working.
    Any thoughts?
    Not a bug. The file browse control you have created cannot be processed by the APEX wwv_flow.accept procedure that performs page submit processing. Your control's name attribute is myFiles, but there is no corresponding parameter in wwv_flow.accept:
    -- A C C E P T
    -- This procedure accepts virtually every flow page.
    -- Reference show procedure for input argument descriptions.
    procedure accept (
        p_request      in varchar2  default null,
        p_instance      in varchar2  default null,
        p_flow_id      in varchar2  default null,
        p_company      in number    default null,
        p_flow_step_id  in varchar2  default null,
        p_arg_names    in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_arg_values    in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_arg_checksums in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_page_checksum in varchar2                default null,
        p_accept_processing in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v01          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v02          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v03          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v04          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v05          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v06          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v07          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v08          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v09          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v10          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v11          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v12          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v13          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v14          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v15          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v16          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v17          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v18          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v19          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v20          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v21          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v22          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v23          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v24          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v25          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v26          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v27          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v28          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v29          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v30          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v31          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v32          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v33          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v34          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v35          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v36          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v37          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v38          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v39          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v40          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v41          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v42          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v43          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v44          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v45          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v46          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v47          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v48          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v49          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v50          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v51          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v52          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v53          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v54          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v55          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v56          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v57          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v58          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v59          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v60          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v61          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v62          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v63          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v64          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v65          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v66          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v67          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v68          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v69          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v70          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v71          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v72          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v73          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v74          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v75          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v76          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v77          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v78          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v79          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v80          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v81          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v82          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v83          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v84          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v85          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v86          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v87          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v88          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v89          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v90          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v91          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v92          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v93          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v94          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v95          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v96          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v97          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v98          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v99          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v100          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v101          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v102          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v103          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v104          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v105          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v106          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v107          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v108          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v109          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v110          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v111          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v112          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v113          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v114          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v115          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v116          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v117          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v118          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v119          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v120          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v121          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v122          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v123          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v124          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v125          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v126          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v127          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v128          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v129          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v130          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v131          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v132          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v133          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v134          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v135          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v136          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v137          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v138          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v139          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v140          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v141          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v142          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v143          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v144          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v145          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v146          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v147          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v148          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v149          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v150          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v151          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v152          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v153          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v154          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v155          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v156          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v157          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v158          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v159          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v160          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v161          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v162          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v163          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v164          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v165          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v166          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v167          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v168          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v169          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v170          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v171          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v172          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v173          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v174          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v175          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v176          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v177          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v178          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v179          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v180          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v181          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v182          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v183          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v184          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v185          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v186          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v187          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v188          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v189          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v190          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v191          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v192          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v193          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v194          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v195          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v196          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v197          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v198          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v199          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_v200          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_t01          in varchar2  default null,
        p_t02          in varchar2  default null,
        p_t03          in varchar2  default null,
        p_t04          in varchar2  default null,
        p_t05          in varchar2  default null,
        p_t06          in varchar2  default null,
        p_t07          in varchar2  default null,
        p_t08          in varchar2  default null,
        p_t09          in varchar2  default null,
        p_t10          in varchar2  default null,
        p_t11          in varchar2  default null,
        p_t12          in varchar2  default null,
        p_t13          in varchar2  default null,
        p_t14          in varchar2  default null,
        p_t15          in varchar2  default null,
        p_t16          in varchar2  default null,
        p_t17          in varchar2  default null,
        p_t18          in varchar2  default null,
        p_t19          in varchar2  default null,
        p_t20          in varchar2  default null,
        p_t21          in varchar2  default null,
        p_t22          in varchar2  default null,
        p_t23          in varchar2  default null,
        p_t24          in varchar2  default null,
        p_t25          in varchar2  default null,
        p_t26          in varchar2  default null,
        p_t27          in varchar2  default null,
        p_t28          in varchar2  default null,
        p_t29          in varchar2  default null,
        p_t30          in varchar2  default null,
        p_t31          in varchar2  default null,
        p_t32          in varchar2  default null,
        p_t33          in varchar2  default null,
        p_t34          in varchar2  default null,
        p_t35          in varchar2  default null,
        p_t36          in varchar2  default null,
        p_t37          in varchar2  default null,
        p_t38          in varchar2  default null,
        p_t39          in varchar2  default null,
        p_t40          in varchar2  default null,
        p_t41          in varchar2  default null,
        p_t42          in varchar2  default null,
        p_t43          in varchar2  default null,
        p_t44          in varchar2  default null,
        p_t45          in varchar2  default null,
        p_t46          in varchar2  default null,
        p_t47          in varchar2  default null,
        p_t48          in varchar2  default null,
        p_t49          in varchar2  default null,
        p_t50          in varchar2  default null,
        p_t51          in varchar2  default null,
        p_t52          in varchar2  default null,
        p_t53          in varchar2  default null,
        p_t54          in varchar2  default null,
        p_t55          in varchar2  default null,
        p_t56          in varchar2  default null,
        p_t57          in varchar2  default null,
        p_t58          in varchar2  default null,
        p_t59          in varchar2  default null,
        p_t60          in varchar2  default null,
        p_t61          in varchar2  default null,
        p_t62          in varchar2  default null,
        p_t63          in varchar2  default null,
        p_t64          in varchar2  default null,
        p_t65          in varchar2  default null,
        p_t66          in varchar2  default null,
        p_t67          in varchar2  default null,
        p_t68          in varchar2  default null,
        p_t69          in varchar2  default null,
        p_t70          in varchar2  default null,
        p_t71          in varchar2  default null,
        p_t72          in varchar2  default null,
        p_t73          in varchar2  default null,
        p_t74          in varchar2  default null,
        p_t75          in varchar2  default null,
        p_t76          in varchar2  default null,
        p_t77          in varchar2  default null,
        p_t78          in varchar2  default null,
        p_t79          in varchar2  default null,
        p_t80          in varchar2  default null,
        p_t81          in varchar2  default null,
        p_t82          in varchar2  default null,
        p_t83          in varchar2  default null,
        p_t84          in varchar2  default null,
        p_t85          in varchar2  default null,
        p_t86          in varchar2  default null,
        p_t87          in varchar2  default null,
        p_t88          in varchar2  default null,
        p_t89          in varchar2  default null,
        p_t90          in varchar2  default null,
        p_t91          in varchar2  default null,
        p_t92          in varchar2  default null,
        p_t93          in varchar2  default null,
        p_t94          in varchar2  default null,
        p_t95          in varchar2  default null,
        p_t96          in varchar2  default null,
        p_t97          in varchar2  default null,
        p_t98          in varchar2  default null,
        p_t99          in varchar2  default null,
        p_t100          in varchar2  default null,
        p_t101          in varchar2  default null,
        p_t102          in varchar2  default null,
        p_t103          in varchar2  default null,
        p_t104          in varchar2  default null,
        p_t105          in varchar2  default null,
        p_t106          in varchar2  default null,
        p_t107          in varchar2  default null,
        p_t108          in varchar2  default null,
        p_t109          in varchar2  default null,
        p_t110          in varchar2  default null,
        p_t111          in varchar2  default null,
        p_t112          in varchar2  default null,
        p_t113          in varchar2  default null,
        p_t114          in varchar2  default null,
        p_t115          in varchar2  default null,
        p_t116          in varchar2  default null,
        p_t117          in varchar2  default null,
        p_t118          in varchar2  default null,
        p_t119          in varchar2  default null,
        p_t120          in varchar2  default null,
        p_t121          in varchar2  default null,
        p_t122          in varchar2  default null,
        p_t123          in varchar2  default null,
        p_t124          in varchar2  default null,
        p_t125          in varchar2  default null,
        p_t126          in varchar2  default null,
        p_t127          in varchar2  default null,
        p_t128          in varchar2  default null,
        p_t129          in varchar2  default null,
        p_t130          in varchar2  default null,
        p_t131          in varchar2  default null,
        p_t132          in varchar2  default null,
        p_t133          in varchar2  default null,
        p_t134          in varchar2  default null,
        p_t135          in varchar2  default null,
        p_t136          in varchar2  default null,
        p_t137          in varchar2  default null,
        p_t138          in varchar2  default null,
        p_t139          in varchar2  default null,
        p_t140          in varchar2  default null,
        p_t141          in varchar2  default null,
        p_t142          in varchar2  default null,
        p_t143          in varchar2  default null,
        p_t144          in varchar2  default null,
        p_t145          in varchar2  default null,
        p_t146          in varchar2  default null,
        p_t147          in varchar2  default null,
        p_t148          in varchar2  default null,
        p_t149          in varchar2  default null,
        p_t150          in varchar2  default null,
        p_t151          in varchar2  default null,
        p_t152          in varchar2  default null,
        p_t153          in varchar2  default null,
        p_t154          in varchar2  default null,
        p_t155          in varchar2  default null,
        p_t156          in varchar2  default null,
        p_t157          in varchar2  default null,
        p_t158          in varchar2  default null,
        p_t159          in varchar2  default null,
        p_t160          in varchar2  default null,
        p_t161          in varchar2  default null,
        p_t162          in varchar2  default null,
        p_t163          in varchar2  default null,
        p_t164          in varchar2  default null,
        p_t165          in varchar2  default null,
        p_t166          in varchar2  default null,
        p_t167          in varchar2  default null,
        p_t168          in varchar2  default null,
        p_t169          in varchar2  default null,
        p_t170          in varchar2  default null,
        p_t171          in varchar2  default null,
        p_t172          in varchar2  default null,
        p_t173          in varchar2  default null,
        p_t174          in varchar2  default null,
        p_t175          in varchar2  default null,
        p_t176          in varchar2  default null,
        p_t177          in varchar2  default null,
        p_t178          in varchar2  default null,
        p_t179          in varchar2  default null,
        p_t180          in varchar2  default null,
        p_t181          in varchar2  default null,
        p_t182          in varchar2  default null,
        p_t183          in varchar2  default null,
        p_t184          in varchar2  default null,
        p_t185          in varchar2  default null,
        p_t186          in varchar2  default null,
        p_t187          in varchar2  default null,
        p_t188          in varchar2  default null,
        p_t189          in varchar2  default null,
        p_t190          in varchar2  default null,
        p_t191          in varchar2  default null,
        p_t192          in varchar2  default null,
        p_t193          in varchar2  default null,
        p_t194          in varchar2  default null,
        p_t195          in varchar2  default null,
        p_t196          in varchar2  default null,
        p_t197          in varchar2  default null,
        p_t198          in varchar2  default null,
        p_t199          in varchar2  default null,
        p_t200          in varchar2  default null,
        f01            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f02            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f03            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f04            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f05            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f06            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f07            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f08            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f09            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f10            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f11            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f12            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f13            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f14            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f15            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f16            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f17            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f18            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f19            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f20            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f21            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f22            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f23            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f24            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f25            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f26            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f27            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f28            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f29            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f30            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f31            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f32            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f33            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f34            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f35            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f36            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f37            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f38            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f39            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f40            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f41            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f42            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f43            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f44            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f45            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f46            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f47            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f48            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f49            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        f50            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fcs            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fmap            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fhdr            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        fcud            in wwv_flow_global.vc_arr2 default empty_vc_arr,
        frowid          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        x01            in varchar2  default null,
        x02            in varchar2  default null,
        x03            in varchar2  default null,
        x04            in varchar2  default null,
        x05            in varchar2  default null,
        x06            in varchar2  default null,
        x07            in varchar2  default null,
        x08            in varchar2  default null,
        x09            in varchar2  default null,
        x10            in varchar2  default null,
        x11            in varchar2  default null,
        x12            in varchar2  default null,
        x13            in varchar2  default null,
        x14            in varchar2  default null,
        x15            in varchar2  default null,
        x16            in varchar2  default null,
        x17            in varchar2  default null,
        x18            in varchar2  default null,
        x19            in varchar2  default null,
        x20            in varchar2  default null,
        p_listener      in wwv_flow_global.vc_arr2 default empty_vc_arr, -- used to communicate with apex listner
        p_map1          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_map2          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_map3          in wwv_flow_global.vc_arr2 default empty_vc_arr,
        p_survey_map    in varchar2  default null,
        p_flow_current_min_row      in varchar2 default '1',
        p_flow_current_max_rows    in varchar2 default '10',
        p_flow_current_rows_fetched in varchar2 default '0',
        p_debug                    in varchar2 default 'NO',
        p_trace                    in varchar2 default 'NO',
        p_md5_checksum              in varchar2 default '0',
        p_page_submission_id        in varchar2 default null,
        p_time_zone                in varchar2 default null,
        p_ignore_01    in varchar2 default null,
        p_ignore_02    in varchar2 default null,
        p_ignore_03    in varchar2 default null,
        p_ignore_04    in varchar2 default null,
        p_ignore_05    in varchar2 default null,
        p_ignore_06    in varchar2 default null,
        p_ignore_07    in varchar2 default null,
        p_ignore_08    in varchar2 default null,
        p_ignore_09    in varchar2 default null,
        p_ignore_10    in varchar2 default null,
        p_lang          in varchar2 default null,
        p_territory    in varchar2 default null)
    The normal approach to creating forms in APEX is to use declarative page items, or to create items dynamically using the apex_item API. APEX knows how to process these items because they are generated with names matching wwv_flow.accept parameters, but not manually created controls with arbitrary name attributes.
    Are you planning on doing all of your form submission via AJAX? (I doubt that APEX will be able to natively handle a file browse control with a multiple attribute.) If so, remove the name="myFiles" attribute. You will still be able to access the control in JS using the ID, but APEX won't see it.

  • 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

  • Problem with multiple file download

    Good day.
    I have a code that downloads multiple files from the database and then saves it to a specified directory. I work fine but when I check the contents of the file, some of them are not complete. Lets, say I have downloaded 16 files and only file # 4,5,6,7 have the correct contents as compared to the original.
    Why is that so?
    my code snippet:
    DiskFileUpload fu = new DiskFileUpload();
              fu.setSizeMax(1000000000);
              List fileItems = fu.parseRequest(request);
             Iterator itr = fileItems.iterator();
              while(itr.hasNext())
              FileItem fi = (FileItem)itr.next();
              if(!fi.isFormField())
                     String filen = fi.getName();
                     String fname = filen.substring(filen.lastIndexOf(java.io.File.separator)+1);
                   Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                   connection = DriverManager.getConnection(connectionURL, "", "");
                   statement = connection.createStatement();
                   String sql = "INSERT INTO tblTestFiles("
                                    + "strFileName,"
                                    + "imgFile) "
                                    + "VALUES(?,?)";
                 PreparedStatement pstmt = connection.prepareStatement(sql);
                   //Set the values for strFileName and imgFile
                   pstmt.setString(1,fname);
                   // Set the blob
                   //File file = new File(fnew);
                 FileInputStream is = new FileInputStream(filen);
                 pstmt.setBinaryStream(2, is, (int)filen.length());
                     // Insert the row
                 pstmt.executeUpdate();I am using eclipse 5.5.23, eclipse 3.2 with myeclipse SDK, MS SQL, Ant.

    sorry I posted the wrong code. here's the correct one:
    statement = connection.createStatement();
            rs = statement.executeQuery("SELECT strFileName,imgFile FROM tblTestFiles ORDER BY strFileName");
            while (rs.next())
                   String filename = rs.getString(1);
                Blob blob = rs.getBlob(2);
                   InputStream is = null;
                   is = blob.getBinaryStream();
                   int i;
                   String dir = "C:\\DownloadedFiles";
                   File path = new File(dir, filename);
                   FileOutputStream fos = null;
                   fos = new FileOutputStream(path, true);
                   PrintWriter pout = null;
                   pout = new PrintWriter(new FileOutputStream(path,true));
                   while ((i = is.read()) != -1)
                      pout.write(i);
                   fos.close();
                   pout.close();
             }// end of if construct
        }// end of try
         catch (IOException e)
             e.getMessage (); e.printStackTrace();
              System.out.println(e);
        catch (SQLException e)
             e.getMessage (); e.printStackTrace();
              System.out.println(e);
        }Thanks.

  • SQL*Loader with multiple files

    Gurus,
    I search the documentation and this forum and haven't found a solution to my issue yet...
    I am not expert of SQL*Loader. I have used SQL*Loader to copy from one file to a table many times. But I have not copied multiple files into one table especially with different names.
    More specifically....
    I need to load data from multiple files into a table. But the file names will be different each time. A file will be created every hour. The file name will consist of the root file name appended by a time stamp. For example, a file created on 10/07/2010 at 2:15 P.M. would be filea100720101415.txt while a file created on 10/08/2010 at 8:15 A.M. would be filea100820100815.txt. All the files will be in one directory.How can I load the data from the files using SQL*Loader?
    My database: Oracle 10g Release 2
    Operating System: Windows 2003 Server
    Please assist.
    Robert

    sect55 wrote:
    Gurus,
    I search the documentation and this forum and haven't found a solution to my issue yet...
    I am not expert of SQL*Loader. I have used SQL*Loader to copy from one file to a table many times. But I have not copied multiple files into one table especially with different names.
    More specifically....
    I need to load data from multiple files into a table. But the file names will be different each time. A file will be created every hour. The file name will consist of the root file name appended by a time stamp. For example, a file created on 10/07/2010 at 2:15 P.M. would be filea100720101415.txt while a file created on 10/08/2010 at 8:15 A.M. would be filea100820100815.txt. All the files will be in one directory.How can I load the data from the files using SQL*Loader?
    My database: Oracle 10g Release 2
    Operating System: Windows 2003 Server
    Please assist.
    RobertToo bad this isn't in *nix, where you get a powerful shell scripting capability. 
    That said, here is the core of the solution .... you will also need a way to identify files that have been processed vs. new ones. Maybe rename them, maybe move them. But with this sample you can see the basics. From there it is really an issue of DOS scripting, which would better be found by googling around a bit.
    cd c:\loadfiles
    FOR %%datfile IN (*.txt) DO SQLLDR CONTROL=sample.ctl, LOG=sample.log, BAD=baz.bad, DATA=%%datfileTry googling "dos scripting language". You'll find lots of tutorials and ideas on "advanced" (well, as advanced as DOS gets) techniques to solve your problem.
    Edited by: EdStevens on Dec 1, 2010 5:03 PM

  • T-SQL Code to backup database with multiple files - Syntax error

    Hello,
    I'm trying to backup a database into multiple files but I'm getting a syntax error.
    Here is the code:
    declare @DBName varchar(100)
    declare @DBFileName varchar(256)
    declare @FolderName varchar(256)
    declare @Path varchar(100)
    set @Path = '\\Backup-Server\Test\'
    set @DBName = 'DayNite'
    set @DBFileName = 'DayNite-Full' + '-' + (SELECT CONVERT(char(10), GetDate(),110)) + '-' + 'P'
    set @FolderName =(SELECT CONVERT(char(10), GetDate(),110))
    set @Path = @Path + @FolderName + '\'
    EXEC master.dbo.xp_create_subdir @Path
    --Calculate broken files for BACKUP DATBASE Function
    /*declare @dbsize int
    set @dbsize = (SELECT ((size*8)/1024)/1000 as SizeGB FROM sys.database_files WHERE file_id = '1')
    set @dbsize = @dbsize / 4
    print @dbsize*/
    EXEC
    BACKUP DATABASE [test] TO
    DISK = @Path + @DBFileName + '1.bak',
    DISK = @Path + @DBFileName + '2.bak',
    DISK = @Path + @DBFileName + '3.bak',
    DISK = @Path + @DBFileName + '4.bak',
    DISK = @Path + @DBFileName + '5.bak',
    DISK = @Path + @DBFileName + '6.bak',
    DISK = @Path + @DBFileName + '7.bak',
    DISK = @Path + @DBFileName + '8.bak',
    DISK = @Path + @DBFileName + '9.bak',
    DISK = @Path + @DBFileName + '10.bak',
    DISK = @Path + @DBFileName + '11.bak',
    DISK = @Path + @DBFileName + '12.bak',
    DISK = @Path + @DBFileName + '13.bak'
    WITH INIT , NOUNLOAD , NAME = 'DayNite Full Backup', NOSKIP , NOFORMAT

    Made some slight modifications to your script and it should work(worked when tested).. if you wnat more complete solution -- google  -OLA Hallengren backups  -- you should get some good scripts..
    declare @DBName varchar(100)
    declare @DBFileName varchar(256)
    declare @FolderName varchar(256)
    declare @Path varchar(100)
    set @Path = '\\Backup-Server\Test\'
    set @DBName = 'DayNite'
    set @DBFileName = 'DayNite-Full' +''+ '-' +''+ (SELECT CONVERT(char(10), GetDate(),110)) +''+ '-' +''+ 'P'
    set @FolderName =(SELECT CONVERT(char(10), GetDate(),110))
    set @Path = @Path +''+ @FolderName +''+ '\'
    EXEC master.dbo.xp_create_subdir @Path
    --Calculate broken files for BACKUP DATBASE Function
    /*declare @dbsize int
    set @dbsize = (SELECT ((size*8)/1024)/1000 as SizeGB FROM sys.database_files WHERE file_id = '1')
    set @dbsize = @dbsize / 4
    print @dbsize*/
    select @Path,@DbFileName
    declare @SQL nvarchar(2000)
    Set @SQL ='Backup DATABASE [DAYNITE] TO DISK = '''+@Path +''+ @DBFileName +''+ '1.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '2.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '3.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '4.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '5.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '6.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '7.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '8.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '9.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '10.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '11.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '12.bak'',
    DISK = '''+@Path +''+ @DBFileName +''+ '13.bak''
    WITH INIT , NOUNLOAD , NAME = ''DayNite Full Backup'', NOSKIP , NOFORMAT '
    print @SQL
    exec (@SQL)
    Hope it Helps!!

  • External editor getting error window when trying to load photo in iphoto yet I can drag out of iphoto to the desktop then load right into photoshop with no errors

    I use Photoshop elements 9 to edit , since the last up-date when I'm in iPhoto and click edit in external editor when photoshop opens it sits there a minute and  and then a error window comes up saying something about an unvalead jpeg marker can't open but I came drag the image out of iPhoto to the desktop and then open it with photoshop with no trouble ? help I'm running 10.6.7 on a 2007 mac pro iPhoto 11 Ver. 9.1.3

    There's a bug in iPhoto 9.1.3 when using Photoshop as the external editor when trying to edit a tif, png or psd file.  That's because iPhoto is just duplicating that file and changing the extension to jpg without acutally changing the photo's format.  That's why PS says it's an unknown format. 
    No know solution at this time except edit only jpgs and raw files in iPhoto with Photoshop.  Also send a bug report to Apple via http://www.apple.com/feedback/iphoto.html.
    OT

Maybe you are looking for