Saving a file to a non-existing directory

Hello all,
I would like to know if it is possible to save a file to a non-existing directory using Java. I have a bad feeling that it's not possible, but if there is anyone out there who thinks otherwise, please tell me how it can be done.
Thanks very much!
Greetz Hans

Hi,
Of course you can create all you want.
Try
          File fichier = new File(chemin);
          if ( ! fichier.exists()) {
               // the path doesn't exist
               ok = fichier.mkdirs();
The mkdirs (with the s) can create the path in a recursive mode. See the File object's help
Regards, JFB

Similar Messages

  • ORA-22285 - non-existent directory or file for FILEOPEN operation

    Hello
    I want to insert the xmldata from a xmlfile to the a table, with this scirpt:
    #!/bin/sh
    set -x
    for i in `find . -name "dspevent*.xml"| awk -F"/" '{print $NF}'`
    do
    echo $i
    fname_old=$i
    fname_neu=`ls $i | awk '{print "OK_"$0}'`
    cat $i | sed 's/aps://g' >$fname_neu
    echo $fname_neu
    rm $i
    #insert_xml $fname_neu
    INSERT_XML=`sqlplus -s username/passwort@database <<EOF
    INSERT INTO event_xml (name,
    dtsysl,
    hrsysl,
    dtcptl,
    nusesi,
    dsp_step,
    dsp_state,
    bat_class,
    bat_program,
    bat_seqi,
    bat_state)
    SELECT *
    FROM XMLTABLE (
    'Operations/Event'
    PASSING xmltype (BFILENAME ('EVENT_DIR', '$fname_neu'),
    NLS_CHARSET_ID ('CHAR_CS'))
    COLUMNS name VARCHAR (40) PATH 'name',
    dtsysl DATE PATH 'dtsysl',
    hrsysl NUMBER PATH 'hrsysl',
    dtcptl DATE PATH 'dtcptl',
    nusesi NUMBER PATH 'nusesi',
    dsp_step VARCHAR (40) PATH 'DSP/step',
    dsp_state VARCHAR (40) PATH 'DSP/state',
    bat_class VARCHAR (40) PATH 'BAT/class',
    bat_program VARCHAR (40) PATH 'BAT/program',
    bat_seqi NUMBER PATH 'BAT/seqi',
    bat_state VARCHAR (40) PATH 'BAT/state');
    EOF
    `
    done
    But the problem is, that I have always this error message:
    ORA-22285 -> non-existent directory or file for FILEOPEN operation
    I'd create a direcotrie and over utl_file.fopen I can write a file to this directorie, but this works over the path, not over the directory name. the utl_file_dir parameter was also set to the correct path. Whats wrong or how can I debug this problem?
    thanks.
    roger

    - the name of the directory is correct.
    - how can I check, that the user can use the directory?
    - in this logfile you can see that, the file name will replace correctly:
    ./dspevent.sh
    + awk -F/ {print $NF}
    + find . -name dspevent*.xml
    + echo dspevent_db_20110503030448_10641.xml
    dspevent_db_20110503030448_10641.xml
    fname_old=dspevent_db_20110503030448_10641.xml
    + awk {print "OK_"$0}
    + ls dspevent_db_20110503030448_10641.xml
    fname_neu=OK_dspevent_db_20110503030448_10641.xml
    + sed s/aps://g
    + cat dspevent_db_20110503030448_10641.xml
    + echo OK_dspevent_db_20110503030448_10641.xml
    OK_dspevent_db_20110503030448_10641.xml
    + rm dspevent_db_20110503030448_10641.xml
    + sqlplus -s username/passwort@db
    INSERT INTO event_xml (name,
    dtsysl,
    hrsysl,
    dtcptl,
    nusesi,
    dsp_step,
    dsp_state,
    bat_class,
    bat_program,
    bat_seqi,
    bat_state)
    SELECT *
    FROM XMLTABLE (
    'Operations/Event'
    PASSING xmltype (BFILENAME ('EVENT_DIR', 'OK_dspevent_db_20110503030448_10641.xml'),
    NLS_CHARSET_ID ('CHAR_CS'))
    COLUMNS name VARCHAR (40) PATH 'name',
    dtsysl DATE PATH 'dtsysl',
    hrsysl NUMBER PATH 'hrsysl',
    dtcptl DATE PATH 'dtcptl',
    nusesi NUMBER PATH 'nusesi',
    dsp_step VARCHAR (40) PATH 'DSP/step',
    dsp_state VARCHAR (40) PATH 'DSP/state',
    bat_class VARCHAR (40) PATH 'BAT/class',
    bat_program VARCHAR (40) PATH 'BAT/program',
    bat_seqi NUMBER PATH 'BAT/seqi',
    bat_state VARCHAR (40) PATH 'BAT/state');
    INSERT_XML= PASSING xmltype (BFILENAME ('EVENT_DIR', 'OK_dspevent_db_20110503030448_10641.xml'),
    ERROR at line 15:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.XMLTYPE", line 296
    ORA-06512: at line 1
    + echo dspevent_db_20110502190712_10641.xml
    dspevent_db_20110502190712_10641.xml

  • Writing a new file in non-existent directory

    I've written a program that will read files from one area and write them to another. It works great when the directory structure is already in place, but when I try to write the file in a directory that doesn't exist then problems occur. I was just wondering if there was some way of making it create the directory for me or do I have to parse the string and create the directories by hand? Thanks,
    Dave Johansen

    There's also a File.mkdirs() that will create any non-existent parent directories.

  • LR3 imports into non-existent directory

    I try to import into a certain directory, ...2010/March/Spain. Starting a week after installing the product LR would create a directory ...2010/March/Spain/Justin and place the photos there. I would remove the photos from LR and delete the Justin subdirectory. Try the import again; LR creates ..2010/March/Spain/Justin and places the photos there. Even after the directory is deleted and the PC rebooted, LR continues to show the subdirectory LR as present although the directory has been deleted.
    There are directories named Justin, such as .../2010/April/Justin and .../2010/May/Justin. But LR creates one on its own.
    The image below shows the problem. In the image of the folder next to Justin (on the To side of the import dialog) there is a plus sign on the folder.
    Anyone have any idea why LR3 continues to create and show ../2010/March/Spain/Justin, even when it doesn't exist, on the To side of the import dialog?
    Thanks.

    That's because you have "Into sub folder" and a subfolder name of Justin.
    Uncheck the box and it will not create a sub-folder named Justin.

  • DBMS_LOB.FILEOPEN(dir, fname) gives non-existent dir or file error

    Hello!
    I've been trying to load an image file into the oracle database using the DBMS_LOB loadfromfile procedure. In order to do this, I first have to open the appropriate file which I do using
    temp_bfile := bfilename('temp_dir', in_filename);
    where in_filename is a string having the appropriate filename. and 'temp_dir' is a directory object created as follows:
    CREATE DIRECTORY temp_dir AS 'F:\';
    Next when I do a
    DBMS_LOB.FILEOPEN(temp_bfile, LOB_READONLY);
    I get an exception ORA-22285:non-existent directory or file.
    What am I doing wrong? Is the way I've created the directory object correct. I work on an NT machine.
    Mona

    Not sure if the UTL_FILE package is the same but if you don't set the "utl_file_dir" variable in the INIT.ORA file prior to calling the FOPEN procedure you will get a similiar error. There may be an equivalent parameter for the DBMS_LOB package.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Mona Marathe ([email protected]):
    Hello!
    I've been trying to load an image file into the oracle database using the DBMS_LOB loadfromfile procedure. In order to do this, I first have to open the appropriate file which I do using
    temp_bfile := bfilename('temp_dir', in_filename);
    where in_filename is a string having the appropriate filename. and 'temp_dir' is a directory object created as follows:
    CREATE DIRECTORY temp_dir AS 'F:\';
    Next when I do a
    DBMS_LOB.FILEOPEN(temp_bfile, LOB_READONLY);
    I get an exception ORA-22285:non-existent directory or file.
    What am I doing wrong? Is the way I've created the directory object correct. I work on an NT machine.
    Mona<HR></BLOCKQUOTE>
    null

  • More Lion issues - Throwing Console errors for non-existent application

    Again, with the bad side of Lion.
    I was receiving all kinds of console errors in Lion with TweetDeck and Adobe AIR apps so I de-installed these applications and removed them from the system. However, Apple's fantastic Lion Operating System still is complaining about them even though they are not to be found.
    In the console I am getting sandbox errors on locations and files that are non-existent. Below is a snapshot of the error messages, and the directory referred to:  /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast....  and the others DON'T EVEN EXIST!!
    How do I keep this from happening?  Why does the OS go after this when it's been removed?????
    8/20/11SaturdayAugust 5:30:14.113 PM    mdworker32    kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    8/20/11SaturdayAugust 5:31:11.000 PM    kernel    nstat_lookup_entry failed: 2
    8/20/11SaturdayAugust 5:31:44.239 PM    com.apple.SecurityServer    Session 100071 created
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.254 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.F9107117265DB7542C1A806C8DB837742CE14C21.1/ .fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/com.seesmic.desktop.client.D89F32799270693BEF34AAA36E9B26 32B59240FA.1/.fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ lck~PrivateEncryptedDatak, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:31:44.255 PM    com.apple.security.XPCKeychainSandboxCheck    Can't get sandbox fs extension for /Users/kkathman/Library/Application Support/Adobe/AIR/ELS/TweetDeckFast.FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1/ .fl89CB8354, status=-1 errno=No such file or directory ext=(null)
    8/20/11SaturdayAugust 5:32:01.234 PM    Preview    snapshot of document took: 0.00030899 secs, calling unblockUserInteraction
    8/20/11SaturdayAugust 5:32:01.318 PM    Preview    writing of document took: 0.083616 secs, success = YES
    8/20/11SaturdayAugust 5:32:42.333 PM    rpcsvchost    sandbox_init: com.apple.msrpc.netlogon.sb succeeded
    8/20/11SaturdayAugust 5:32:42.483 PM    sandboxd    ([66316]) smbd(66316) deny job-creation
    8/20/11SaturdayAugust 5:32:42.583 PM    rpcsvchost    sandbox_init: com.apple.msrpc.srvsvc.sb succeeded
    8/20/11SaturdayAugust 5:32:42.609 PM    smbd    anonymous connected to path /var/rpc/ncacn_np
    8/20/11SaturdayAugust 5:32:53.587 PM    sandboxd    ([66320]) rpcsvchost(66320) deny mach-lookup com.apple.distributed_notifications@1v3
    8/20/11SaturdayAugust 5:34:53.329 PM    smbd    anonymous connected to path /var/rpc/ncacn_np
    8/20/11SaturdayAugust 5:39:32.429 PM    mdworker32    kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.

    Don't know how you de-installed but you didn't fully uninstall them. If you did not have an uninstaller supplied with the applications, then here's what you need to consider in order to fully uninstall:
    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash.  Applications may create preference files that are stored in the /Home/Library/Preferences/ folder.  Although they do nothing once you delete the associated application, they do take up some disk space.  If you want you can look for them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application.  In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder.  You can also check there to see if the application has created a folder.  You can also delete the folder that's in the Applications Support folder.  Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item.  Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder.  Log In Items are set in the Accounts preferences.  Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab.  Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    Some software use startup daemons or agents that are a new feature of the OS.  Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term.  Unfortunately Spotlight will not look in certain folders by default.  You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead.  Download Easy Find at VersionTracker or MacUpdate.
    Some applications install a receipt in the /Library/Receipts/ folder.  Usually with the same name as the program or the developer.  The item generally has a ".pkg" extension.  Be sure you also delete this item as some programs use it to determine if it's already installed.
    There are many utilities that can uninstall applications.  Here is a selection:
    AppZapper
    Automaton
    Hazel
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at VersionTracker or MacUpdate.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • NI Elvis throwing error 7, NI 488: Non existent board, NI Elvis traditional throwing error 2, NI 488: Write detects no Listeners when attempting to launch labview

    I wrote a program on a laptop in our lab that used both the NI Elvis power supplies and DMM.  On the laptops in the lab, which connected to NI Elvis through a board in the NI-PXIe device the program worked perfectly both as a vi and as an executable.  The program needed to be put on some computers in another lab for student use with a different version of labview, and everything worked except for the variable power supplies.  I activated debugging and it reported Error 7 at New File, NI 488: Non-Existent Board.  After attempting to trouble shoot this and not finding any helpful results I attempted to rewrite the program on the computers directly, since I could only put the program on the computers as an executable since it was written in 8.6 and the computers only have 8.0 and 8.2.  To begin I was going to launch labview from NI Elvis to use one of the example codes as a base for my program.  When attempting to do this I got Error 2 with the possible causes being Labview memory full and NI 488: Write detected no listeners.  My question is are the two errors related, and how can I fix these errors?  All the NI Elvis software is 2.0, the original program was written in Labview 8.6, the computers have Labview 8.0 and 8.2 on them.  The NI Elvis devices are connected directly through the computers, rather than through another device, I'm not sure if this might be causing some obscure hardware issue.

    Hello Chris,
    It looks like this error is associated with not having administrator privileges. Take a look at this other forum post for more information:
    http://forums.ni.com/t5/Academic-Hardware-Products-NI/Error-2-when-starting-LabVIEW-from-ELVIS-Instr...
    If you can log in as an administrator you should be able to avoid getting error 2 when you launch LabVIEW from NI Elvis. Alternatively, you can upgrade to NI-ELVIS 3.0, because the issue is fixed in that version of NI-ELVIS. You can find this by going to ni.com/support and searching for "NI-ELVIS 3.0"
    Colden

  • Weird CS4 error when saving eps files on a Mac: "...specified files already exist in the target location"

    Hi There,
    All 3 workstations in our studio are experiencing weird file behavior when re-saving eps files from Illustrator.
    Basically Illustrator creates a new file in addition to the original and adds a "-01.eps" onto the file name. If you re-save your original, Illustrator brings up a dialogue box that states:
    Some of the specified files already exist in the target location. The files marked below will be replaced:
    filename.eps
    filename-01.eps
    We've been deleting the "-01.eps" files each time but it's becoming tedious. The behaviour occurs when re-saving an eps file to a server or the desktop.
    All machines are new Quad-core MacPros running:
    - Leopard 10.5.8
    - Illustrator CS4 14.0.0
    We've checked for Illustrator updates from within Illustrator but we seem to be running the latest version.
    Is anyone else experiencing this behavior?
    Any help or pointers in the right direction would be much appreciated.
    Cheers
    Ben

    Thanks for the reply.
    The error occurs when we save the document but if we choose save as, "Use Artboards" seems to be unchecked so not sure if this issue is related or not. Will re-save the document using save as then see if the issue persists.
    Why do we still use eps?
    Basically because we've found it to be much more compatible. Our entire logo library is in eps format (18 years worth) partly because it was previously the only format to use and partly because it allows account managers to send logos to clients, printers, TV stations etc and not involve the studio (saving out an eps version).
    Although "Create PDF compatible file" is a good idea, we've encountered costly issues with colours and images - especially if the recipient is using old CS software, non-Adobe software or is using some kind of hardware RIP. We now just go with what we know works.
    But I do find saving eps versions of everything to be a bit painful. In fact, I've always found Illustrator in general to be a bit painful when compared with Photoshop or AfterEffects. Illustrator seems like it's been developed by a different company some times!
    Cheers, and thanks for the help.

  • Scan From File aborts the calling VI if it is pointed to a non-existing file

    The Scan From File primitive throws an error dialog and aborts the VI if it's given a non-existing file instead of returning an error in its output. See attached example (8.6).
    Try to take over the world!
    Attachments:
    Scan from file bug.vi ‏7 KB

    Anna K. wrote:
    Please let me know if you need assistance in working around this bug.
    For anyone wondering, the workaround is simply to check if the file exists before trying to read it. You can do this by calling the File/Directory Info primitive and checking the error output. Or you can use the OpenG File Exists? VI.
    I'm assuming this primitive is used rarely, if at all, which is why no one ever reported this. I had it in an old piece of temporary utility code which was moved elsewhere. It had a hardcoded path and when I ran it again a year or so after last using it, I ran into this. The only reason I used the primitive in the first place was because I wanted a quick way to save a number in a file and read it back. I never used it in any real code.
    Anna, I don't personally care, but what's the CAR number? Some people do seem to want to know them.
    Try to take over the world!

  • Saving a file to a specified directory

    Hello, how would i go about saving a file like from a JTextPane to anywhere the user selected from the JFileChooser menu. When I use the code below, it only gets stored in the directory where I run my program in.
    import javax.swing.*;
    import java.io.*;
    import java.awt.*;
    import package1.*;
    import java.awt.event.*;
    public class Test extends JApplet {
    JTextPane tp = new JTextPane();
    JButton b1 = new JButton("Save");
    ActionListener al = new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    JFileChooser fc = new JFileChooser();
    int rVal = fc.showSaveDialog(Test.this);
    ObjectOutputStream oos = null;
    String fname = null;
    if(rVal == JFileChooser.APPROVE_OPTION) {
    fname = fc.getSelectedFile().getName();
    try {
    oos = new ObjectOutputStream(new FileOutputStream(fname));
    oos.writeObject(tp.getText());
    oos.close();
    } catch(Exception ex) {}
    public void init() {
    b1.addActionListener(al);
    Container cp = getContentPane();
    cp.setLayout(null);
    tp.setBounds(80,80,420,420);
    cp.add(tp);
    b1.setBounds(10,10,80,40);
    cp.add(b1);
    public static void main(String[] args) {
    Console.run(new Test(), 500,500);
    I know I could of used a better way of saving the text but I just slapped that part together, I just really wanted to see where the file would end up. I know if I add, for expample, c:\\java\\ to the string in FileOutputStream it would store the file in the java directory. But I can't figure how to get a list a accessed directories. All I can get is the current one with the getCurrentDirectory() method.
    Thanks for any help.

    Instead of:
    fname = fc.getSelectedFile().getName();
    use:
    File file = fc.getSelectedFile();
    FileOutputStream fos = new FileOutputStream( file );

  • AppleScript - Writing to non-existent directories, and non-existent files..

    All,
    AppleScript - Writing to non-existent directories, and non-existent files...
    Creating directories several levels deep on the fly.
    How do we write to a file that does not exist, buried deep down in a hierarchy of directories that don't exist either...
    In trying to do this I explored two options. One used AppleScript, assisted by UNIX, which was simplicity itself, the other one used only AppleScript and was considerably more complex, and slower.
    http://www.mac-specialist.com/r/asckdirs.html
    Hope these are useful,
    Best Regards,
    Bill Hernandez
    Plano, Texas

    Simplified code examples - lacking extensive error checking -
    UNIX example 001:
    set file_Name to "Sales Figures.txt" -- File to create.
    set file_Path to "2006 Sales:Forecast:Fruits:Flordia:Oranges:Large" -- Folder to create.
    set UNIXfilePath to (quoted form of (POSIX path of file_Path))
    try
    do shell script "mkdir -p " & UNIXfilePath -- Attempt to create a folde, and respective intermediary folder(s).
    end try
    try
    do shell script "touch " & UNIXfilePath & "/" & file_Name -- Attempt to create a blank file.
    end try
    UNIX example 002:
    set file_Name to "Sales Figures.txt" -- File to create.
    set file_Path to "2006 Sales:Forecast:Fruits:Flordia:Oranges:Large" -- Folder to create.
    try
    do shell script "mkdir -p " & (quoted form of (POSIX path of file_Path)) -- Attempt to create a folde, and respective intermediary folder(s).
    end try
    -- Create a file, and enter some text.
    set FREF to open for access file (file_Path & ":" & file_Name) with write permission
    write "Beispieltext" to FREF
    close access FREF
    AppleScript example:
    set file_Name to "Sales Figures.txt" -- File to create.
    set file_Path to "2006 Sales:Forecast:Fruits:Flordia:Oranges:Large" -- Folder to create.
    -- Obtain list of text items of 'file_Path'.
    set {oAStID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, ":"}
    set filePathList to text items of file_Path
    set AppleScript's text item delimiters to oAStID
    tell application "Finder"
    set folder_Path to name of startup disk -- Obtain name of boot disk.
    repeat with i in filePathList -- Cycle through list.
    try
    make new folder at folder_Path with properties {name:i} -- create folder.
    set folder_Path to folder_Path & ":" & i -- Create new path for next new folder.
    end try
    end repeat
    end tell
    -- Create a file, and enter some text.
    set FREF to open for access file (folder_Path & ":" & file_Name) with write permission
    write "Beispieltext" to FREF
    close access FREF
      Mac OS X (10.4.4)  

  • RequestDispatcher.include() silently ignores non-existent files?

              Hello there,
              I have a servlet that calls RequestDispatcher.include() to include another jsp.
              <pre>
              RequestDispatcher dispatcher = myServlet
              .getServletConfig().getServletContext()
              .getRequestDispatcher(jspName);
              // dispatch the jsp
              dispatcher.include(fRequest, fResponse);
              </pre>
              However, if the JSP is non-existent (not found in the file system), I get no exceptions
              and WL6.1sp2 seems to silently ignore it. I also do not see any errors in the WL
              log files. If the JSP does exist, then it loads up, and then if I subsequently
              delete it, I get an Exception as expected.
              Can anyone help with this? Is this a bug? Any help is appreciated!
              Thanks
              ravi
              SP - Please remove the 2 "##NO_SPAM##" strings in my address before replying, thanks!
              

    Check if SUNWhea (SunOS header files) package is in fact installed on your Solaris 9 machine.

  • HT3231 I tried to migrate information from MacBook Air to ...Pro and it seemed to have taken files from folders on desktop as none exist on Air now.  As to where these files are, I don't know.  It has also taken my pictures from iPhoto to unknown destinat

    I tried to migrate information from MacBook Air to ...Pro and it seemed to have taken files from folders on desktop as none exist on Air now.  As to where these files are, I don't know.  It has also taken my pictures from iPhoto to unknown destination. ??

    If you used migration assistant then it probably created a new Login user and placed the migrated files under it.
    Regards,
    Captfred

  • PE12: asking "Where is file..." for a non-existent file

    When opening a project in Adobe Premiere Elements 12, I'm getting the "Where is file..." pop up window.  It's asking ...
    "Where is the File 'C:\Program Files\Adobe\Premiere Pro 1.5\Presets\Textures\Business Title_7.tga'?"
    Which is odd because I didn't use any such file in the project, I only have Adobe Premiere Elements 12, and this is installed on a MacBookPro.  So I'm not sure why it's looking for a tga file in a Premiere Pro folder in a non-existent C:drive.
    I only have two video clips in this project.  I'm using the cross-fade transition between titles and clips.  The title template I'm using is "RedBulbs_Title".  I've duplicated it several times and I seem to get that same "Where is.." pop up, one for each time I've used the "RedBulbs_Title" template.
    Am I missing something in my installation?

    A.T.
    I have a new project that I've created in Pe12.  I get the message every time I open the file to continue editing.  So, I created it, edited for a while, and save.  When I open the file again, days later, I get the error.
    It does seem to be related to the titles in Pe12.  The error seems to occur once for every time the title template is used.  I dismiss the error saying the file is Offline so that I can get to the project and continue working.  Even though the file is considered "offline", the video doesn't seem to be mising any components.
    I'm useing Pe12 for Mac, purchased new from Amazon.com.  It was a clean install.  There was no previous installation of Premiere Pro or Elements.
    I have not imported any jpegs.  My source files are .mp4 and the title graphics within Pe12.  It's a very simple project.
    The strangest part for me is seing a Windows error message on a Mac.  I've never even opened the Windows install disk for Pe12, much less used it in the Mac.
    Using Finder to search for the missing file returns no results as if the file doesn't exist anywhere on the Mac.
    Am I correct in that the Title clips in Pe12 are not on the installation but on the internet?  I seem to recall that the Title files had to download the first time I used a particular title in Pe.  Could it be a problem with the downloaded files?
    I'm re-installing Pe now.  I'll let you know how that goes.
    Re-installed over previous install hoping to avoid losing anything.  Big mistake.  Everything just crashes now.  Uninstalling everything, preferences and all, and will do a clean install.
    more to come.

  • Appending files to an existing directory rather than replacing.....

    I am a recent 'SWITCH' user, having fought my way through many reincarnations of that other OS flavour, much to my emotional discomfort.
    One thing I have noticed (and annoys me a little) is that when you copy a directory in OSX to a different location, it looks for duplicates at a 'directory level' rather than a 'file level'.
    eg If I have a directory on another HDD called My Music containing files Song 1 and Song 2 and I wish to transfer a second directory called My Music containing files Song A and Song B and Song 1.
    In Mac OSX, I get a warning saying the HDD already contains the Directory "My Music" do I want to replace?.....if you do, it does just that and copies over the original files....output "Song A, Song B and Song 1"....an exact replacement.
    In the other OS, you would get the message that the Directory already contains "Song 1", do I want to replace.......if I answer yes, the version is replaced but all other files are appended to that directory and output would be "new Song 1, Song 2, Song A and Song B".
    I know that it can be done in OSX like the 'other OS' because I have a small cataloging program that seems to be able to append......is there a simple key-press combination when selecting the files that changes this or a register /preference change that could fix this for me? Would prefer to transfer and dump manually rather than have the OS decide for me!!
    Still have to use the other OS and find this the most infuriating difference between the two flavours of OS (ie Lost data in file transfer operations in OSX!!). You could argue that I need to retrain myself to think differently, but I find this the most difficult thing to get into my head!!
    Thanks...is probably the most basic operation to fix, but please go easy on a 'switching newbie!". Please chuckle silently to yourself!!!
    Thanks
    Gareth

    Hi Gareth.
    You wrote: "In Mac OSX, I get a warning saying the HDD already contains the Directory "My Music" do I want to replace?.....if you do, it does just that and copies over the original files....output "Song A, Song B and Song 1"....an exact replacement.
    In the other OS, you would get the message that the Directory already contains "Song 1", do I want to replace.......if I answer yes, the version is replaced but all other files are appended to that directory and output would be "new Song 1, Song 2, Song A and Song B".
    I know that it can be done in OSX like the 'other OS' because I have a small cataloging program that seems to be able to append....."Actually, what you are seeing is Mac OS X working as designed: that's how copy works in Mac OS X. There is no workaround for this.
    The "cataloging" app to which you refer is probably handling the issue programatically. In other words, the behavior is programmed, it is not using the Mac OS X default behavior.
    What you probably want to look at is "Sync" software, such as the following apps:
    - ChronoSync.
    - You Syncrhonize.
    - Folders Synchronizer X.
    The sync software area seems to be a mixed bag of applications that could all use improvement. ChronoSync has been one of the highest-rated I've read about. You may also need to consider how Sync software will work if the "other HDD" is formatted for Windows (MS-DOS or FAT32) instead of in Mac OS Extended (aka HFS Plus or HFS+) format.
    When looking for new applications, I recommend searching MacUpdate or Version Tracker. You may want to explore those sites for additional Sync software applications.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

Maybe you are looking for