Writing scripts to edit or parse txt file How To?

Not sure if this is the correct forum for programming type question. If not someone point me in the right direction?
I'm a programming student and I'd like to teach myself some scripting skills over the summer break.
In particular, I've got a txt file I'd like to split into three txt files. A google calendar file that I'd like to divide into three separate calendars.
I know what strings I want to put where. My problem is what scripting language am I trying to use? Applescript? Something else?
Any suggestions or ideas? Recommendations on reading materials or sample scripts I should look at?
Thanks for the help.

Perl is a huge programming language. A more expedient project would be to learn some basic shell commands such as sed, awk, tr and cut. The sed command is optimized for linewise operations, awk is optimized for columnwise operations and tr is a basic character translation tool especially useful when feeding Mac files into a UNIX command.
Setting up sed and awk commands to read and write files is a big part of learning, especially since shell commands cannot normally write to a file in situ.
Applescript is not ideal for text manipulation as it is slow, uses a bulky delimiter system and has irritating file access limitations. However it can be a powerful interface for the above mention shell commands. Applescript offers an ideal way to assemble shell commands with user-input variables. Of course, shell commands cannot be interactive with Applescript, so you learn to do incremental operations on text files.
Another handy use for Applescript is to send your command to Terminal, which makes an ideal output display.

Similar Messages

  • How do I stop Apple Script from leaving a Text.txt file with each image downloaded using Photo Downloader in Adobe Photoshop CS4_Bridge???

    I use Adobe Photoshop CS4_Bridge _Photo Downloader to import images from CF Cards into my 11" Mac Book Air.  I have an issue with the Text files
    that seem to accompany each and every image that I do not need.  How do I stop Apple Script (which I assume is the culprit in this case)  from interferring with this process.

    Your iWeb Site is stored not on your iDisk, but on a file named Domain.sites in your ~/Home/Library/Application Support/iWeb/ Folder.
    If , for whatever reason, you wipe your HD and/or lose this file (Get a new computer, Re-Install your OS, Stolen Laptop, Crashed HD, Etc.) without backing-up your Domain.sites file then you will have to re-build your iWeb sites from scratch again.
    Of course you can edit your Published HTML files in a different program such as Dreamweaver or even Text Edit. You just can't edit Published HTML files in iWeb. Not at this time at least.
    Use iWebBackup to backup your Domain file to a Blank CD or DVD. Backing up your Domain file to another folder on your computer is not fully backing it up. If your computer gets stolen you still lost the file but if you have your Domain file burned onto a CD you have a backup!
    Download iWebBackup Here
    You can use iWebExtender to automatically consolidate your files into one folder and delete multiple images.
    http://iWebFAQ.com

  • Convert Script output data to Text(.txt) file & send mail with attachment.

    Hi All,
    Requirement: I shulb be able to conver th Script output data to Text(.text) file & send a maill with attachment with this text file. Formant of text file should be like output of Print priview.
    Plese sugget with Function modules to cover as Text file.
    I am able to converting the Script output data to PDF and sending mail with attachment. So I don't want PDF file now.
    Thanks in advance.

    Hi, Thanks for responst.
    We can convert the Scirpt output to PDF file by using OTF function module and the PDF file looks like Print Privew output.
    Same like this I want Script out in NOTEPAD (.txt). Is that possible, Plz sugget with relavent Function Modules.
    Thanks.

  • Shell Script to send email with .txt file as attachment

    Dear Al,
    Could any one help me with code, for sending email with .txt file as attachment using shell script.
    Thank You!

    978334 wrote:
    Dear Al,
    Could any one help me with code, for sending email with .txt file as attachment using shell script.
    Thank You!http://bit.ly/XHfSCz
    https://forums.oracle.com/forums/search.jspa?threadID=&q=sendmail&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Parse .txt file

    I have a .txt file that logs data every 1 min for certain elements and would like to parse the text file to show only every 5mins to the user. I have attached the txt file and the VI I'm working on with this question.
    For example the text file shows for ECG Rate: ECGRATE$<UNIT=/min>&<TIME=2014-01-28T09:37:18><VAL​UE=44>&<TIME=2014-01-28T09:38:19><VALUE=44>&<TIME=​2014-01-28T09:39:18><VALUE=47>&<TIME=2014-01-28T09​:40:18><VALUE=45>&<TIME=2014-01-28T09:41:19><VALUE​=43>&<TIME=2014-01-28T09:42:18><VALUE=42>&<TIME=20​14-01-28T09:43:19><VALUE=44>&<TIME=2014-01-28T09:4​4:18><VALUE=46>&<TIME=2014-01-28T09:45:18>
    I would like to display the current value on the front panel only every five mins. 
    Bonus would be in addition to the above would be plot all values on a graph also, but lets start with the first step.
    Attachments:
    PRIMData.vi ‏28 KB
    Data.txt ‏53 KB

    Crosspost
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Only writing Integer pixel array to a .txt file,or showing in Frame

    Sir,
    I want to write integer values (range:0 to 255) to a .txt file .Actually after manipulating a .jpeg/.gif image I have gotten a 2D pixel array and a 1D pixel array that can be easily shown in console but I want to write this pixel array into a .txt file. Using of writeInt() is not working. Actually after using this faction the created file contain information which is non-alphanumeric /alphanumeric characters......
    following is error free the code: Plz. See only and only into the �class TestImage�and plz look after line marked by //�my_problem_to_be_resolved.�It is just few lines of code .I promise you will not be bothered.Plz��..
    import java.awt.*;
    import java.io.File;
    import java.io.FileWriter;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import java.awt.image.Raster;
    import java.awt.image.WritableRaster;
    class Image {
    protected int width,height;
    // 'samples' stores the image pixel values.
    protected int[][] samples;
    // Constructor: Reads the image from the
    // specified file name.
    public Image(String filename)
    throws Exception { read(filename); }
    // Returns the pixel width of the image.
    public int getWidth() { return width; }
    // Returns the pixel height of the image.
    public int getHeight() { return height; }
    // Reads the image from the specified file
    // name into the 'samples' array. Throws an
    // exception if the image is stored in an
    // unsupported file format (currently only
    // .GIF, .JPG, and .PNG are supported by Sun).
    public void read(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageReaders that claim
    // to be able to decode this image file
    // based on the file name suffix.
    Iterator imageReaders = ImageIO.
    getImageReadersBySuffix(ext);
    ImageReader imageReader;
    // Grab the first ImageReader in the list.
    if (imageReaders.hasNext())
    imageReader = (ImageReader)
    imageReaders.next();
    // If we get here we cannot decode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file input stream object to
    // read the image date.
    FileImageInputStream imageInputStream =
    new FileImageInputStream(fileImage);
    // Tell the ImageReader object to read data
    // from our file input stream object.
    imageReader.setInput(imageInputStream);
    // Get the width and height of the image.
    width = imageReader.getWidth(0);
    height = imageReader.getHeight(0);
    // Read the image from the file input stream,
    // and close the input stream when done.
    BufferedImage bufImage =
    imageReader.read(0);
    imageInputStream.close();
    // Get a raster object so we can extract the
    // pixel data from the BufferedImage.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Create our 'samples' 2d-array.
    samples = new int[height][width];
    // Extract the image data into our 'samples'
    // array.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    samples[row][col] =
    wRaster.getSample(col,row,0);
    // Write the image stored in the 'samples'
    // array to the specified file. The file name
    // suffix should be a supported image file
    // format (currently either .JPG or .PNG).
    public void write(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageWriters that claim to
    // be able to encode images in the specified
    // image file format based on the file name
    // suffix.
    Iterator imageWriters = ImageIO.
    getImageWritersBySuffix(ext);
    ImageWriter imageWriter;
    // Grab the first ImageWriter in the list.
    if (imageWriters.hasNext())
    imageWriter = (ImageWriter)
    imageWriters.next();
    // If we get here we cannot encode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file output stream object to
    // write the image data.
    FileImageOutputStream imageOutputStream
    = new FileImageOutputStream
    (fileImage);
    // Tell the ImageWriter to use our file
    // output stream object.
    imageWriter.setOutput
    (imageOutputStream);
    // The ImageWriter.write() method expects a
    // BufferedImage. Convert our 'samples' array
    // into a BufferedImage.
    BufferedImage bufImage =
    createBufferedImage();
    // Encode the image to the output file.
    imageWriter.write(bufImage);
    imageOutputStream.close();
    // Draws the image stored in the 'samples'
    // array on the specified graphics context.
    public void draw(Graphics gc,int x,int y){
    BufferedImage bufImage =
    createBufferedImage();
    gc.drawImage(bufImage,x,y,null);
    // Converts the 'samples' array into a
    // BufferedImage object. Students do not have
    // to understand how this works.
    private BufferedImage
    createBufferedImage() {
    // Create a monochrome BufferedImage object.
    BufferedImage bufImage = new
    BufferedImage(width,height,
    BufferedImage.TYPE_BYTE_GRAY);
    // Create a WriteableRaster object so we can
    // put sample data into the BufferedImage
    // object's raster.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Copy the 'samples' data into the
    // BufferedImage object's raster.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    wRaster.setSample
    (col,row,0,samples[row][col]);
    // Return the newly created BufferedImage.
    return bufImage;
    } // End of Class Image
    class TestImage {
    public static void main(String args[])
    throws Exception {
    // Create a frame to display the image.
    Frame frame = new Frame("Test Image");
    frame.setSize(1024,768);
    frame.setVisible(true);
    Graphics gc = frame.getGraphics();
    try {
    // Read the image from the file.
    Image img = new Image("C:/lilies.jpg");
    int height=img.getHeight();
    int width =img.getWidth();
    //�my_problem_to_be_resolved.�
         File image_object_arry=new File("C:/Image_array.txt");
         FileOutputStream image_object_arry_stream= new FileOutputStream(image_object_arry);
         DataOutputStream int_image_object_arry_stream=new DataOutputStream(image_object_arry_stream);
    //Conversion of two dimensional pixel arrry into one dimensional array
    int intPixels1[] = new int [height * width];
    int k = 0;
    for(int i = 0; i <= width; i++) {
    for(int j = 0; j <= height; j++) {
    intPixels1[k] = img.samples[i][j];
    int_image_object_arry_stream.writeInt((int) intPixels1[k]);
    // System.out.println(intPixels1[k]);
    k = k+1;
    import java.awt.*;
    import java.io.File;
    import java.io.FileWriter;
    import java.awt.image.*;
    import java.io.*;
    import java.util.*;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    import java.awt.image.Raster;
    import java.awt.image.WritableRaster;
    class Image {
    protected int width,height;
    // 'samples' stores the image pixel values.
    protected int[][] samples;
    // Constructor: Reads the image from the
    // specified file name.
    public Image(String filename)
    throws Exception { read(filename); }
    // Returns the pixel width of the image.
    public int getWidth() { return width; }
    // Returns the pixel height of the image.
    public int getHeight() { return height; }
    // Reads the image from the specified file
    // name into the 'samples' array. Throws an
    // exception if the image is stored in an
    // unsupported file format (currently only
    // .GIF, .JPG, and .PNG are supported by Sun).
    public void read(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageReaders that claim
    // to be able to decode this image file
    // based on the file name suffix.
    Iterator imageReaders = ImageIO.
    getImageReadersBySuffix(ext);
    ImageReader imageReader;
    // Grab the first ImageReader in the list.
    if (imageReaders.hasNext())
    imageReader = (ImageReader)
    imageReaders.next();
    // If we get here we cannot decode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file input stream object to
    // read the image date.
    FileImageInputStream imageInputStream =
    new FileImageInputStream(fileImage);
    // Tell the ImageReader object to read data
    // from our file input stream object.
    imageReader.setInput(imageInputStream);
    // Get the width and height of the image.
    width = imageReader.getWidth(0);
    height = imageReader.getHeight(0);
    // Read the image from the file input stream,
    // and close the input stream when done.
    BufferedImage bufImage =
    imageReader.read(0);
    imageInputStream.close();
    // Get a raster object so we can extract the
    // pixel data from the BufferedImage.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Create our 'samples' 2d-array.
    samples = new int[height][width];
    // Extract the image data into our 'samples'
    // array.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    samples[row][col] =
    wRaster.getSample(col,row,0);
    // Write the image stored in the 'samples'
    // array to the specified file. The file name
    // suffix should be a supported image file
    // format (currently either .JPG or .PNG).
    public void write(String filename)
    throws Exception {
    // Extract the file name suffix.
    String ext = filename.substring
    (filename.indexOf('.')+1);
    // Create a file object for the file name.
    File fileImage = new File(filename);
    // Get a list of ImageWriters that claim to
    // be able to encode images in the specified
    // image file format based on the file name
    // suffix.
    Iterator imageWriters = ImageIO.
    getImageWritersBySuffix(ext);
    ImageWriter imageWriter;
    // Grab the first ImageWriter in the list.
    if (imageWriters.hasNext())
    imageWriter = (ImageWriter)
    imageWriters.next();
    // If we get here we cannot encode the image.
    else throw new IIOException
    ("Unsupported image format");
    // Create a file output stream object to
    // write the image data.
    FileImageOutputStream imageOutputStream
    = new FileImageOutputStream
    (fileImage);
    // Tell the ImageWriter to use our file
    // output stream object.
    imageWriter.setOutput
    (imageOutputStream);
    // The ImageWriter.write() method expects a
    // BufferedImage. Convert our 'samples' array
    // into a BufferedImage.
    BufferedImage bufImage =
    createBufferedImage();
    // Encode the image to the output file.
    imageWriter.write(bufImage);
    imageOutputStream.close();
    // Draws the image stored in the 'samples'
    // array on the specified graphics context.
    public void draw(Graphics gc,int x,int y){
    BufferedImage bufImage =
    createBufferedImage();
    gc.drawImage(bufImage,x,y,null);
    // Converts the 'samples' array into a
    // BufferedImage object. Students do not have
    // to understand how this works.
    private BufferedImage
    createBufferedImage() {
    // Create a monochrome BufferedImage object.
    BufferedImage bufImage = new
    BufferedImage(width,height,
    BufferedImage.TYPE_BYTE_GRAY);
    // Create a WriteableRaster object so we can
    // put sample data into the BufferedImage
    // object's raster.
    WritableRaster wRaster =
    bufImage.getRaster();
    // Copy the 'samples' data into the
    // BufferedImage object's raster.
    for (int row = 0; row < height; row++)
    for (int col = 0; col < width; col++)
    wRaster.setSample
    (col,row,0,samples[row][col]);
    // Return the newly created BufferedImage.
    return bufImage;
    } // End of Class Image
    /*class TestImage {
    public static void main(String args[])
    throws Exception {
    // Create a frame to display the image.
    Frame frame = new Frame("Test Image");
    frame.setSize(1024,768);
    frame.setVisible(true);
    Graphics gc = frame.getGraphics();
    try {
    // Read the image from the file.
    Image img = new Image("C:/srk.jpg");
    // Display the image.
    img.draw(gc,10,40);
    // Flip the image upside down
    //img.flipX();
    // Display the flipped image.
    img.draw(gc,20+img.getWidth(),40);
    // Write the new image to a file
    img.write("HorseNew.jpg");
    } catch (Exception e) {
    System.out.println
    ("Exception in main() "+e.toString());
    class TestImage {
    public static void main(String args[])
    throws Exception {
    // Create a frame to display the image.
    Frame frame = new Frame("Test Image");
    frame.setSize(1024,768);
    frame.setVisible(true);
    Graphics gc = frame.getGraphics();
    try {
    // Read the image from the file.
    Image img = new Image("C:/lilies.jpg");
    int height=img.getHeight();
    int width =img.getWidth();
    File image_object_arry=new File("C:/Image_array.txt");
    FileOutputStream image_object_arry_stream=new FileOutputStream(image_object_arry);
         DataOutputStream int_image_object_arry_stream=new DataOutputStream(image_object_arry_stream);
    //Conversion of two dimensional pixel arrry into one dimensional array
    int intPixels1[] = new int [height * width];
    int k = 0;
    for(int i = 0; i <= width; i++) {
    for(int j = 0; j <= height; j++) {
    intPixels1[k] = img.samples[i][j];
    int_image_object_arry_stream.writeInt((int) intPixels1[k]);
    // System.out.println(intPixels1[k]);
    k = k+1;
    catch (Exception e) {
    System.out.println("Exception in main() "+e.toString());
    catch (Exception e) {
    System.out.println("Exception in main() "+e.toString());
    }

    My Friend, you need to put your code within CODE tags
    And I suspect if anyone would go through your code this way.
    Assuming your problem is to write pixel values to a file you may use this,
          try{
            // Create file
            FileWriter fstream = new FileWriter("out.txt");
            BufferedWriter out = new BufferedWriter(fstream);
            for(int i =0; pixels.length() ; i++)
              out.write(pixels[i]+"\t");
           //Close the output stream
           out.close();
           }catch (Exception e){//Catch exception if any
          System.err.println("Error: " + e.getMessage());
        }

  • .JS files download as .TXT files how can I download the files corectly

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/750416]<br>
    Thanks - c</blockquote><br>
    Recently upgraded to version 3.6.3 and since then when I try to download .JS files they actually download as .TXT files. I can download word files without a problem. I'm downloading scripts from my internet hosted database. In previous versions of FF I didn't have a problem. Is there a setting that I need to change or plugin I need?

    Try "Reset Download Actions": http://kb.mozillazine.org/File_types_and_download_actions

  • FileRecover recovered as txt files, how to fix?

    I have a client using Panther whose hard drive, it turns out, was too full. She was moving a selection of about five messages from her Inbox (POP) (described as having "thousands" of messages in it) to a new On My Mac folder. Suddenly all the messages in the Inbox vanished.
    First I gave her the standard lectures about hard drive space, mailbox size limits, and backups. Then I checked the sizes of files in the Mail folder. Neither the Inbox nor the target mailbox had a large enough filesize to be hiding the missing messages.
    Data Rescue didn't find anything useful.
    FileRecover turned up some files in .emlx format (isn't that Tiger? but they were all spam anyway), plus 146 files named 1.txt through 176.txt which appear to contain at least some of the missing messages (as you can see about 30 of the pieces are missing). Each txt file has one or more emails separated by lots of gibberish (attachments, maybe?). I surmise this is a mailbox that got broken up into pieces, since Panther didn't store individual messages, right? Is there any way to reconstitute it?
    In case it helps, here's the beginning of 1.txt:
    From [email protected] Sun Mar 27 13:45:55 2005
    Mime-Version: 1.0 (Apple Message framework v613)
    Content-Transfer-Encoding: 7bit
    Message-Id: <[email protected]>
    Every one of the txt files starts with a From line, but sizes vary from 80k to 1.6mb.
    Any enlightenment, suggestions, or general discussion of mail recovery is welcome. I'll be posting a similar-but-different problem in the Tiger Mail forum.
    Cube, iMac G5, MacBook   Mac OS X (10.4.7)  

    First of all, Mail 1.x doesn’t store messages in individual files, so trying to recover those messages with a data recovery utility doesn’t even make sense. No file is deleted as a result of deleting individual messages in Mail 1.x, only as a result of deleting mailboxes.
    Second, Mail 1.x knows nothing about *.emlx files, so it doesn’t make sense that you’ve found any such files on a Mac OS X 10.3 (Panther) system either. BTW, what is ‘FileRecover’? Did you mean FileSalvage?.
    Your only hope is that the messages may still be in the original mailbox, but inaccessible for some reason. If that’s the case, the following procedure would allow you to recover the messages from Inbox:
    1. Quit Mail if it’s running.
    2. In the Finder, go to ~/Library/Mail/POP-username@mailserver/.
    3. Locate INBOX.mbox and move it to the Desktop.
    4. Open Mail. A new empty INBOX.mbox will automatically be created within the account folder, and this will allow you to continue using Mail normally while trying to solve the problem.
    Although INBOX.mbox appears to be a file, it’s actually a special kind of folder (a package) that contains several files. Ctrl-click on INBOX.mbox and choose Show Package Contents from the contextual menu to see the files it contains. Of these files, mbox is the most important and is where all your messages are stored. Depending on the size of the mbox file, you may or may not be able to directly import it back into Mail in the next step.
    An Incoming_Mail file may also be present, in which case it might contain messages that couldn’t be transferred to mbox. Incoming_Mail is also a standard mbox file like mbox proper, just named differently, and can be imported back into Mail in the same way.
    5. In Mail, do File > Import Mailboxes and follow the instructions to import the INBOX.mbox that’s on the Desktop. I’m not sure what the import options available in Mail 1.3 are, but you should choose Other / Standard mbox or something like that, so that Mail looks at the mbox file only (and Incoming_Mail, if present) and ignores the other files in the package.
    If Mail doesn’t let you select INBOX.mbox in step 5 because it’s a package instead of a plain folder, rename INBOX.mbox to just INBOX (i.e. remove the .mbox suffix) so that it becomes a normal folder, and try again. You cannot do this directly in the Finder because removing a suffix by normal means causes the Finder to hide the suffix instead of renaming the file. To remove the suffix from the name, you must do File > Get Info (⌘I) on the file and change the name there.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • How to edit in a txt file in a jar

    Hi,
    I need to edit a text file that's located in a jar file. How could I do that? Is that file locked or something like that? Do I have to uncompress it, edit the text file and then compress the jar again?
    ... As you see I'm NEW to jar files...
    Regards,
    Anders

    Do I have to uncompress it, edit the text file and then compress the jar again?yes - a jar file is a zip file, so you can make life easier opening it up in winzip, and dragging in the replacement (you'll need to be careful if its inside a directory structure)
    asjf

  • How to save in CSV or TXT file the Powershell script output?

    Hi,
    I am not sure how to expot this to csv/TXT file, should I use export-csv "c:\test.csv" ?
    my code:
    $site = Get-SPSite "http://tst.pg.com/sites/tsta"
    Write-Output("`n" + $site.URL)
    $myweb = $site.AllWebs | where {$_.url -eq $site.url}
    Foreach ($list in $myweb.Lists) 
    if($list.BaseType -eq "DocumentLibrary")
          Write-Output("")
    Write-Output("Doc Library Name:" + $list.Title)                
    Write-Output($list.roleassignments | ft Member,RoleDefinitionBindings -auto)
    }$site.dispose()

    Hi there - If you just want to dump the output as a txt file, how about the following?
    .\yourpowershell.ps1 > output.txt
    Please remember to mark your question as answered and vote it helpful if this solves or helps with your problem. *******************************************************************************************************

  • TXT Files in Design View

    I use a lot of TXT files as INCLUDE files in various pages.
    When I used Dreamweaver 4 I had no problem editing a TXT file just
    like any HTML file and using DesignView. When I get going with
    Dreamweaver MX2004 I figured out how to do it. But I had to
    reinstall DW MX2004 and cannot get it to look at a TXT file in
    anything but CodeView - or call NotePad to edit it.
    I have already removed .txt from "OPEN IN CODE VIEW". I have
    tried going to MMDocumentTypes.xml and setting the Text type to
    HTML - which is what I thought I had used before. That didn't work.
    I've tried various combination of editing the Extensions.txt file,
    too - with and without the MMDocumentTypes.xml file.
    I know there is a way to do it - but cannot find the
    way!!

    I finally figured out how to work with TXT files in Design
    View...
    1. Go into MMDocumentTypes.xml and set the Text type to HTML
    2. in PREFERENCES Remove the .TXT type from OPEN IN CODEVIEW
    3. in PREFERENCES add the EXTENSION .txt and add Dreamweaver
    as the EDITOR
    The HTML in a TXT file shows up and is editable just as in an
    HTML document

  • Correct values for DefaultExportPath option in Disco pref.txt file

    Hi All,
    I am trying to edit the "DefaultExportPath" parameter in Disco pref.txt file file. We are using Discoverer Plus and Viewer on CP4 and are using JVM1.5 or higher.
    I referred to Metalink Doc Id: 365245.1 and Oracle Configuration Guide doc B13918_03.
    I am interested in making the local system desktop as the default export location for all the users with no exceptions.
    Tried to edit the parameter values to
    DefaultExportPath = "C:\Documents and Settings\<Windows user name>\Desktop"
    but it didn't work.
    Also came across Metalink Doc Id: 438598.1 which talks about changing individual systems "deployment.properties" file which I don’t want to get into. It’s too much of over head.
    I am looking for some pointer so that we can edit the pref.txt file to change the default location to the desktop universally across all the users.
    Any help is appreciated.
    Thanks.

    Hi Rod,
    Thx for the update.
    Just one more dumb questions. Is there an automated way of changing these properties. Physically changing them would be vey tough since quiet a few of our users work remotely.
    Thanks.

  • How would java compare to Perl for processing large txt files

    I guess what I am asking is that I write a lot of scripts in perl for processing txt files with large amounts of data in them ( >1 MB or >100K Lines of data )
    Stuff like searching for strings, deleting chuncks of the file, replacing strings, extracting strings, lines etc.
    The reason I used perl is that I was under the impression it would be the fastest for the job but I never considered java. Now I am trying to get up to speed in Java so want to use these small jobs as practice?
    Thanks ... J

    Mod (Compiled) Perl is faster than Java I think. Also, perl has been optimized for this sort of thing. Plus, if you're creating a lot of small to medium size scripts, as you mentioned, perl will be a lot easier to support for you and who ever comes after you. Stick with what you know

  • Conver a report in to txt file

    Hi all,
    I need to convert the report output into txt file .How can i do that?. can any one post some sample codes.
    Regards,
    Lisa.

    Here is a sample program which submits the report program, brings the output back from memory and downloads it to a text file.
    report zrich_0003 .
    data: begin of listout occurs 0,
          line(1024) type c,
          end of listout.
    * Submit the report and export list to memory
    submit your_report_program exporting list to memory
                and return.
    * Get list from memory and convert to ascii
    perform retrieve_list_from_memory tables listout.
    call function 'GUI_DOWNLOAD'
         exporting
              filename = 'C:Test.txt'
         tables
              data_tab = listout.
    * RETRIEVE_LIST_FROM_MEMORY
    form retrieve_list_from_memory tables reportlines.
      data: list like abaplist occurs 0 with header line.
      data: txtlines(1024) type c occurs 0 with header line.
      clear list.  refresh list.
      clear reportlines. refresh reportlines.
      call function 'LIST_FROM_MEMORY'
           tables
                listobject = list
           exceptions
                not_found  = 1
                others     = 2.
      check sy-subrc = 0.
      call function 'LIST_TO_ASCI'
           tables
                listobject         = list
                listasci           = txtlines
           exceptions
                empty_list         = 1
                list_index_invalid = 2
                others             = 3.
      check sy-subrc = 0.
      reportlines[] = txtlines[].
      call function 'LIST_FREE_MEMORY'.
    endform.
    Regards,
    Rich Heilman

  • How to stop parse XML file

    When using saxParser.parse(XMLfile, handler) to parse XML file, How to stop the parsing but not exit. I catched thread interrupted in startElement(), but can not stop it because it still go through all other startElement()s and endElement()s. Is there any method or class can stop parse XML?
    Appreciate your help!
    Edward

    Please look at the technote:
    http://access1.sun.com/technotes/01185.html
    Hope this helps.
    Michelle Cope
    Sun Microsystems.

Maybe you are looking for

  • Recovering voice memos on iPhone

    I had a number of important voice memos and I just deleted everything in my music library on the iPhone. I had forgotten that the iPhone classifies memos as music and it deleted my memos as well. I had syched the iPhone to my iMac a couple of times b

  • User Exit or BADI for the Bank validation in BP transaction

    Hi All,     My requirement goes like this, my customer wants to validate the bank keys whether the deletion flag is marked or not and if marked then throw the error message, in BP transaction. But when i was searching for the user exit or a BADI duri

  • Scalable Apache service in a zone cluster

    Hi, I have set up a 2-virtual node zone cluster (on a physical 2-node cluster). I am trying to set up an apache resource group (scalable) on the two nodes, but I don't get the zone cluster nodes as valid options to use while running clsetup and/or th

  • Is there a way to send a calendar to mail?

    I do my time sheet iCal and was wondering if there is a way to send the calendar to mail to be emailed. When I'm on a specific calendar and try going into edit, the program won't let me access the cut, copy or paste function. Is there a specific way

  • Reporting Server Web Service- (FileShare) CreateSubscription: The value of parameter 'ExtensionSettings' is not valid

    I've tried to create a subscription by Web Service api calling the method CreateSubscription and I've an error:  > The value of parameter 'ExtensionSettings' is not valid. ---> > Microsoft.ReportingServices.Diagnostics.Utilities.InvalidParameterExcep