Dynamic Save File Path

Hey Everyone,
So I deal with a lot of files each day that need to be saved according to their lead code, meaning that there is a folder that holds thousands of sub folders that have the same name as this lead code on a server.
So since I have the lead code in the file name I'm trying to use that in conjunction with the file path to tell illustrator where to save it with Javascript. Also the idea of a dynamic save path is awesome to me.
Here's what I've got so far, it's not working yet but I feel like I'm close.
Dynamic Save Path////////////////////////////////////////////////////////////////////////////////
#target illustrator
var sourceDoc = app.activeDocument;
var sourceName =sourceDoc.name;
var customerNum = sourceName.substring(0, sourceName.length - 8)
    customerNum
    sourceName = sourceName.substring(0, sourceName.length - 3)
//alert(sourceName)
alert(customerNum + " Customer # saved")
alert(sourceName + " File name saved") //end
var doc = app.activeDocument;
var doc_Path = File("I:\GRAPHICS"+ "/" + customerNum);
var substituir_Path = doc_Path+ "/" + customerNum;
//alert("sourceName: "+sourceName+"\nsourceDoc_Path: "+doc_Path+"\nsubstituir_Path: "+substituir_Path);
function SaveFileAsFXG (dest) {
    if ( app.documents.length > 0 ) {
        var saveOptions = new FXGSaveOptions();
        var fxgDoc = new File(dest);
        app.activeDocument.saveAs( fxgDoc, saveOptions );
var destFilePath = substituir_Path;
SaveFileAsFXG (destFilePath);
alert("done!") //end

I figured it out, I had it removing too many characters. I can get away with hardcoding this in my script because of how we name files where I work. also I realized I had a left over part in there that I didn't need.
I also got rid of the dividers to make it easeir to read here online
#target illustrator
var sourceDoc = app.activeDocument;
var sourceName =sourceDoc.name;
var customerNum = sourceName.substring(0, sourceName.length - 7)
    customerNum
    sourceName = sourceName.substring(0, sourceName.length - 3)
alert(customerNum + " Customer # saved")
alert(sourceName + " File name saved") //end
var doc = app.activeDocument;
var doc_Path = File("I:\GRAPHICS"+ "/" + customerNum);
function SaveFileAsFXG (dest) {
    if ( app.documents.length > 0 ) {
        var saveOptions = new FXGSaveOptions();
        var fxgDoc = new File(dest);
        app.activeDocument.saveAs( fxgDoc, saveOptions );
SaveFileAsFXG (doc_Path);
alert("done!") //end

Similar Messages

  • Dynamic Import File Path

    Hi All,
    Please help me how to do dynamic import file path since we have multiple environment where our reports will be migrated.
    Thanks

    Hi,
    the link is helpful but it still throws an error from my end . . .
    I set the xdo.cfg to
    <config version="1.0.0" xmlns="http://xmlns.oracle.com/oxp/config/">
    <properties>
    <property name="xslt.FILE_LOCATION">D:\OraHome_1\xmlp\XMLP\Reports\Reports</property>
    </properties>
    </config>
    and my import file is
    <?import:file://${FILE_LOCATION}/Global_Logo/Global_Logo.rtf?>
    <?import:file://${FILE_LOCATION}/Highlights/Highlights.rtf?>
    <?import:file://${FILE_LOCATION}/Benefit/Benefit.rtf?>
    in my main template it calls 3 sub templates . . .
    even I put a single quote in the 'D:\OraHome_1\xmlp\XMLP\Reports\Reports' in the xdo.cfg, I still get the error
         at oracle.apps.xdo.template.FOProcessor.createFO(Unknown Source)
         at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
         at RTF2PDF.runRTFto(RTF2PDF.java:629)
         at RTF2PDF.runXDO(RTF2PDF.java:439)
         at RTF2PDF.main(RTF2PDF.java:289)
    Caused by: java.net.UnknownHostException: ${FILE_LOCATION}
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
         ... 14 more
    Thanks,

  • Create a dynamic physical file path in FILE tcode

    Hi ,
    I have a requirement where i need to create a file on application server. the physical path depend on the month in which it is executing.
    For example I have a file with the name 29082011_hh:mm:ss.dat.
    This file should be stored in the directory file015\FI\appl\Aug\.
    So i require to create the logical file path as file15\Fi\appl\<month>\<filename>
    My question is do we need to maintain the folders for all the months in AL11 or it can be generated at runtime
    Plz reply

    You must create the directories beforehand.

  • Save File Path

    So while in Premiere Pro CS5.5, I am using the Edit in Audition feature for some audio clips. When Audition launches, I notice that it autosaves the extracted audio file to my harddrive. How can I change the autosave file path for these extracted audio files? Do I change this in Audition or Premiere, and where the heck do I change it?
    Thanks.

    When you choose "Edit in Adobe Audition" from a clip in the Premiere timeline, it usually performs a Render and Replace operation, extracting the audio stream from the clip and writing it out as a standard WAV file, as you've seen.  This ensures your source material is left untouched, since Audition is a destructive editor, as well as preventing any file format compatibility problems that might come up between the applications.
    It looks like the default behavior for Premiere is to write this rendered file to the same directory that your Premiere .prproj Project file resides.  I didn't see any options in the Preferences that looked like it would allow you to specify a location.  I've got a message over to the Premiere team asking for more information.

  • How to create dynamic source file path for lumira?

    i have source file for lumira  visualization on  D:\lumira\SourceFiles\sample.xlsx;
    also .lums file in D:\lumira\demo.lums
    But when i use the same Lumira folder in different system i have to again create connection for the datasource for fetching the data.So please suggest me how can i use this file so that i don't need to create a new connection again and i should get the updated data i.e. the data should change according to the change in the datasource file.

    Hi,
    this isn't possible.
    you need to go the Connections window in Lumira home page, and repoint the connection to the new location
    regards,
    H

  • Dynamic file path problem....

    Hello & thanks for your attention
    I am trying to modify the action script(2) of a XML photo slideshow
    I want to make it pull the photo array from a dynamic XML file
    Yet nothing I try seems to be working - I was hoping someone could look at these snippets and tell me if I'm doing something incorrectly
    Objective:
    To make the swf file - pull its photo array - from a dynamic XML file path
    Scenario:
    http://www.reallivingtours.com/tours/viewTour.php?id=2092
    When that URL is called by a browser
    An XML file called 2092.xml is created in a /tmp/ directory
    viewTour.php passes the ‘dynamic’ file path to the swf via the params
    <param name="movie" value="slideshow.swf?file=tmp/<?php echo $tourID; ?>.xml">
    <param name="flashvars" value="&file=tmp/<?php echo $tourID; ?>.xml">
    The original AS2:
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    _root.xmlPath == undefined ? xml.load("settings.xml") : xml.load(_root.xmlPath);
    The modified AS2 - I've done:
    var filePath:String = new String();
    filePath =_root.file;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    _root.xmlPath == undefined ? xml.load(new URLRequest(filePath)) : xml.load(_root.xmlPath);
    Can you see anything I'm doing incorrectly?
    Thank you very much for your time and attention
    Benn

    Thanks to webqa - I've gotten a little closer to resolving this
    my debugging tells me that i have an undefined error
    I'm thinking - xml.load(filePath)
    is not recognizing the string as a file path to the XML
    Does anyone have any suggestions? thank you
    var filePath:String = new String();
    filePath =_root.file;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    _root.xmlPath == undefined ? xml.load(filePath) : xml.load(_root.xmlPath);

  • Set the file path of get image method

    I have a program that takes multiple IV curves of some nano-devices and saves each set of the IV curve data into a CSV file. I also have a graph on the main screen that gives me a visual representation of the data after each IV curve is taken.
    My program automatically names each IV curve with a different file path and at the end of the program execution I could have 50-60 IV curves.  What i'm trying to do is have LabVIEW export an image file of the graph on my front panel and save it with the save file path as the CSV file.
    Currently i'm using "Invoke Node -> Export Image" method, which is working fine and doing exactly what I want because i can tell it what file path to save to....however it is just a black and white image.
    There is another method that I found here: http://digital.ni.com/public.nsf/allkb/5AE4ADCBB65​A6D8F86256FBF007A1AC1
    That talks about a "Invoke Node -> Get Image Method" which physically captures the colorful chart on the front panel.  However I cannot figure out a way to tell it the file path to save to.  So when I run my program, after each IV curve, it takes the image from the front panel and then on the next IV curve, it interrupts my program to ask me to overwrite the previous file because it's using the same name.
    Is there a way to tell the Get Image Method to save to a specific file path?

    Hi Puneet_K,
    Thanks for the code....I didn't know you could wire the output of the image data to a write VI.  It makes sense in theory and i thought it would work....but it's not actually writing the PNG. I even tried BMP and JPEG but no results.
    I'm posting an image of my code with the before and after.  The before uses export image and it works, the after uses the get image and it doesn't create the file.
    Attachments:
    before.PNG ‏71 KB
    after.PNG ‏71 KB

  • Saving file paths (like a bookmark gets saved?)

    i seem to be doing a lot of restoring of data (for instance i had to restore my notes recently) and i am realizing that it would be uber helpful to be able to save file paths. right now i highlight the folder that i need, then i hightlight the one above it and then again the one above that until i get to the library level where i will see it easily.
    is there some utility of function that would let me save all my important file paths instead of having to do this/
    TIA

    You would want to create aliases for your file paths. right click the folder choose create alias, then drag all the aliases into a new folder you titled Paths. drag the paths folder into your sidebar.
    Another option is to keep your file paths in notes or whatever text editor you choose.
    then copy and paste them into the "go" field
    when in finder hit shift+cmd+G and the GO menu should pop up.
    paste the file path from your notes into that field and you're there instantly.

  • Search c:\ drive and return file path for winword.exe and save as variable

    Hi all, here is what I'm trying to do;
    1. Search C:\ drive for winword.exe
    2. take the file path and save it as a variable.
    3. Then based on the path value, use the switch statement to run "some command" 
    Essentially I'm trying to find what the file path for winword.exe is, then run a command to modify the registry.  I already have the script that will modify the registry like I want but the problem it, the path is hard coded in the script, I want to
    now look for all versions of word and set the right file path so I can make the right registry changes.

    This should get you started:
    http://ss64.com/ps/get-childitem.html
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • How to set dynamic file path in LSMW

    I am working on LSMW  object to upload say excel file from my desktop.. if someone runs my lsmw application on their system obviously it fails.. is there way where I can dynamically set the path..I mean whomsoever runs the application it picks the file from their location and execute the program.

    hi,,,
    change your code accordingly
    here i am  inserting data into ztable from excel .
    *& Report  ZBI_UPLOAD_DATA_MAST                                             *
    REPORT  zbi_upload_data_mast                        .
    DATA : it_tab TYPE filetable,
           gd_subrc TYPE i.
    TYPES : BEGIN OF wa_wrkctr,
            fictr TYPE zbi_fictr_mast-fictr,
            prctr TYPE zbi_fictr_mast-prctr,
            type TYPE zbi_fictr_mast-type,
            END OF wa_wrkctr.
    DATA : wa_save TYPE zbi_fictr_mast.
    DATA : gd_scol   TYPE i VALUE '1',
           gd_srow   TYPE i VALUE '1',
           gd_ecol   TYPE i VALUE '256',
           gd_erow   TYPE i VALUE '65536'.
    DATA : it_datatab TYPE STANDARD TABLE OF wa_wrkctr WITH HEADER LINE INITIAL SIZE 0.
          it_phy_data TYPE STANDARD TABLE OF wa_energy WITH HEADER LINE INITIAL SIZE 0.
    *data : w_current_inv_no(5) TYPE n,
          w_pop_up_text LIKE  wfcsr_ui_popup_text.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  p_file LIKE rlgrap-filename OBLIGATORY
                 DEFAULT 'C:\Physical Stock.xls'  .
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title            = 'Select File Name'
          default_extension       = '*.xls'
          default_filename        = '*.xls'
          file_filter             = '*.xls'
          initial_directory       = 'c:\'
       MULTISELECTION          =
       WITH_ENCODING           =
        CHANGING
          file_table              = it_tab
          rc                      = gd_subrc.
       USER_ACTION             =
       FILE_ENCODING           =
    EXCEPTIONS
       FILE_OPEN_DIALOG_FAILED = 1
       CNTL_ERROR              = 2
       ERROR_NO_GUI            = 3
       NOT_SUPPORTED_BY_GUI    = 4
       others                  = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ELSE.
        READ TABLE it_tab INTO p_file INDEX 1.
      ENDIF.
    START-OF-SELECTION.
    START-OF-SELECTION.
      PERFORM upload_excel_file TABLES   it_datatab
                                 USING   p_file
                                         gd_scol
                                         gd_srow
                                         gd_ecol
                                         gd_erow.
    PERFORM eventtab_build CHANGING lt_eventtab.
    PERFORM display_data.
    *&      Form  UPLOAD_EXCEL_FILE
          text
         -->P_IT_DATATAB  text
         -->P_P_FILE  text
         -->P_GD_SCOL  text
         -->P_GD_SROW  text
         -->P_GD_ECOL  text
         -->P_GD_EROW  text
    FORM upload_excel_file  TABLES   p_it_datatab
                            USING    p_file
                                     p_scol
                                     p_srow
                                     p_ecol
                                     p_erow.
      DATA : lt_intern TYPE  kcde_cells OCCURS 0 WITH HEADER LINE.
    Has the following format:
                Row number   | Colum Number   |   Value
         i.e.     1                 1             Name1
                  2                 1             Joe
      DATA : ld_index TYPE i.
      FIELD-SYMBOLS : <fs>.
    Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
        EXPORTING
          filename                = p_file
          i_begin_col             = p_scol
          i_begin_row             = p_srow
          i_end_col               = p_ecol
          i_end_row               = p_erow
        TABLES
          intern                  = lt_intern
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'Error Uploading file'.
        EXIT.
      ENDIF.
      IF lt_intern[] IS INITIAL.
        FORMAT COLOR COL_BACKGROUND INTENSIFIED.
        WRITE:/ 'No Data Uploaded'.
        EXIT.
      ELSE.
        SORT lt_intern BY row col.
        LOOP AT lt_intern.
          MOVE lt_intern-col TO ld_index.
          ASSIGN COMPONENT ld_index OF STRUCTURE it_datatab TO <fs>.
          MOVE lt_intern-value TO <fs>.
          AT END OF row.
            APPEND it_datatab.
            CLEAR it_datatab.
          ENDAT.
        ENDLOOP.
      ENDIF.
      IF it_datatab[] IS NOT INITIAL.
        DELETE FROM zbi_fictr_mast.
        COMMIT WORK.
        LOOP AT it_datatab.
          wa_save-fictr = it_datatab-fictr.
          wa_save-prctr = it_datatab-prctr.
          wa_save-type  = it_datatab-type.
          INSERT INTO zbi_fictr_mast VALUES wa_save.
          IF sy-subrc = 0.
            COMMIT WORK.
            MESSAGE 'Data upload complete' TYPE 'S'.
          ENDIF.
          CLEAR wa_save.
          CLEAR it_datatab.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " UPLOAD_EXCEL_FILE
    i hope this will help .
    Regards
    Deepak

  • Path does not exit - While trying to save file on SharPoint Server 2013 from client machine

    Hi,
    I have installed Microsoft SharePoint Server 2013 Enterprise Edition on my testing Lab environment (On VM Workstation 10) on Windows Server 2012 with SQL server 2012, I can access all files stored at SharePoint Server from any physical machine, I can share
    a single file among different people to work simultaneously, but here i stuck on saving any file from client machine to directly on SharePoint Server, Attached is the snap shot, whenever I try to save any file directly It says Path Does Not Exist, If I drag
    and drop any file directly to SharePoint I do not see any error message.
    I read from different posts that I need to Enable Desktop Experience Feature on Server 2012, which I installed but no positive result gained :(
    I will appreciate for any possible help?
    Ali

    Hi Ali,
    Please try disabling the protected view per the link below and test the issue again:
    http://social.technet.microsoft.com/Forums/en-US/b8381a19-3394-406f-8adb-1976f45460ef/path-does-not-exit-while-trying-to-save-file-on-sharpoint-server-2013-from-client-machine?forum=sharepointgeneral
    You could simply type the url as http://sp/sites/sitename in the Filename place.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • How to set default file path for save

    Hello all,
    I'm currently blocked on the below issue and is hoping to gain your help and insights.
    We have recently upgraded to InDesign CS6. Now when an INDD file created in an older version of INDD is opened in CS6, all the save dialogs would not default to the location of the original INDD file. Though if the same file is opened in the version of InDesign that created it, the save dialog goes to the proper location by default.
    Debugged using our custom plugin as a gate way, and found out that after InDesign CS6 performed the document upgrade/convert, the database for the converted document loses file information. i.e.  IDataBase::GetSysFile() returns nil. I think we can figure out some way to get the original file path. For example, we can intercept "kAfterOpenDocSignalResponderService", and get the original file path of the opened file from IDocumentSignalData. Though I haven't yet able to figure out a safe way to set this file path to the document, so that the save dialogs would by default point at this path.
    Utils<Facade::IWorkgroupFacade>()->InitDocumentAssetManagement(docRef, filePath) seems to do the right thing, but it seems to be quite intruding, and I'm afraid that it is overkilling and will cause bad side effect for the use case I'm looking for.
    So I'm wondering if anyone has any suggestions to achieve this without implementing/overriding the file save dialog.
    Thanks.
    -Jeff

    You should be able to avoid writing your own open-doc trap by using kDocBoss's IOpenedFileInfo to obtain the original file's path. It seems fairly reliable; the only time I've seen it come up empty is for an opened QuarkXPress document.
    I'm afraid I don't know of a sanctioned way to change IDataBase::GetSysFile() without going through the database's SaveAs machinery. Overriding this behavior might only be possible by replacing the regular Save dialog with your own.
    But if InitDocumentAssetManagement() is helping, maybe the workgroup/asset management approach is worth pursuing. Have you tried spying on that call in the debug app? You might be able to isolate and use one of the commands that it's invoking (IAMSPManager::BindAsset() / kSetAssetAttributesCmdBoss?) without all of the side-effects of the higher-level call.

  • How to give dynamic file path in the selection  screen

    Hi All,
    How to give dynamic file path f4 functionality to user on the selection so that he can browse for the path in the presentation serve? I believe there is one fun module is there for this purpose I am not getting that
    Please help me in this regard.
    Thanks&Regards
    Mahesh

    HI,
    check this program.
    <b>report ZWA_TEST2.
    PARAMETERS: a(100) default 'PRESS F4'.
    data: filet type table of FILE_TABLE.
    data: wa type file_table.
    data: count type i.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR a.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
      CHANGING
        FILE_TABLE              = filet
        RC                      = count .
    loop at filet into wa.
      a = wa-FILENAME.
    endloop.</b>
    Regards,
    HRA

  • Full file path in Office 2007 when open or save

    Am not sure i can raise this question here.
    We are using 10gR2 Application server and Windows 7 as a Client. In the client machine we have installed the Microsoft Office 2007.
    From the forms we are trying to open and save (after changes) the files of format Doc/Xls. These files will be stored in separate shared folder accessible through Application server and client.
    Now the issue is when we open/save the file it shows the Entire path (In Saving Window) which should not happen. In previous release of MS office its not like this.
    Please help us "to hide the file path to be displayed to the user". Like changing the registry for Office 2007 or workarounds or new solutions or any other oracle's product.
    Note : Showing the file name is the Office 2007s default behavior.

    The only way to avoid showing this from a Forms point of view would be to not display the open/save file dialog in the first place. In other words, control the opening and saving using your own custom dialogs. Also, be aware that using remote drives (network mapped) may cause problems. Generally speaking, doing this would not be considered supported.
    As for opening documents on the client, there is no need to use the open file dialog if you know the file name and path to that file in advance. You can simply use WebUtil's CLIENT_HOST. So let's say you wanted to open a file named mySales.doc and you knew its location, all you would need to do is this:
    Declare
         my_cmd varchar2(255);
    Begin
         my_cmd := 'rundll32 shell32,ShellExec_RunDLL '|| :t1;
         CLIENT_HOST(my_cmd);
    End;In the above example, +:t1+ is a text field on a canvas. The value would include the path and file name to be opened. Of course this could be a pl/sql variable which you programatically populate or any combination of that. The value value must include the full path (with drive letter) and full file name. If the path or name contains spaces, double quotes may likely be necessary. You will have to test.
    For saving an opened file, you are mostly out of luck from Forms unless you took control of Word/Excel as it was being opened in the first place. For example you likely can open the Office products using OLE or VB or other macro and control what the open and file save dialogs look like or if they are even accessible at all. But this has nothing to do with Oracle or specifically Forms.
    You need to refer to the MS documentation.

  • Save as PDF file path dialog

    Again, another odd operation that Adobe has added to Acrobat Professional DC for Mac. When I Save, or Save As in Acrobat DC, the next window is an Adobe Save As PDF  window with several, helpful options. There is a list of five or so Recently Visited folder, options in the sidebar to send this to a Cloud and a giant button "Choose a Different Folder". This button is so large, I actually, have trouble locating it.
    Usually, I'm working in a current document and the folder I wish to save that document to, percolates to the top of the Recent Folders. That's handy. However, when you click that selection, actually any selection, even Choose a Different Folder, the OS X Finder window always opens up to the same folder. The folder is named, simply "T" for temporary. If you save anything there, and close Acrobat, you have lost your work my friend. I have figured that out, now. But my question is, why ask where my destination folder of choice, if you never locate it anyway? That window is a waste of space.
    This is obviously a bug between the new DC version and the Mac Finder system. The action in the Save As PDF window need to have the file paths updated.

    Hi
    I accessed to a website from my uni library computer using my student account and download a pdf file in there. However, that pdf file contains a line of words saying "Accessed by ... University Library on 30 Mar 2007". This line is printed vertically and on the left side of the page.
    Do you know how to remove that line? I think the website just embedded that line into the file.
    Please help.
    Thank you very much.
    tuanduy

Maybe you are looking for

  • Pages Version 4.1 won't open on ipad 2.1-HELP???

    I am a pastor and have just completed my sermon for our FIRST CHURCH SERVICE SUNDAY...I have e-mailed the document from my MacBook Pro with Pages 4.1 to my ipad which latest version is 2.0.1 Freaking out right now, I see no way out, can anyone help m

  • 'Genius' related question for anyone with over 1.2TB of music?

    Anyone out there with a iTunes library with over 1.2TB of music? Reason I ask, is that I've not been able to solve a problem in updating Genuis - I'm getting the error - 'Genius results can't be updated right now. There is not enough memory available

  • NoInitialContextException in jms

    i wrote a simple jms program for point to point Destination i am able to run the program in j2ee 1.3 but i get problem with j2ee 1.4 here is my program import javax.jms.*; import javax.naming.*; class test      public static void main(String arg[])  

  • The Java APIs - are we speaking the same language?

    Hello again world. I was reading in someone's response a suggestion to "write a different actionPerformed() method for each button." So I thought, let me see if I can do that and came up with this: import  java.awt.*; import  java.awt.event.*; import

  • Hairline cracks along side of USB connector

    After 17 months of constant connecting and disconnecting of the USB cable my 3G has developed cracks on either side of the connector along the back plate. The crack caused a piece to come off around one speaker grille. Now I'm trying to find a shop t