How can I use a SWF as a web request proxy between Javascript and my server?

I know I can call my server directly from javascript.  However, I want to do this through a non-GUI SWF file.
I'm fairly new to Flash but have gotten all the CS3 tools from work.
Does anyone know of any examples on:
1. how to make a web request from within flash provided the URL, post content, and timeout
2. how to call a Flash API from javascript asynchronously
3. how to detect whether the browser being used can support my SWF (I don't want it to prompt to install Flash if they don't have it yet)
I'm actually hoping someone has already done this and has a sample already built.
Thanks for any help.
Kevin

glkad - I think you misunderstood what I'm after.
I don't just want to send the browser to another URL.  Here's the flow:
A. javascript initiates a GET or POST web request through the SWF file providing a timeout
B. the SWF actually makes the request to the server failing if the timeout is exceeded
C. the SWF notifies the javascript when the call is complete (or times out) and provides the content returned from the server as a string
I'm looking for more details regarding your answer #3.  HOW can Idetect if flash is available?  (remember, I'm a newbie at flash )
Thanks.
Kevin

Similar Messages

  • Limited storage in iPhone so i bought 20g iCloud. how can i use this iCloud storage in my device to store music and photos?

    I have a limited storage in iPhone so i bought 20g iCloud. how can i use this iCloud storage in my device to store music and photos?

    Welcome to the Apple Community.
    You could sign up for iTunes match and use iCloud photo library with optimisation enabled. The later will keep optimised photos on your device and iTunes match will let you access your whole collection and make room for newer content by removing older unplayed items.

  • How can WLS use JSP pages in a Web Application witth just a JRE [Web Application, WAR, JSP, weblogic.jsp.pageCheckSeconds and JRE]

              How can WLS use JSP pages in a Web Application (either a .war file or a war directory structure) without a java compiler?
              I suspect either the JSP specification is flawed (i.e. it doesn't take account of servers using just a JRE), or BEA's implementation is broken.
              Production servers do not have a JDK installed. They only have a JRE. Therfore a java compiler is not present on the machine that the Web Application is deployed onto.
              On the development machine, when the server is requested to load the JSP it creates a tmpwar directory within the Web Application directory structure. This is then included in the resultant .war file thus:
              D:\war>jar -tf gmi.war
              META-INF/
              META-INF/MANIFEST.MF
              gmiService.jsp
              WEB-INF/
              WEB-INF/classes/
              WEB-INF/classes/com/
              WEB-INF/classes/com/bt/
              WEB-INF/classes/com/bt/gmi/
              WEB-INF/classes/com/bt/gmi/gmiService.class
              WEB-INF/getList.xsl
              WEB-INF/getListByConnection.xsl
              WEB-INF/getListByDistrict.xsl
              WEB-INF/getListByDistrictConnection.xsl
              WEB-INF/lib/
              WEB-INF/source/
              WEB-INF/source/build.bat
              WEB-INF/source/gmiService.java
              WEB-INF/web.xml
              WEB-INF/weblogic.xml
              tmpwar/
              tmpwar/jsp_servlet/
              tmpwar/jsp_servlet/_gmiservice.class
              tmpwar/jsp_servlet/_gmiservice.java
              When deployed on the production server with the web.xml file set to use the following values (note XML stripped):
              weblogic.jsp.pageCheckSeconds
              -1
              weblogic.jsp.precompile
              false
              weblogic.jsp.compileCommand
              javac
              weblogic.jsp.verbose
              true
              weblogic.jsp.packagePrefix
              jsp_servlet
              weblogic.jsp.keepgenerated
              false
              And in the weblogic.properties file:
              weblogic.httpd.webApp.gmi=war/gmi
              I've also tried with the .war file, but that insists on creating another tmpwar directory outside of the .war file.
              Then, although I have set pageCheckSeconds to -1 (don't check and don't recompile) ter production server still attempts to recompile the JSP's:
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param verbose initialized to: true
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param packagePrefix initialized to: jsp_servlet
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param compileCommand initialized to: javac
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param srcCompiler initialized to weblogic.jspc
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param superclass initialized to null
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param workingDir initialized to: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param pageCheckSeconds initialized to: -1
              Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: initialization complete
              Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java file: /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java
              Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java failed: Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/javac/Main
              java.io.IOException: Compiler failed executable.exec([Ljava.lang.String;[javac, -classpath, /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:/opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4boot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudscape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/weblogic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib/weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses:/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer/weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/wls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, -d, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war, /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.java])
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at java.io.IOException.<init>(Compiled Code)
              at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
              at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:187)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:118)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:142)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:744)
              at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:692)
              at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:251)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              

    The default Java compiler from sun lives in the tools.jar that comes with
              the JDK. Just add that to your set of JARs which are deployed in production
              and you should be fine. No need to install the full JDK - just make the
              tools.jar available to WebLogic.
              Regards
              James
              James Strachan
              =============
              email: [email protected]
              web: http://www.metastuff.com
              "Martin Webb" <[email protected]> wrote in message
              news:[email protected]...
              >
              > How can WLS use JSP pages in a Web Application (either a .war file or a
              war directory structure) without a java compiler?
              >
              > I suspect either the JSP specification is flawed (i.e. it doesn't take
              account of servers using just a JRE), or BEA's implementation is broken.
              >
              > Production servers do not have a JDK installed. They only have a JRE.
              Therfore a java compiler is not present on the machine that the Web
              Application is deployed onto.
              >
              > On the development machine, when the server is requested to load the JSP
              it creates a tmpwar directory within the Web Application directory
              structure. This is then included in the resultant .war file thus:
              >
              > D:\war>jar -tf gmi.war
              > META-INF/
              > META-INF/MANIFEST.MF
              > gmiService.jsp
              > WEB-INF/
              > WEB-INF/classes/
              > WEB-INF/classes/com/
              > WEB-INF/classes/com/bt/
              > WEB-INF/classes/com/bt/gmi/
              > WEB-INF/classes/com/bt/gmi/gmiService.class
              > WEB-INF/getList.xsl
              > WEB-INF/getListByConnection.xsl
              > WEB-INF/getListByDistrict.xsl
              > WEB-INF/getListByDistrictConnection.xsl
              > WEB-INF/lib/
              > WEB-INF/source/
              > WEB-INF/source/build.bat
              > WEB-INF/source/gmiService.java
              > WEB-INF/web.xml
              > WEB-INF/weblogic.xml
              > tmpwar/
              > tmpwar/jsp_servlet/
              > tmpwar/jsp_servlet/_gmiservice.class
              > tmpwar/jsp_servlet/_gmiservice.java
              >
              > When deployed on the production server with the web.xml file set to use
              the following values (note XML stripped):
              >
              > weblogic.jsp.pageCheckSeconds
              > -1
              >
              > weblogic.jsp.precompile
              > false
              >
              > weblogic.jsp.compileCommand
              > javac
              >
              > weblogic.jsp.verbose
              > true
              >
              > weblogic.jsp.packagePrefix
              > jsp_servlet
              >
              > weblogic.jsp.keepgenerated
              > false
              >
              >
              > And in the weblogic.properties file:
              >
              > weblogic.httpd.webApp.gmi=war/gmi
              >
              > I've also tried with the .war file, but that insists on creating another
              tmpwar directory outside of the .war file.
              >
              >
              > Then, although I have set pageCheckSeconds to -1 (don't check and don't
              recompile) ter production server still attempts to recompile the JSP's:
              >
              >
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: init
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              verbose initialized to: true
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              packagePrefix initialized to: jsp_servlet
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              compileCommand initialized to: javac
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              srcCompiler initialized to weblogic.jspc
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              superclass initialized to null
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              workingDir initialized to:
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp: param
              pageCheckSeconds initialized to: -1
              > Mon Sep 25 11:40:11 BST 2000:<I> <WebAppServletContext-gmi> *.jsp:
              initialization complete
              > Mon Sep 25 11:40:12 BST 2000:<I> <WebAppServletContext-gmi> Generated java
              file:
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java
              > Mon Sep 25 11:40:14 BST 2000:<E> <WebAppServletContext-gmi> Compilation of
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java failed: Exception in thread "main" java.lang.NoClassDefFoundError:
              sun/tools/javac/Main
              >
              > java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[javac, -classpath,
              /opt/Solaris_JRE_1.2.1_04/lib/rt.jar:/opt/Solaris_JRE_1.2.1_04/lib/i18n.jar:
              /opt/Solaris_JRE_1.2.1_04/classes:/var/wls/5.1/weblogic/lib/weblogic510sp4bo
              ot.jar:/var/wls/5.1/weblogic/classes/boot:/var/wls/5.1/weblogic/eval/cloudsc
              ape/lib/cloudscape.jar:/var/wls/5.1/weblogic/lib/wleorb.jar:/var/wls/5.1/web
              logic/lib/wlepool.jar:/var/wls/5.1/weblogic/lib/weblogic510sp4.jar:/var/wls/
              5.1/weblogic/license:/var/wls/5.1/weblogic/classes:/var/wls/5.1/weblogic/lib
              /weblogicaux.jar:/opt/wls-servers/gmiServer/weblogic/gmiServer/serverclasses
              :/opt/wls-servers/gmiServer/weblogic/lotusxsl.jar:/opt/wls-servers/gmiServer
              /weblogic/xerces.jar:/opt/wls-servers/gmiServer/weblogic/logging.jar::/opt/w
              ls-servers/gmiServer/weblogic/war/gmi/WEB-INF/classes:/opt/wls-servers/gmiSe
              rver/weblogic/war/gmi/_tmp_war, -d,
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war,
              /opt/wls-servers/gmiServer/weblogic/war/gmi/_tmp_war/jsp_servlet/gmiService.
              java])
              > at java.lang.Throwable.fillInStackTrace(Native Method)
              > at java.lang.Throwable.fillInStackTrace(Compiled Code)
              > at java.lang.Throwable.<init>(Compiled Code)
              > at java.lang.Exception.<init>(Compiled Code)
              > at java.io.IOException.<init>(Compiled Code)
              > at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Compiled Code)
              > at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              > at weblogic.servlet.jsp.JspStub.compilePage(Compiled Code)
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              > at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
              7)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :118)
              > at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :142)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:744)
              > at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:692)
              > at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:251)
              > at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              > at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              > at weblogic.kernel.ExecuteThread.run(Compiled Code)
              >
              >
              >
              

  • How can we get the prompt to enter IP Address, Subnet Mask , gateway and DNS Server during Task Sequence?

    How can we get the prompt to enter IP Address, Subnet Mask , gateway and DNS Server during Task Sequence?

    This is for 2007 but may still be relevant for 2012
    http://hexdump.net/?p=391
    Cheers
    Paul | sccmentor.wordpress.com

  • How can I use Flash_Slideshow.SWF in my Flash CS4 document?

    Hi,
    I have downloaded a nice Flash Slide show file (.SWF) and would like to use in my Flash CS4 document without any modification (as it is). How can I use it? There is no .Fla file this Slide Show. It just works using xml file.
    Please do help.

    Hi,
    You need to load a .swf file in your flash document using the loader class. I'm assuming you are using the AS3. Please click on the below link which helps you to use the loader class.
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html
    Thanks

  • How can I use JEditorPane in my simplified web system? URJENT!!!!!

    Hello friends!
    In my client side browser..I would like to display the contents of web pages which are retrieved from the web server.
    Does the JEditorpane is useful in this scenario? if so how can i display?
    As i accept data in stream from the server..how can i give it to JEditorpane?
    Please do reply me ...fastly.

    If you want something done fast, then why don't you try reading the API. The API:
    a) points your to the Swing tutoral on "Using Text Components" which has a working example
    b) shows you 3 ways to load data into the JEditorPane.

  • How can I use two different PC's with Lr5.5 to manage and process my photos stored on external disk, and exchange the analysis between these two computers?

    I operate on two computers and would like to be able download  Lr jobs done on my laptop,  to my stationary PC, also used to process other images, all stored on the same external disk.
    In other words I want to process may photos on two PCs and to to have access to all analyses from one or even better from both computers independently.
    Samek.

    You need to put your photos AND LR catalog file (.lrcat) on the external drive, and make sure the external drive has the same device name or drive letter on both computers.
    I have been using LR this way for several years and it works fine as long as you MAKE A BACKUP of the external disk somewhere, in case you lose or drop/damage the external drive which is easy to do.  Nightly, or sometimes more than once a day, I copy all changes from my working external disk to another similar-sized external disk.  I have lost a disk, once, and dropped/destroyed a disk, once, but recovery is as easy as using what used to be the backup disk as the primary one, and buying a new disk for the backup device.  It does take some hours to copy the 1TB of photos to the new backup disk, but once that is done, it usually only takes a few 10s of minutes or less to copy what is new or changed each night.

  • How can i change when i start the mac book pro, between mac and win?

    when i start the mac book pro, between mac and win?

    If you want to set which OS your system boots into (provided Windows is installed using BootCamp and not a virtualization option such as Parallels, Fusion, or VirtualBox), just hold the "Option" key down when you turn your computer on.  Continue to hold the key down until you see the options for booting into the OS of your choice.  Just click on the arrow under the one you wish (tap to click won't work here if you have it enabled... you'll need to physically click the trackpad).  If you want to change which OS your system normally boots into, just go into System Preferences in OS X and select "Starup Disk".  Whichever OS you select here will be the OS your system will automatically boot into.

  • How can I use a script to search for a list of filenames and copy them to another directory

    Hi all,
    I'm quite new to using scripts etc and wondered if anyone could help? I've only ever modified preset folder scripts so making one from scratch is a bit new to me, but it would also be great if anyone else has done this before if they could pass on there script and ill modify to suit my needs.
    I will be recieving a tab delimited file containing a list of 150 - 200 clips every day and I need to pull those files onto a hard drive.
    All of the files are housed in one folder on the internal media drive and I would like to be able to have applescript / automator / whatever  either look through the tab file and then move the files in the tab file from the internal media drive to the external transport drive or I copy and paste the filenames into the script and run it and the script moves the files from the internal media drive to the external transport drive.
    Hope someone can help,
    Many Thanks

    There are no other files in the source video root folder nor are there any folders within the subfolders.
    I have tested the script and the response I am getting is this....
    Could this be something to do with the {} on the set filestoMove command?
    In the replies box I get the following....
    tell current application
      read alias "Macintosh HD:Users:Ben:Desktop:Untitled.txt"
      --> "000004_1__4michaeljmcevoy_4iLlBuDjjG0"
    end tell
    tell application "System Events"
      count folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 10
      count item 1 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 1 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> ".DS_Store"
      count item 2 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 2 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000004"
      count item 3 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 3 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000005"
      count item 4 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 4 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000006"
      count item 5 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 5 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000007"
      count item 6 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 6 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000008"
      count item 7 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 7 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000009"
      count item 8 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 8 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000010"
      count item 9 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 9 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000011"
      count item 10 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> 1
      get name of item 1 of item 10 of folder "Macintosh HD:Users:Ben:Desktop:source"
      --> "000012"
    end tell
    tell application "Finder"
      -- 'core'\'clon'{ 'insh':'alis'($000000000152000200010C4D6163696E746F7368204844000000000000000000 000000000000CA40F7FC482B00000006AB3D06736F75726365000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000 00000007FD33CAFABF2E0000000000000000FFFFFFFF000009200000000000000000000000000000 00074465736B746F7000001000080000CA40E9EC0000001100080000CAFABF2E00000001000C0006 AB3D0006AA9B0000BEEC000200284D6163696E746F73682048443A55736572733A0042656E3A0044 657…
      --> {}
    end tell
    Result:

  • How can I use the Messaging App & Game Center when both my wife and I are using same apple ID on our ipads?

    When I try to set up my wife's messages app, it tells me the apple ID is already in use and won't let me go through with it.  Also, after the IOS5 update, my wife's game center login went away and syncs to mine and we cant figure out how to get it back to hers.

    You will need to create a new Apple ID for your wife.  This may require a new email address too.  As for Game Center, there is a sign out dialogue on the main page if you tapon your ID.

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • How can i use passbook in romania?

    How can i use passbook in romania?
    when i open the app and i touch app store, something is loading and aftept waiting 10 minutes is still loading...
    how can i use it?
    please help me
    iPhone 4s I.O.S 6

    Re the Canvas window ... before exporting your sequence, rendering, etc it should be set to Fit to Window, this can avoid problems
    In FCE you can't set your own default transition. It is always the Cross Dissolve. If that is the one you want to use, when you drop your pics onto the timeline you can drag them over to Overwrite with Transition or hit Shift-F10. If you want to use multiple occurances of another trans, apply it once, double click to put it in the Viewer then just drop that down onto your clips
    I haven't used Aperture but I think that how they appear in the timeline depends upon the size they are created in. Search this forum, there is plenty of info about that. Generally Final Cut sizes the pics to fit into your video sequence. Put a pic in the timeline, click it, select Edit>Remove Attributes and from the submenu select Motion, see what happens

  • How can I use the iPhone 4S with no SIM card?

    How can I use the 4s with
    no SIM card
    Just for photo and internet

    Using an iPhone without a wireless service plan - Support - Apple

  • How can i use my own Fonts in iCloud Pages?

    How can i use my own Fonts in iCloud Pages?

    Baluk wrote:
    And WebHosted Fonts like GoogleFonts?
    No.
    To tell Apple you want such features added, go to
    http://www.apple.com/feedback

Maybe you are looking for

  • Upgrade install to 10.5 Mail problems solution

    Ok, I am posting this after 2 days of research why Mail behaves crazily after I installed 10.5 via update. I tried archive and install as well with same Mail problems resulting. Now maybe this wont work for everybody, but it solved all my problems li

  • I had thought AT&T was bad but Verizon now TAKES THE CAKE!!!

    Been nightmarish as all I want is a dial tone and internet!!!! Verizon doesn't seem to want or be able to do that!!!  About 3 weeks ago or so,  the nice young man standing on my porch convinced me (again after a previous nightmare experience) to swit

  • EDI: partner profile for shipping point or plant

    I want to issue idocs for delivery notes based on shipping point or plant, not shipto party as is usual. How can I go about this? It looks like I need to create a new partner type. Or can I use logical systems? If logical system is used, then how do

  • Is it possible... Xbox Live + Mac ?

    I'm trying to connect my Xbox 360 to Xbox Live trough my MacBook Pro. I did started the internet sharing on my mac, and i have the correct settings (share yout connection from AirPort. To computers using Ethernet) but my xbox still doesn't recognize.

  • IDoc error "customer  and sales area : GR could not be uniquely determined"

    Hi All, While posting some IDocs i am getting error customer  and sales area : GR could not be uniquely determined even when entries are available in EDSDC table. Please assist.