Some help needed please........

You can run your program on the command line by starting a command window, changing the current folder to that folder containing your program, and typing the following:
java Week1GraphicsQ6
You could change your program so that the user can set the number of rows and columns by typing them after the name of the program, e.g.
java Week1GraphicsQ6 20 30
The '20' and '30' are input into your program through the args array, in the main method. In this case, args[0] would store '20' and args[1] would store '30'. But these are still strings - you could turn them into integers using the Integer.parseInt method. Then, the standard way to get them into your class, would be to make a parameterised constructor, that sets the number of rows and columns according to the two integers passed into the constructor. (Currently you only have a default constructor that does not take any parameters).
Can you please explain to me what I have to do to be able to get my program to do this. Frankly speaking, I don't really understand the question. Below is my current working code:
import java.awt.*;
import java.awt.geom.*;
import javax.swing.*;
public class Week1GraphicsQ9 extends JFrame
     int numRows = 5;
     int numCols = 10;
     public static void main(String[] args)
          new Week1GraphicsQ9();
     public Week1GraphicsQ9()
          setTitle("Solution to week 1");
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          setSize(500,220);
          setLocation(300,300);
          getContentPane().setBackground(Color.white);
          setVisible(true);
     public Rectangle getRect(int thisRow, int thisCol)
          Rectangle myRect = null;
          if (thisCol < 0 || thisRow < 0 )
               return null;
          if (thisCol >= numCols || thisRow >= numRows )
               return null;
          int width = getWidth() / numCols;
          int height = getHeight() / numRows - 7;
          int x = thisCol * width;
          int y = thisRow * height + 31;
          myRect = new Rectangle (x, y, width, height);
          return myRect;
     public void paint(Graphics g)
          Graphics2D g2 = (Graphics2D)g;
          super.paint(g2);
          for (int i = 0; i < numRows; i++)
               for (int j = 0; j < numCols; j++)
                    g2.setStroke(new BasicStroke(3.0f));
                         g2.draw(getRect(i, j));
            g2.setColor(Color.red);
            Rectangle r;
            r = getRect(0, 0);
            g2.fillOval(r.x, r.y, r.width, r.height);
            r = getRect(3, 2);
            g2.fillOval(r.x, r.y, r.width, r.height);
            g2.setColor(Color.blue);
            r = getRect(0, 4);
            g2.fillOval(r.x, r.y, r.width, r.height);
            r = getRect(4, 6);
            g2.fillOval(r.x, r.y, r.width, r.height);
}Thank you

Can you please explain to me what I have to do to be able to get my program to do this. Frankly speaking, I don't really understand the question. Below is my current working code:You will need to be abit more specific to what part your not understanding, because it is not our job to do all your homework for you.
The '20' and '30' are input into your program through the args array, in the main method. Below is how i extract Integer values from a String value stored in a String array called args.
public static void main(String[] args){
  int val 1;
  int val 2;
  if(args.length == 2){
    try{
      val 1 = Integer.parseInt(args[0]);
      val 2 = Integer.parseInt(args[1]);
    catch(NumberFormatException e){
      System.err.println(e);
      return;
}Mel

Similar Messages

  • I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    I recently had to restore my Iphone 4s and ever since I cannot double click the home button whilst the phone is locked and change my music. The controls come up and I can adjust the volume but I cannot change the songs. Help needed please!!

    Have you guys been able to activate your iphone yet? I bought an iphone 4s from eBay and it worked fine, but the previous user had left some data on it, so last night I used the "erased all content and settings" to restore it to factory setting so I can start fresh and restore my backup. But now I'm stuck at the activation screen (I get the same "the activation server is temporarily unavailable")  and can't get it to activate, even if I use my old deactivated AT&T sim card (I'm on straighttalk now).
    I might try activating it with an active AT&T sim card from my fiancee's phone when she gets home, so I'll let you know how that works outs.
    If it's true that the server is down; anyone know when it will be back up again? Thanks in advance.
    iPhone 4s iOS 5.1.1 (9B206)
    Carrier AT&T 12.0
    Modem Firmware 2.0.12

  • Help needed please.. how do I remove my credit card from itunes? just discovered over $450 of charges when I looked at my email... Kids had no clue they were using our money and not their gift cards

    Help needed please.... I just discovered over $450 charges to my credit card from Itunes. The kids had no idea they were using our credit card and not their itunes gift cards and 4 year old just clicks on anything! I didnt save my credit card details so am a bit miffed at this... I cant find anywhere in itunes to remove it. Edit.. but not remove. Editing does not remove it.. HELP

    To Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact
    Accepted forms of payment  >  http://support.apple.com/kb/HT5552
    Changing Account Information  >  http://support.apple.com/kb/HT1918

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • Some help needed  for guides.

    Hi,
    I need this script, or another, to place guides in "dead-centre" (50%/50%)horizontal and vertical!
    Since I'm a nobody in Jsx I need some help, badly!! :)
    For 2 day's I've seen nothing but "errors" :(
    Can somebody help me, please?
    Regards
    Mahon
    Code: start
    // make guideline
    function guideLine(position, type) {
    // types: Vrtc & Hrzn
    // =======================================================
    var id296 = charIDToTypeID( "Mk " );
    var desc50 = new ActionDescriptor();
    var id297 = charIDToTypeID( "Nw " );
    var desc51 = new ActionDescriptor();
    var id298 = charIDToTypeID( "Pstn" );
    var id299 = charIDToTypeID( "#Pxl" );
    desc51.putUnitDouble( id298, id299, position );
    var id300 = charIDToTypeID( "Ornt" );
    var id301 = charIDToTypeID( "Ornt" );
    var id302 = charIDToTypeID( type );
    desc51.putEnumerated( id300, id301, id302 );
    var id303 = charIDToTypeID( "Gd " );
    desc50.putObject( id297, id303, desc51 );
    executeAction( id296, desc50, DialogModes.NO );
    Code: End

    Please try this...
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    guideLine(app.activeDocument.width.value/2, 'Vrtc');
    guideLine(app.activeDocument.height.value/2, 'Hrzn');
    app.preferences.rulerUnits = strtRulerUnits;
    app.preferences.typeUnits = strtTypeUnits;
    function guideLine(position, type){
        var desc27 = new ActionDescriptor();
            var desc28 = new ActionDescriptor();
            desc28.putUnitDouble( app.charIDToTypeID('Pstn'), app.charIDToTypeID('#Pxl'), position );
            desc28.putEnumerated( app.charIDToTypeID('Ornt'), app.charIDToTypeID('Ornt'), app.charIDToTypeID(type) );
        desc27.putObject( app.charIDToTypeID('Nw  '), app.charIDToTypeID('Gd  '), desc28 );
        executeAction( app.charIDToTypeID('Mk  '), desc27, DialogModes.NO );

  • HELP NEEDED PLEASE

    Hi everyone
    Programming help needed here. Any advice would be greatly appreciated!!!
    I have been assigned some work for a program called Processing 1.0 availale at http://processing.org/download
    I was give the 9 individual programs I needed to make however they were converted to Java files from .pde files. The program is based on Java but only runs .pde files and NOTHING else!
    I decompiled the files and got the source code, but it is a slight variation of the original someone made in processing, and needs some tidying to get it to run.
    I think the programs are very simple for a programmer, although I AM NOT.
    CODE is BELOW
    // Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 02/05/2009 13:15:00
    // Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: Assign2_1.java
    import processing.core.PApplet;
    public class Assign2_1 extends PApplet
    public Assign2_1()
    SquareSide = 20;
    Rank = Nums.length;
    Side = SquareSide * Rank;
    Green = color(0, 255, 0);
    Yellow = color(255, 255, 0);
    BG = Yellow;
    public void setup()
    size(Side, Side);
    background(BG);
    fill(Green);
    for(int i = 0; i < Rank; i++)
    rect(i * SquareSide, 0.0F, SquareSide, SquareSide * Nums);
    public static void main(String args[])
    PApplet.main(new String[] {
    "--bgcolor=#ece9d8", "Assign2_1"
    int Nums[] = {
    6, 14, 8, 9, 2, 3, 4, 2, 8, 3,
    9, 2, 0, 5
    int SquareSide;
    int Rank;
    int Side;
    int Green;
    int Yellow;
    int BG;
    Edited by: chevy1 on May 2, 2009 7:32 AM

    HELP NEEDED PLEASEShouting is a good way ensure you don't get help. Also you should give a meaningful subject.
    Any advice would be greatly appreciated!!!I suggest you ask a question after providing enough information to be able to answer it.
    Also use CODE tags when posting code as it make the code more readable.
    We are more likely to help people who are trying to learn Java rather than someone who might be looking for an easy way out of doing an assignment.

  • New Hard drive, can't access certain aspects. Help needed please

    Hi everyone.
    I have an HP Pavilion dv6-6052ea laptop.
    I've been having problems with the hard drive so got a new one installed.
    My main issues are since getting it back, I can't access any of the original HP installations etc (I've downloaded all the drivers I know about through HP).
    The 2 main things I'm missing are 2 things that came with the laptop.
    1: Beats Audio sound system 
    2: Video Graphics: AMD Radeon HD 6490M (1 GB DDR5)
    and I have no idea how to get them back. Can anyone help. Do I need to install specific drivers? I can't find any trace that they exist on my laptop now apart from the stickers on the laptop! Any help is greatly appreciated. 
    I never had any CD back ups for the laptop. I do have the old HP back up etc saved on a USB but I don't know enough about the folders and files to know what I need to look for. (I still have the old hardrive.)
    Again, any help is massively appreciated. Thank you!
    Tony 

    If you used your HP Recovery Media, all factory install drivers and software would have been installed. If you didn't create your HP Recovery Media when you first setup your computer, please contact official HP support in your region / country, via the HP Worldwide Support Portal, to see if HP Recovery Media is available for your computer.
    If a generic Windows 7 installation disc was used, you will need to install all HP specific driver for your computer. Please try IDT High-Definition (HD) Audio Driver, Intel High-Definition (HD) Graphics Driver, and AMD High-Definition Graphics Driver to resolve your missing drivers issues. Windows 7 64-bit driver for your computer can be found on the HP Pavilion dv6-6052ea Entertainment Notebook PC Drivers page.
    If you have any further questions, please don't hesitate to ask.
    Please click the White KUDOS "Thumbs Up" to show your appreciation
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • TextFields / labels in Applet...Urgent help needed please!!

    I have been trying for days to add labels and textFields to my applet and can only manage to display one.
    My assignment instructions suggest I use makeTextField method and call the setEditable method from the makeTextField method to avoid repetition of code.
    The following is my code...I must have this done in the next couple of days so if someone could please please give me some assistance it would be really appreciated....also, thoughts on my layout would be great as well...i cant seem to set up my buttons in the correct order.
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class Registry4b extends Applet implements ActionListener {
    public void init() {
    backgroundColor = new Color(200,255,255);
    this.setLayout(new FlowLayout(FlowLayout.CENTER,4,1));
    makeButtons();
    row1 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row1.add(clearB);
    row1.add(studFindB);
    row1.add(studForB);
    row1.add(courB);
    row2 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row2.add(studBackB);
    row2.add(courFindB);
    row2.add(courForB);
    row2.add(studB);
    row3 = makePanel(new FlowLayout(FlowLayout.LEFT,4,2),backgroundColor);
    row3.add(courBackB);
    add(row1);
    add(row2);
    add(row3);
    Panel p = new Panel(new BorderLayout());
    Label studID = new Label("STUDENT ID");
    TextField entry = new TextField(" ");
    p.add(studID,BorderLayout.WEST);
    p.add(entry,BorderLayout.CENTER);
    Label firstTF = new Label("FIRST NAME");
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("West",courBackB);
    add("East",studB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("North",p);
    add("South",courForB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("North",courFindB);
    add("South",studBackB);
    makePanel(new BorderLayout(2,2),backgroundColor);
    add("West",p);
    add("East",studForB);
    setBackground(backgroundColor);
    clearB.addActionListener(this);
    courBackB.addActionListener(this);
    studB.addActionListener(this);
    courForB.addActionListener(this);
    courFindB.addActionListener(this);
    studBackB.addActionListener(this);
    courB.addActionListener(this);
    studForB.addActionListener(this);
    studFindB.addActionListener(this);
    private Label makeLabel(String label) {
    Label label1 = new Label(label,Label.RIGHT);
    label1.setFont(new Font("Courier",Font.BOLD,10));
    return label1;
    public void start() {
    appletWidth = 8*4+row1.getSize().width;
    appletHeight = 8*(2+courBackB.getSize().height);
    public void paint(Graphics g) {
    setSize(appletWidth,appletHeight);
    validate();
    public void actionPerformed(ActionEvent e) {
    String s = (String)e.getActionCommand();
    private Button makeButton(String label, Color color, Font font) {
    Button b = new Button(label);
    b.setBackground(color);
    b.setFont(font);
    return b;
    private Panel makePanel(LayoutManager lm, Color c) {
    Panel p = new Panel();
    p.setLayout(lm);
    p.setBackground(c);
    return p;
    private void makeButtons() {
    Font f = new Font("Courier", Font.BOLD, 10);
    Color grey = new Color(255,100,100);
    clearB = makeButton("CLEAR",grey,f);
    studB = makeButton(" STUDENTS ",grey,f);
    studForB = makeButton("->",grey,f);
    studFindB = makeButton("FIND",grey,f);
    courFindB = makeButton("FIND",grey,f);
    studBackB = makeButton("<-",grey,f);
    courB = makeButton(" COURSES ",grey,f);
    courBackB = makeButton("<-",grey,f);
    courForB = makeButton("->",grey,f);
    TextField addressTF = new TextField("ADDRESS", 10);
    static final String initialString = " ";
    String Filler = " ";
    Panel row1, row2, row3, p1;
    int appletWidth, appletHeight;
    Button clearB, studForB, studFindB, courFindB,
    studBackB,courB, courBackB, studB, courForB;
    Color backgroundColor;
    the buttons currently dont do anything. this is stage 1 of 3 for my 3 part assignment. for now i am just supposed to get the format right and show sample text in the textfields.
    the format is supposed to look something like the following (cant copy existing as it is protected)
    <- STUDENTS -> CLEAR <- COURSES ->
    student id FIND course id FIND
    last name_________first name______course name_____
    address________________________________________
    city______province___________p.code______________
    phone__________e-mail_______coordinator___________
    #of courses completed_____ #of students passed______
    student's average grade___ students grade ave grade___
    messages______________________________________
    the ones in caps are buttons and the rest are labels with text fields beside most of the labels.
    i apologize for the extremely long question but i hope this is what you were looking for to give me some help...anything would be greatly appreciated!!
    thanks in advance for anything someone can do for me

    hi,
    may this helps to solve your problem
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.Applet;
    public class Registry4b extends Applet implements ActionListener {
    TextField sid;
    TextField cid;
    public void init() {
    backgroundColor = new Color(200,255,255);
    setLayout(new GridLayout(2,1)); // 2 rows, one column, first row for search, the second for output
    Panel up=new Panel(new GridLayout(3,1)); // search panel
    Panel down=new Panel(new GridLayout(1,1)); //output panel
    down.add(new Label("Just for the output"));
    Panel p1=makePanel(new GridLayout(1,7),backgroundColor);
    makeButtons();
    p1.add(studBackB);
    p1.add(studB);
    p1.add(studForB);
    p1.add(clearB);
    p1.add(courBackB);
    p1.add(courB);
    p1.add(courForB);
    up.add(p1);
    Panel p2=makePanel(new GridLayout(1,3),backgroundColor);
    p2.add(makeLabel("Student ID"));
    sid=new TextField("");
    p2.add(sid);
    p2.add(studFindB);
    up.add(p2);
    Panel p3=makePanel(new GridLayout(1,3),backgroundColor);
    cid=new TextField("");
    p3.add(makeLabel("Course ID"));
    p3.add(cid);
    p3.add(courFindB);
    up.add(p3);
    add(up);
    add(down);
    private Label makeLabel(String label) {
    Label label1 = new Label(label,Label.RIGHT);
    label1.setFont(new Font("Courier",Font.BOLD,10));
    return label1;
    public void start() {
    //appletWidth = 8*4+120;//row1.getSize().width;
    //appletHeight = 8*(2+courBackB.getSize().height);
    appletWidth=200;
    appletHeight=90;
    public void paint(Graphics g) {
    setSize(appletWidth,appletHeight);
    validate();
    public void actionPerformed(ActionEvent e) {
    String s = (String)e.getActionCommand();
    private Button makeButton(String label, Color color, Font font) {
    Button b = new Button(label);
    b.setBackground(color);
    b.setFont(font);
    return b;
    private Panel makePanel(LayoutManager lm, Color c) {
    Panel p = new Panel();
    p.setLayout(lm);
    p.setBackground(c);
    return p;
    private void makeButtons() {
    Font f = new Font("Courier", Font.BOLD, 10);
    Color grey = new Color(255,100,100);
    clearB = makeButton("CLEAR",grey,f);
    studB = makeButton(" STUDENTS ",grey,f);
    studForB = makeButton("->",grey,f);
    studFindB = makeButton("FIND",grey,f);
    courFindB = makeButton("FIND",grey,f);
    studBackB = makeButton("<-",grey,f);
    courB = makeButton(" COURSES ",grey,f);
    courBackB = makeButton("<-",grey,f);
    courForB = makeButton("->",grey,f);
    TextField addressTF = new TextField("ADDRESS", 10);
    static final String initialString = " ";
    String Filler = " ";
    Panel row1, row2, row3, p1;
    int appletWidth, appletHeight;
    Button clearB, studForB, studFindB, courFindB, studBackB,courB, courBackB, studB, courForB;
    Color backgroundColor;
    }interesting for you is only the init()
    regards

  • P45 Platinum (Urgent help needed please)

    Last week I ordered parts for a new P.C. and I am having some major issues with this. The motherboard will not do anything. When I try to power on the computer the fans spins and all of the lights come on, but the computer will not post or go into the BIOS. There are 4 red lights on the board. From different things I have read I thought it may have been the motherboard so I had them send me another one. Well I got it today and it is doing the same thing! I am leaning toward the CPU, but I am hoping to get some help before I call them and request a replacement on the CPU. I am about to pull my hair because I am so frustrated. Here is a quick overview of the parts I ordered (in no particular order):
    *800w PSU
    *P45 Platinum Mobo
    *500 GB SATA HD
    *Intel Core 2 Quad Q6600
    *VisionTek HD4870
    *OCZ SLI ready 4 GB RAM (OCZ2N800SR4GK)
    I thought it may have been the RAM because of the voltage, but from reading other threads I should be able to change the voltage (the RAM voltage is 2.1).
    Here are some things that I have tried:
    *New motherboard
    *Only put one stick of RAM in instead of them both
    *Only had RAM, Video Card, CPU hooked up with same results
    *Cleared the CMOS (with the power off and the cord unplugged)
    *Tried it with the motherboard outside of the case in case it was getting shorted out some how.
    I would greatly appreciate any and all help you could give me. Please help

    Quote from: vernonion on 27-August-08, 09:51:53
    Everything is not working fine, and a pop with sparks is not a normal result from turning on a power supply. If you got it from Tiger send it back and get this one.
    I talked to the rep earlier, but I had to go to a meeting. When I called him back he said he was on the phone with Intel to make sure my CPU would work with that board. I know it will work so I have no clue why he called them. He didn't seem to concerned about the PSU though. I told him that the PSU popped and made sparks and it didn't phase him at all. I already told him I wanted to exchange the RAM with different kind and I wanted a new PSU. When I give him the new RAM and the PSU I want I will give this one a try.
    Thank you for your help.

  • ITunes corrupt file message - urgent help needed please

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

    I have an iPod video 30GB, i downloded the latest iTunes & Quicktime version, and updated my iPod also to the latest update. When i connect my iPod and start downloading music from the library in iTunes, the iPod keeps on disconnecting and restarting by itself, and i get a message that the file iTunes.exe is corrupt. I tried Apple support and did all what they said by downloading the latest updates and versions, and also did the Chkdsk utility on Windows, but still it did not work, the iPod keep on restarting and i cannot download anything on it, i had it now for a week and did not use it at all because of this problem, can somebody with a technical background help me please, i use Windows XP.

  • MP3 burning help needed please

    Hi,
    I'm hoping someone can help me please.
    I'm wanting to burn a mp3 cd but with the songs in separate folders so that when i play them in my car i can flick between the albums instead of having to go through all the singles one after another.
    Does anyone know of a good mp3 burner that can do this, and where to get it from too.
    All and any help in this matter is greatly appreciated
    Cheers
    Paul

    You want them in separate Album folders?
    Put the songs into the playlist.
    Sort the playlist by Album then burn it as MP3* disc.
    This will put the songs into Album folders.
    Likewise, if you sort by Artist, songs will be put into Artist/Album/ folders.
    * Note that only MP3 files will be burned to the disc. If the files are not already MP3 format, they will be skipped.
    If you burn it as a DataCD, it wil work the same except it will copy the files regardless of format. I do this as my CD player will work with both AAC & MP3 formats.

  • Transferring Outlook Express Data from G-3 to G-4, Help Needed, please

    Hi, I would like some help: I think I transferred my HD from G-3 to G-4, but none of the data of my Outlook Express 5.02 on the G-3 made the firewire jump. How do I:
    a. find out if the data (inbox, sent msgs, folders, etc.) are on the G-4
    b. if they are not there, how do I get them to transfer. All the other folders on my hard drive, data, documents, etc., went across well (it took an hour to transfer the HD, which was about 7 Gb)
    Any help is appreciated, you may e-mail me personally at [email protected]
    Thanks, Paul
    G3 & G4   Mac OS 9.2.x   Transferring Outlook Expr Data from G-3 to G-4
    G3 & G4   Mac OS 9.2.x  

    pagarciakcmo:
    Welcome to Apple Discussioins.I think I transferred my HD from G-3 to G-4What does this mean? Can you tell us a bit more and the procedure you used? Transferinng your HD from G3 to G4, does that mean you took the HDD from one computer and placed it in another?firewire jumpSorry about all these questions, but what do you mean by "firewire jump"?
    Can you give some more specific details about your G3 and G4 computers?
    Good luck.
    cornelius

  • Some help needed getting file path

    I had some help earlier attaching a file to mail via a dialog. That worked great.
    Now I am trying to get a particular file to attach.
    The following works but if i try to dynamically define the path ie comment out line 1 and bring into the script lines 2 and 3 it only adds the folder (line one). Any ideas?
    tell application "Finder" to set the_files to {alias "Alberti work:WSC projects:WSC Blue Haven 440b:Construction:Progress Certificates:440b_progress certificate_8.pdf"} --------------line 1
    --set the_path to "Alberti work:WSC projects:WSC Blue Haven 440b:Construction:Progress Certificates:" as alias ---------line 2
    --set attach_file to "440b_progress certificate_8.pdf" -------line 3
    tell application "Finder" to set the_files to the_path & attach_file
    tell application "Mail" to tell (make new outgoing message) to set visible to true
    tell application "Mail"
    tell front outgoing message
    repeat with a_file in the_files
    make new attachment with properties {file name:a_file} at after the last paragraph
    end repeat
    set visible to true
    end tell
    end tell

    Your problem is in the line:
    <pre class=command>tell application "Finder" to set the_files to the_path & attach_file</pre>
    where the_path is an alias and attach_file is a string representing the file name.
    When you use the concatenate operator ( & ) with two different object classes (in this case an alias and a string), you get a list as the result, so after this line runs the_files equates to a list containing two items:
    <pre class=command>{alias "Alberti work:WSC projects:WSC Blue Haven 440b:Construction:Progress Certificates:", "440b_progress certificate_8.pdf"}</pre>
    There's no way that Mail.app can translate that into something that can be attached to an email message.
    Instead, what you want to do is NOT define the_path as an alias, leave it as a string. Now the above line would result in one long string of the form:
    <pre class=command>"Alberti work:WSC projects:WSC Blue Haven 440b:Construction:Progress Certificates:440b_progress certificate_8.pdf"</pre> 
    which can easily be coerced to an alias suitable for Mail.app:
    <pre class=command>set the_path to "Alberti work:WSC projects:WSC Blue Haven 440b:Construction:Progress Certificates:"
    set attach_file to "440b_progress certificate_8.pdf"
     tell application "Finder" to set the_files to alias (the_path & attach_file)</pre>

  • WLC Logs!!! Quick Help needed please!

    Hello,
       My client want to check who owned a certain IP address on the WLC and from which AP he was associated. I looked at the system logs in the GUI but couldn't get beyond 6 hours. Is there a place I can download last day logs from CLI/GUI? Or Can I login via SSH and extract the logs via CLI?
    Please this is vital and I appreciate your help,
    Regards,

    Please note that the customer is using Pass-Through Web Authentication for the Guest WLAN.
    Thanks,

  • I unfortunately dropped my phone..and it turned off...now when i connect a charger it's showing the logo blinking on and off..could i get some help.. please ..!

    could i get some help about the apple logo blinking on and off ..??

    Your phone is damaged. Take it in to an Apple store for evaluation and possible out of warranty replacement.

Maybe you are looking for

  • What does it take to use an iphone 5 in Europe?

    I live in the US and am going to Italy in a few weeks (just for 10 days or so) and I have just purchased an Iphone 5 with a data plan (not interrnational plan). I was told once in Italy it would work if I go under 1. general settings 2. hit roaming o

  • Display Issues in browser

    Hi, Once we add a bullet(s) in Robohelp and publish, we see multiple type of displays in different browsers. Example: IN ROBOHELP: Text1 Text2 IN MOZILA FIREFOX (3.0.9):      Text1      Text2 (Space between bullet and Text is increased) IN IE-7: Text

  • SSRS disabled after failed upgrade

    Hi: I was attempting to upgrade an existing SQL 2008 server to SQL 2014 using the "upgrade an existing server" feature in SQL's installation manager. After being prompted to perform a number of upgrades (including upgrading to SQL 2008 R2), the 2014

  • Displaying report region columns in the correct order

    I have a report region in which the first 4 columns that are displayed are listed at THE END of the "Column Attributes" section. Why is this happening? Does some other setting have to be made to make them display at the end, where I want them?

  • Error while downloading applications in apple stores, Error while downloading applications in apple stores

    While downloading apps in apple stores I get error this application cannot be downloaded now.i get two options as retry or done. Why is that problems caused?