Part II - Saving Numerous Files using Actions

[ Part I - http://forums.adobe.com/thread/666028? ]
Hi,
I have been using Paul Riggott’s Script in Photoshop which is working Just Great! I was wondering if the Script could help me to correlate for random numbers [as per client’s desires] for specific images.
FYI -
As of now, Paul’s Script works on a sequential basis:
* Google.jpg  -a_45638_bc_1.jpg
* Bing.jpg     -a_45639_bc_1.jpg
* Yahoo.jpg  -a_45640_bc_1.jpg
* CNN.jpg     -a_45641_bc_1.jpg
* BBC.jpg     -a_45642_bc_1.jpg
(45638  |  45639  |  45640  |  45641  |  45642)
Well – Can the .jpg Images correlate with randomized numbers as follows:
(45638  |  19939  |  22285  |  24689  |  33562)
* Google.jpg   -a_45638_bc_1.jpg
* Bing.jpg      -a_19939_bc_1.jpg
* Yahoo.jpg   -a_22285_bc_1.jpg
* CNN.jpg      -a_24689_bc_1.jpg
* BBC.jpg      -a_33562_bc_1.jpg

Hi Mylenium,
Well - I replaced the following
~~~~~~~~~~~~~~~
var Count = Number(win.g15.et2.text);
~~~~~~~~~~~~~~~
with a…
~~~~~~~~~~~~~~~
var Count = Number(Math.round(random(0,100000)));
~~~~~~~~~~~~~~~
and then removed the "Count++; in the process function but nothing really is happening???... Am I doing something wrong?
Hi Noel,
Kinda it’s hard to explain "as per client’s desires" to Mylenium on the forum. If Mylenium could meet me on Skype OR Windows Live Messenger, I can explain him in depth. By the way I was discussing with Paul Riggott about this issue. Unfortunately all of sudden, he disappeared. Trying to get in touch with him but alas.
Thanks for the info about generating Random Numbers could accidentally generate the same number twice, and yield a filename conflict.
Noel, can I meet on Skype? Send me a private message and let me know what you think.
Thanks!

Similar Messages

  • Why don't Grapher's Frame Limits work correctly with saved Grapher files using multiple equations on Mountain Lion?

    Hi,
    I generally enjoy using Grapher in OS X (I am using Mountain Lion v10.8.2). However, I have repeatedly encountered what seems to be broken basic functionality in setting the limits on the display frame  (View> Frame Limits…). When opening saved Grapher files with multiple valid equations in them (equations which include constant terms defined as sets of numbers), I repeatedly get the following behavior:
    1. Frame limits are not correctly saved. As in, the file opens with a different view than it was saved and closed in.
    2. Frame limits no longer work as expected. For example, I might set the Y axis frame limits to be -2 to 2, but the Y axis of the frame display will run from about -1.95 to about -0.35.
    3 Performance is degraded. Making a change to the frame limits (for ecxample, changing the Y frame limits to -2.2 and 5 in an attempt to display something approximating the range -2 to 2) take an inordinate amount of both processor time and clock time. The spinning ball appears and hangs out far longer than is welcome, and at times seems to hang requiring a force quit of Grapher.
    These problems occur regardless of coordinate system.
    Is there a solution? If I create a new file and start from scratch the problems reappear. The problems reappear across a wide range of 2D equation types.
    Is Grapher simply broken in this regard?
    Thanks for the input.

    Bonjour Lexy-Lou,
       You are right, the bug was born with Grapher as you may read on the website
    <http://y.barois.free.fr/grapher/> :
    Grapher’s bugs and their remedies (OS X in French).
              Bug nr. 1. (Grapher 1.1, 2.0, 2.1, 2.2, 2.3). When modifying the main 2D window size, the graph length and height already formatted (menu Format) are changed : axis scale values stay the same, added objects remain same size on the same places (unit pixel) relative to the graph left upper corner ; but the graph view changes for the ratio H/L do so : very annoying !
                        The remedy : To restore the 2D graph after changing the window size : menu Format > Layout > Size > redo the initial choice (paper size or L and H values)… or avoid having to do so by selecting a window large enough to begin with.
                        Proposed correction : making the graph size independent of the main window’s one.
              Bug nr. 2. (Grapher 1.1, 2.0, 2.1, 2.2, 2.3). Saving is wrong in 2D (menu File > Save, Save as, Save a copy as). Are not seved : the last location on the screen of the main window, the graph size, the maximum and minimum values of the ordinate scale : very very annoying !
                        Note : The new windows of Grapher 1.1 (Grapher secondary window > New Graph > 2D or 3D Graph) always open in the same place on the screen( OS X 10.4.11 configured in French) depending on the language used by Grapher : if it’s English, well placed and covering most of the screen, if it is French, the windows are half length but same height and are located on the right side of the screen. This anomaly disappeared with Grapher 2.0, 2.1, 2.2 (English or French).
                        The remedy : to restore the 2D graph after opening a GCX files (.gcx) : menu Format > Layout > Size > redo the initial choice (Paper size or L and H values) to be done twice ; then menu View > Frame limits... > enter minimum and maximum vaues of the y scale. This requires to note four numerical values, L, H, y-min, y-max, for example at the top of the equation list (or at the bottom : see bug nr. 27).
                        Proposed correction : complete saving in 2D.
    For the full list of Grapher's bugs please download "Instructions for Use - Grapher" (English) or "Mode d'emploi de Grapher" (French). Quick glance at the Contents (pages 2 & 3) you'll be surprised by the possibilities of Grapher.app despite the bugs.
      Enjoy,
    Au revoir,
    YB24

  • Error while saving xml file using PDFDocument API

    Hi,
    I am trying to save xml file using byte array obtained from interactive form element in webdynpro java.
    The file gets saved but I get fllowing error message when I open the file.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    An invalid character was found in text content. Error processing resource 'http://uxjciesk.wdf.sap.corp:50000/irj/go/km/doc...
    The code I am trying to achieve the functionality is:
    byte[] byteArray  = wdContext.currentContextElement().getPdfSource();
    IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler();
    IWDPDFDocumentAccessibleContext documentAccessibleContext = pdfDocumentHandler.getDocumentAccessibleContext();
    documentAccessibleContext.setPDF(byteArray);
    IWDPDFDocument pdfDocument = documentAccessibleContext.execute();
    ByteArrayInputStream dataInputStream = (ByteArrayInputStream) pdfDocument.getPDFAsStream();
    further, the datainputstream is used to store the file. I am able to save same xdp template in pdf file format successfully, the error only occurs for xml file storage.
    Please, advise.
    Regards,
    Urvashi

    Hi Urvashi,
        Try this code
              String contentStr = getXMLData(wdContext.currentContextElement().getPdfSource().read(false));
              String data = "";
              ByteArrayOutputStream pdfSourceOutputStream = new ByteArrayOutputStream();
              try {
                   InputStream pdfSourceInputStream = wdContext.currentContextElement().getData().read(false);
                   BufferedInputStream bufferedInputStream = new BufferedInputStream(wdContext.currentContextElement().getData().read(false));
                   int aByte;
                   while ((aByte = bufferedInputStream.read()) != -1) {
                        pdfSourceOutputStream.write(aByte);
                   pdfSourceOutputStream.flush();
                   pdfSourceOutputStream.close();
                   IWDPDFDocument pdfDocument = null;
                   try {
                        // Create an instance for PDFDocumnetHandler
                        IWDPDFDocumentHandler pdfDocumentHandler = WDPDFDocumentFactory.getDocumentHandler();
                        //Create an Inatance for PDFDocumentAccessibleContext
                        IWDPDFDocumentAccessibleContext documentAccessibleContext =     pdfDocumentHandler.getDocumentAccessibleContext();
                        //set the pdf data as OutputStream to the PDFDocumentAccessibleContext instance
                        documentAccessibleContext.setPDF(pdfSourceOutputStream);
                        //call the server to get the data                      
                        pdfDocument = documentAccessibleContext.execute();
                        //get the xml data in a InputStream
                        ByteArrayInputStream dataInputStream = (ByteArrayInputStream) pdfDocument.getData();
                   } catch (Exception e) {
                        data = "Null";
              } catch (IOException e) {
    Regards,
    Mathan

  • Read saved outlook files using plsql

    Hi,
    Is there anyway of reading the contents of a saved outlook email file (.msg format) using plsql developer.
    I'm interested in reading the sent time and sender name.
    I know you can read directly from email account but unfortunately thats not possible in my context. I have to read from saved .msg file in a directory.

    garuka wrote:
    Hi,
    Is there anyway of reading the contents of a saved outlook email file (.msg format) using plsql developer.
    I'm interested in reading the sent time and sender name.
    I know you can read directly from email account but unfortunately thats not possible in my context. I have to read from saved .msg file in a directory.How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    solution depends upon where "you" reside & where directory "resides"

  • Receive mail with POP3 and saving to file using XI

    Hello! I'm new to XI, could you help me with this "simple" task: Receive mail with POP3 and saving to file.
    Thanks!

    Hi,
    you will need:
    Mail Sender Adapter
    http://help.sap.com/saphelp_nw04s/helpdata/en/23/c093409c663228e10000000a1550b0/frameset.htm
    and File Receiver Adapter
    http://help.sap.com/saphelp_nw04s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    Regards
    Patrick

  • After saving a file using Excel 2010 in the My Documents folder, it cannot be found using the open button in Excel 2010

    When certain files are saved using Excel 2010 to the My Documents folder, they cannot be found by using the Open button within Excel 2010.  But the file is always found using My Computer and following the path to My Documents.  What is
    even odder is that if I do a "Save As" within Excel and rename the file to the same name but with a "!" at the beginning of the name, it will then show up in the Excel Open window.  There doesn't seem to be a distinct pattern as to
    when the file can or cannot be displayed by the Excel Open button.
    I am using Windows 7 64bit along with Office 2010 64bit.  Windows has current service packs and updates.  There are perhaps 200 - 400 Excel files in the My documents folder. Some of them are .XLS and some are .XLSX.
    William Fearn

    Hi,
    Do you mean that you can't find the Excel file when you click Excel->Open->My Documents folder? 
    Do you use the other folder path to test?
    Dose the issue occur in other Office suits (Word, Power Point)?
    Do you get some error message, like "Windows cannot find 'FilePath\FileName', Make sure you typed the name correctly, and then try again."?
    Please try the following methods:
    Method1:
    1. Go to the registry. Click START, and in the RUN command line type REGEDIT and hit ENTER or click OK.
    2. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.8\Shell\Open\Command
    3. Double click on the (Default) instance over to the right. Right now this probably says something like:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    Change this value to:
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    4. Navigate to the following key: HKEY_CLASSES_ROOT\Excel.Sheet.12\Shell\Open\Command
    Again, double click the (Default) entry to the right and change
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /dde
    to
    C:\Program Files\Microsoft Office\Office14\EXCEL.EXE /e "%1"
    Note : Please backup the registry key before you modify.
    Method2:
    Click the File tab, and then click Options.
    Click Advanced, scroll down to the General
    section, and then clear the Ignore other applications that use Dynamic Data Exchange (DDE) check box in the
    General area.
    Thanks
    George Zhao
    Forum Support
     Come back and mark the replies as answers if they help and unmark them if they provide no help.
     If you have any feedback on our support, please click "[email protected]"

  • Trouble saving system files using resource hacker.

    I have a Windows 7 pc. I recently installed a new program called resource hacker which allows you to modify system files. I also on my computer have a Windows XP VHD which I also installed the program. I first tried editing the explorer.exe file on windows
    7. The few first times I was able to use system restore to restore my computer back to an earlier date. I edited the explorer.exe file on Windows XP also. On Windows 7 once it was edited, I followed the instructions on how to save it. When I saved it I has
    to restart my computer. Once I did that, the desktop color came on and the icons and start menu and taskbar were gone as if there were no explorer.exe file at all. This time when I did it I went to system restore in the system recovery options before
    I got to the log on screen. It said that there were no restore points available. I also tried putting the original files in the windows folder through task manager, but that didn't work either. when I restarted I got the same screen as I did before. I managed
    to save it on Windows XP. In Windows XP I just had to go and end the explorer.exe file in task manager. I did that and I got the desired result that I edited it for. On Windows 7 I followed the instructions of how to save it, but it just won't work. I followed
    the instructions just as they said but I get the same result every time. On the website that it tells you how to save it, but what I don't understand is that how they did it so easily on Windows 7, but when you try to save it on your own computer you
    run into that same problem that I am running into. What I don't get is that how it works on Windows XP, but I can't get it to work on Windows 7. I hope that help clarify the issue that I am having with my computer and the program.

    Yes, I suspect there're some corrupted or missing system files, please press win+R, launch "Run" dialog box, type "cmd" or command prompt in recovery console tool (you should login in as a admin), then type the following command
    DISM /Online /Cleanup-Image /RestoreHealth
    check if it can help you fix the incorrect files.
    Regarding to the the missing restore point, please take a look in this link:
    http://blogs.technet.com/b/win7/archive/2011/02/16/restore-points-lost-after-system-rebooting.aspx
    Please also check the event viewer, run "eventewr" in command prompt, it will launch the event viewer interface
    Regards
    Yolanda
    TechNet Community Support

  • I-text for saving html files using java

    hi,
    i'm writng a small application and it has some report generation part based on some html templates.
    These templates have some images which are given the relative path in the html template files.
    when i generate my reports they generated and save in some other location and the thing is quite naturally all the image files are missing. can anyone help me to overcome this problem??
    thanks in advance.

    If you are using Windows take a look at what Internet explorer does when you save a web page
    If the files is save as MyFile.htm the browser will create a folder called MyFile_Files and store all the images there. and it will modify the code of the html file to refer those images.
    I think that you will have to do the same.
    Or
    Find some API which can convert HTML page in to PDF and save PDF then you will get a one file with everything in it. I think that is a better solution.
    But the way If you found such an API dont foget to post here about it . I have the same problem and I dont like the solution one

  • Open pdf file using action links

    Dear all,
    I am trying to open a pdf file residing in the following location (/bishiphome/Middleware/Oracle_BI1/bifoundation/web/app/olh/l_en).
    I choosed this location just to make sure there are no access right problems.
    I am able to open any html file residing in this folder using an action link (URL:http://IPADDRESS:PORT/analytics/olh/l_en/biee0001.htm) but once I try with a pdf file http://IPADDRESS:PORT/analytics/olh/l_en/Test.pdf I get the following error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URIPS: When I copied the pdf file to the folder I restarted weblogic.
    Any idea guys?
    Regards
    Adil

    Hi Adil,
    Placing the pdf file in /l_en folder dint work for me too however you can place them inside the following paths and restart the services,
    D:\MWARE\user_projects\domains\bifoundation_domain\servers\AdminServer\tmp\_WL_user\analytics_11.1.1\silp1v\war\res
    AND
    D:\MWARE\Oracle_BI1\bifoundation\web\app\res
    You can then call your file with the url, http://hostname:port/analytics/res/filename.pdf
    It worked for me, let me know in case of any issues.
    Rgds,
    Dpka

  • Saving .jpg files using Photoshop elements 11

    I'm having troupble uing "save" and "save as" in Photoshop Elements 11.  This just started happening about a month ago.  Appprox. half the pictures I save do not appear in the designate file.  Instead a box with "JPG" inside appears.  The only way I can see the actual picture is to use a different application and resave.  I have an Apple.  Can anyone help with this?

    Then it is absolutely vital to delete the preferences. You must do this for PSE every time you do  a major OS X upgrade, like from 10.7 to 10.8 or from 10.8 to 10.9.
    For PSE 11, the files you want are
    com.adobe.PhotoshopElements.plist
    Adobe Photoshop Elements 11 paths
    Adobe Photoshop Elements 11 settings
    and any lockfiles with the same names. If you use the organizer, also look for anything starting with com.adobe.Elements Organizer.
    General directions are here:
    http://barbarabrundage.com/2013/10/28/photoshop-elements-and-os-x-mavericks/
    And take your finder windows out of cover flow view, if you've been using that--there's a known bug between mavericks  cover flow view and adobe products.

  • Firefox crashes when saving a file using the "Alsways ask me where..." download option, but NOT when using the default "Save files to..." download option.

    My OS is XP-x64.
    The Firefox version I am on is 14.0.1 (July 2012, "FunnelCake").
    The "C: \Documents and Setting\Downloads\" is the folder I used to try downloading the same file to via 2 different methods.
    1) When this folder is set as the permanent download location, it works.
    2) When I use the "Always ask me where.." download setting, and I select the same folder, the Firefox window completely disappears without any message at all !
    I get the same result with (2) even if I already turned my VirusScan software off.
    This same behavior persists after completely uninstalling and re-installing Firefox.

    Hi,
    You can try to right-click and '''Reset''' the '''browser.download.lastDir''' key in [http://kb.mozillazine.org/About:config about:config].
    [http://kb.mozillazine.org/About:config_entries about:config Entries]

  • Saving excel file using HSSF api

    I am using HSSF api to download an excel file. But the end users are not able to save the file. Some of them do not get the popup file download window so that they can choose to open or save. Is there a setting in the browser which shows up the window? The users may have different versions of excel on their pcs.
    How to show the excel application menu 'file' so that users can save this file?
    Any help would be appreciated.

    Prakash,
              I have followed your weblog and set the content dispostion.
    HttpServletResponse res = request.getServletResponse(true);
                   try {
                        res.setContentType("application/vnd.ms-excel");
                        res.setHeader("Content-disposition", "inline; filename=report.xls");
                        wb.write(res.getOutputStream());
                   } catch (Exception e) {
                        e.printStackTrace();
    When I test this on my pc, I get file download window and I can choose 'open' or'save'. I also have tested this on some of my collegues PCs successfully. But the some of the end users are not getting this window.
    when the same is file is downloaded by running an asp page the enire MSExcel application with standard tool bar and menus(file edit etc..) is showing up.
    Why is it not poosible to get the same result using HSSF api?

  • Help needed saving excel file using servlet and mailing it as attachment

    Hi,
    I have to enhance an existing application in which (in jsp) using response.setContentType("application/vnd.ms-excel");
    response.setHeader("Content-Disposition", "attachment=inline");
    and stuff ..
    we are asking user to view or save the file. But now i have to write code to save that xls, and send it as an attachment to other users of the application.
    I am new to this plz help me out
    Thanks in advance
    Regards
    Aashi

    Hi Orlando,
    convert content to Hex format then,
    lw_document = cl_document_bcs=>create_document(
               i_type    = 'RAW / HTM'
               i_text    = lw_main_text
               i_subject = lw_subject ).
          w_document->add_attachment(
             i_attachment_type    = 'XLS'
             i_attachment_subject = lw_att_sub
             i_att_content_text   = p_int_soli[]
             i_att_content_hex    = p_int_solix[] ).
    w_int_address = lw_smtp-low.
                 w_camuser = cl_cam_address_bcs=>create_internet_address( w_int_address ).
                 w_recipient = w_camuser.
    thanks,
    Anil

  • How to insert text from saved text file using line number to indesign document to specific cursor point?

    i'm using indesign for make books. always i need insert quotes from some holy books. so i need to insert text using verse number

    i'm not asking about
    b
    u
    l
    l
    e
    t and
    n
    u
    m
    b
    e
    r
    i
    n
    g
    sorry for my bad english
    my target is simply insert pre typed sorted texts using the verse number. for example. i have Holy Quran full text . it have about 6000 verse. suppose i need chapter 3, verse 5 in to my paragraph. manually i goto that text file and copy the text paste it here. but i need it automatically using page number/ verse number/ unique id. script / addins .
    approximately like "data merge " in design.

  • How to compare and edit Resource bundle file using java programe

    Hi All
    I have two resource bundle with key, value and some comments. I need to write a java code to compare both of the values of the keys and if the values are different then i want to replace the second value with the first value.
    Its a programe which will udpate the second file with the first file values.
    I tried using Properties class but it didnt worked because when i am saving the file using store method it removes all the comments and the order of text also got disturbed.
    How I need to do this any help appriciated.
    Please elt me know if someone needs more info.
    Thanks in advance.

    Let's assume the ini file is a mapping type storage (key=value) so lets use Properties object. (works with java 1.4 & up)
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.Properties;
    public class Test {
         private static Properties props;
         public static void main(String[] args) throws IOException {
              File file = new File("test.ini");//This is out ini file
              props = new Properties();//Create the properties object
              read(file);//Read the ini file
              //Once we've populated the Properties object. set/add a property using the setProperty() method.
              props.setProperty("testing", "value");
              write(file);//Write to ini file
         public static void read(File file) throws IOException {
              FileInputStream fis = new FileInputStream(file);//Create a FileInputStream
              props.load(fis);//load the ini to the Properties file
              fis.close();//close
         public static void write(File file) throws IOException {
              FileOutputStream fos = new FileOutputStream(file);//Create a FileOutputStream
              props.store(fos, "");//write the Properties object values to our ini file
              fos.close();//close
    }

Maybe you are looking for

  • Password Invalid on iPhone - But Works on MacBook

    Ok- Plugged in an old Airport Express - White - Tried some old passwords on the iphone - it kept telling me: "incorrect PW -cannot connect".. So I fired up the laptop which "remember the PW" in the keychain...Everything connected great... So then I w

  • How many Sessions can I invoke?

    Hello experts, afaik there are some limitations regarding how many sessions I can use simultanously for web service calls. I think I saw some information in this forum, but I do not find it again :-(. I know the "20 requests per session" rule, but ho

  • Cost of RAM in store

    Hello, So I went to the Apple Store in Durham NC yesterday to get a 2.0Ghz MacBook. I knew exactly what I wanted so I was a very easy sell. I knew the exact configuration that I wanted and how much it was going to cost. They brought my MacBook to the

  • How to configure my SharePoint url as public url?

    I am accessible my SharePoint url within domain,But i need to configure it publically how should i configure?

  • Why can't I use a gift card from other country?  :(

    My friend bought me a gift card and sent it to me. I try to activate it but it say "can use only in that country" That's  mean it not activate in Thailand. Then we try to do the other way....by sent that app as a gift. But still the same...because it