dynamically create the file name

Hello

I tried to save the file dynamically according to the following code:

QUrl(QString::fromLatin1("%1/songs%2.mp4")

This saves the file with something like songs001.mp4, songs002.mp4, etc.

no idea how to better customize the name of the file to save with something more convenient, say the name being april5.mp4, april6.mp4 and so on... (based on the date or time or both)

LOL, not really, in any case you can use the QDateTime class to get the current time with functions that return a QString that you can add the name...

http://developer.BlackBerry.com/native/reference/Cascades/QDateTime.html

You can also consider adding metadata to help the other players and differentiate data more...

http://developer.BlackBerry.com/native/reference/Cascades/bb__multimedia__metadata.html
http://developer.BlackBerry.com/native/documentation/Cascades/graphics_multimedia/audio_video/access...

Tags: BlackBerry Developers

Similar Questions

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • where to save the files under options the file name is duplicated how to remove an additional folder with the same name

    Under Options in Firefox, I clicked on save the files under downloads, but the file name twice and an additional file with the same name is created in the folder, i.e.:

    G:\Akbar's Songs\HAMARA DOWNLOADS\HAMARA FORUMS DOWNLOADS FORUMS

    As you can see the file repeats, how can I fix it?

    Also the music files, I download from a site of downloads as a WinRar file and I need to open it. Y at - it an option where the file opens automatically in the folder I chose?

    Thanks a lot for your help.

    Hi Akush, when you install 7 - zip, make itself the default application to open .zip and .rar files. So if you double click on the .rar file, it should open in 7 - zip. If you prefer to decompress immediately, right click the file and look for new 7 - zip items in the menu. I can't think of a way to do this automatically, however.

  • I want to change the file name format "save under" so the date and time are first.

    When I select a few emails and then select "Save as" to keep a copy on my computer, the name of the file that is created has the date and time at the end of the file name of the email.
    Sample "save under" file name: "Habitat Follow Up - Bryan ([email protected]) - 2011-11-15 0744.eml.
    Is it possible to change the structure or format of the file name if the date and time of the email are initially the file name?

    Try ImportExportTools and customize the format of the file name in the options.

    http://chrisramsden.vfast.co.UK/3_How_to_install_Add-ons_in_Thunderbird.html

  • Titles or subtitles of the file name?

    Is it possible to automatically generate the titles or subtitles of the file name? I have a video made up of several small files and you need to insert their names under the name of a chapter, or at least as a subtitle. FCPX only supports to support the generation of TC.

    The short answer (obtuse) is not. Not in FCPX alone.

    I seriously doubt you will be interested in this procedure, but someone might be.

    You need movement (this is the only expense here), TextWrangler and a droplet of Automator (see below).

    First, gather all your files of clips in a folder.

    Drop the file on the files in the folder (the automator app/drop) that will create a text file with the names of all files in the folder. When you are prompted to save the file, you can name it and save it wherever you want.

    Gout Gets the names of files from the Finder, and they are complete paths, such as:

    / Users/fx/Desktop/txtLicenses/Aardvark Cafe readme.txt

    [You can download a copy of the 'Files in the folder' drop HERE ]

    Open a window in TextWrangler, and then drag the text file to a blank page (very cool - TextWrangler automatically opens the file with drag and drop.) [TextWrangler is FREE of Barebones.com (http://www.barebones.com/products/textwrangler/) software, everyone should have a copy! The most recent version is 5.0.2 in date 25/12/2015]

    Type the command + F to open the Find/Replace dialog box. Make sure that Grep is checked.

    To find them, use this regex:

    .*\/(.+)\.. +

    [translated: find everything up to and including the last ' / ' character, can find everything up to the last period and save it as a game (the parenthesis) and then find everything at the end of the line]

    As an alternative, use:

    \1\n

    [Translated: prints the substring and adds a newline character - it will be double space lines of text]

    In the drop-down menu with the label of 'g', save... (model - something like Remove Path and FileType) so you can find it again easily.

    The text from the above example will become:

    Aardvark Cafe readme

    [and will follow an empty line]

    [I recommend you do all your spelling at this point.] Make sure that all text is as you want it to appear in FCPX. Repair later gets a bit dicey. and generally it is a good idea to start over if you need to make changes to the text file.]

    Save the file with another file in TXT format.

    On the move:

    Create a project generator. It can be almost any length, so accept the default value of 10 seconds. You will be stretching out in FCPX in any case.

    Add: Generators > text > file

    [You can use the Inspector to Format to choose the font, size, etc. and the inspector looks for color and 3D options].

    In the Inspector of the generator, find the section, load your text file

    Set the speed to Custom

    Reset the Custom speed setting

    Publish the speed of Custom setting slider

    Save in FCPX (and create a category called subtitles)

    When you save the generator in FCPX, the file being used is hard-copied in the media for access folder. You cannot publish the setting browse generator, so all files subtitles prepared in this way are projects of "One Shot". You can throw away them once your project is completed because their utility essentially died with the FCPX project.

    In FCPX, apply the generator to the plot and develop it to adapt to the length.

    Keyframe of the lines of text to match the timing of your video. This is where double spacing will be useful because it is a real pain in simple lines of keyframe and you will need a bit of space for a step-by-step. You can, of course, import the audio portion of your story in motion, create a project for quite a long time for the entire length and key image subtitles in movement. You can export as, eventually, the subtitle project as ProRes (if you do not use 4444, then you can apply the Composite blend mode add to the layer that you use in FCPX as the background should be black.)

    If all of your clips are the same length of time, then using the subtitle generator is a snap. Set a keyframe at 0 for the appearance of the first line and in the end, the last line should appear, simply drag the speed until the last line shows control (should be at or close to 100%). The generator systematically displays a single line both throughout the progression of his 'read'

    I found that the faster is to import the audio in motion and create a Motion project, the length of the audio used for subtitles + a little extra at the end.  Listen to the audio, and for each line that you display, add a keyframe... little whatever it is. When there is a keyframe for each line, listen again and adjust keyframe values to display the line. This will leave you with linear transitions from one image to another key (and overlapping in some cases, or the appearance of lines before image real key because of "Rounding errors") - is NOT a problem! Just select 1 keyframe, type command + A to select all the keyframes, and then right-click on a keyframe and select constant on the menu drop down. This will create a step-by-step through each value and you give the * discreet * timing you have need for the text to appear at the right time.  Remove the audio track and save the project as a generator of FCPX... it is faster and easier to export a track video overlay.

    You need movement 5.1.x or better (there are serious problems with 5.0 versions and file generator.)

    I know it doesn't look like it, but this method of captioning is much easier than ANY other software of captioning I've tried in the past... NO timecode or the special formatting is required... other recommended spacing to double.

    HTH

  • Creating the file must already exist

    The problem that I am struggling with, is that when you create an Excel file, the user is prompted for the file name. They can search for the file by clicking the folder icon, but once they arrive at the directory they want, if they type in a file that does not exist, LabVIEW says that the file is not found. So the user has to click on a file that already exists, and then change just the end of the file name for what they want, it's more work, I want the user to do. Any suggestions?

    Thank you

    GJ

    Check in options for any function you use pop open the file dialog box.  I bet that you have defined for existing files when it should be defined for new or existing files.

    If it is a file IO path control, right click on the Browse button and choose Properties.

  • To sort the list of files by time not the file name.

    Original title: created the new toolbar on the sort option for changing the taskbar.

    I created a new toolbar on the taskbar, and it is directed to a folder in my network. When I click the new button on the toolbar, it opens subfolders sorted by filemane. Then, open the sufolders with files sorted by filemane.

    I want to sort the list of files per hour not the file name. is it possible to change this?

    Here's what I did.

    I right click on the taskbar - selected toolbars - selected new toolbar - selected the folder on my network.

    When I click the double chevron right the new toolbar button, it opens the files in this folder, and then I select a subfolder and an another subfolder then the individual wave in this final folder files. There are more than 300 wave files in this folder. It sorts thenm by file name which is a randomly assigned file name by the used recording software. I want to sort the files by time instead of file name. is this possible?

    Hi Jeffrey,.

    How many computers are present in the network?

    You can follow this link & check id the issue persists:

    How to arrange files using folder views in Windows XP?

    Reference: The order of sorting files and folders whose names contain numerals is different in Windows Vista, Windows XP and Windows Server 2003, in Windows 2000

    Hope the helps of information.

  • How can I have the file name as visible caption on the photo

    I have several hundred digital images that I have edited and saved with a meaningful file name.  I would like to produce a slide show and then burn to DVD with the name of the file as a legend, preferably (but not necessarily) without the file name extension (for example, my photo.jpg would show as 'my picture').

    I (Pinnacle Studio) software that will import photos or DVD, and I'll create my slide show with Studio, since I am familiar with this software, but the Studio does not automatically create captions.  Re-type the captions for each slide will be intensive work and maybe isn't necessary.  I have a couple of programs that will produce a legend using the file name, but they are old and do not have an option to burn a DVD - only to run the slide show from the software owner.  I also Ulead FT 6 and Adobe PS Elements 6.  I am running Vista and have another computer with XP, so I have the photo editing software that comes with those.  I haven't found something that will prepare a folder of photos by file name as legend I can burn on a DVD.

    searching on the Internet I found a few programs for sale that seem to have the ability to do what I want, but I have hundreds of programs, and I don't want to buy another for only this seemingly simple task.  There are shareware/freeware/trialware which will allow me to display the file name as captions for photos and then burn a DVD or create a file that I can burn it with Nero for import into Studio 12 or 14 Studio?

    I have several hundred digital images that I have edited and saved with a meaningful file name.  I would like to produce a slide show and then burn to DVD with the name of the file as a legend, preferably without the file name extension (for example, my photo.jpg would show as 'my picture').

    I (Pinnacle Studio) software that will import photos or DVD, and I'll create my slide show with Studio, since I am familiar with this software, but the Studio does not automatically create captions.  Re-type the captions for each slide will be intensive work and maybe isn't necessary.  I have a couple of programs that will produce a legend using the file name, but they are old and do not have an option to burn a DVD - only to run the slide show from the software owner.  I also Ulead FT 6 and Adobe PS Elements 6.  I am running Vista and have another computer with XP, so I have the photo editing software that comes with those.  I haven't found something that allows to print a file of pictures with the file name as legend I can burn on a DVD.

    searching on the Internet I found a few programs for sale that seem to have the ability to do what I want, but I have hundreds of programs, and I don't want to buy another for only this seemingly simple task.  There are shareware/freeware/trialware which will allow me to display the file name as captions for photos and then burn a DVD or create a file that I can burn it with Nero for import into Studio 12 or 14 Studio?

    ==================================
    FastStone Image Viewer freeware can
    be useful to experiment.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    FastStone Image Viewer
    http://www.FastStone.org/FSViewerDetail.htm

    Add file names:

    I suggest that you create a new folder and add
    copies of your photos for experimental purposes.
    If you are unhappy with the result your originals
    will be intact.

    How to:

    "Basic steps to add text to the image files.
    using Fast Stone Image Viewer"

    Tools / Batch convert / Batch Convert tab...

    Check the box... Use of advanced options...

    Advanced Options button / tab text.
    Check the box... Add text...

    Open the window drop... "Insert a Variable."
    choose... The file name / no Extension... Ok...

    Add the files you want to add...

    Choose an output Format...

    Choose an output folder...

    Click on the button convert...

    (You will need to experiment with the position and the police
    size and color to get the desired result.)

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Want the file names to work as captions

    Hello, I am about to create a DVD of photos and music from an audio CD.  I've never used Windows Media Center before, but plan to use for this project.  Before we go too far, I would like to know how to have my file names to display on each photo - as a legend.  And I don't want the file extension that you want to display.  Can someone tell me how to save the pictures correctly for this purpose?  Thank you, Susan

    FastStone Image Viewer freeware can add
    file names in the face of your photos in a batch.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    FastStone Image Viewer
    http://www.FastStone.org/FSViewerDetail.htm
    (Windows XP / Vista / 7) (on the screen to download...
    try... exe (site 2) for easier downloading)

    I suggest that you create a new folder and add
    copies of your photos for experimental purposes.
    If you are unhappy with the result your originals
    will be intact.

    After FastStone is downloaded and installed...
    Open the program and go...

    Tools / open the Batch Conversion / tab Batch convert...

    Check the box... Use of advanced options...

    Advanced Options button / tab text.
    Check the box... Add text...

    (You will need to experiment with the position and the police
    size and color to get the desired result.)
    (the text size will need to be adjusted according to the)
    the size of the photos)

    Open the window drop... "Insert a Variable."
    choose... The file name / no Extension...
    (in the white field you should see ($C1)
    Left click... Ok

    On the Batch tab convert... in the left field...
    Find and select the photos you want to
    Add.

    Left, click on the Add button to move the files to
    the right field.

    Choose an output Format...

    Choose an output folder...

    Click on the button convert...

    It's much easier to do than to explain then
    give it a try before say you "Good Grief... it's too
    a lot of work.

    BTW... when your photos are ready... try to import
    in creation of Windows DVD to create your video
    slide show.

    Windows Vista - Windows DVD Maker - burn video disc
    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-DVD-video-disc

  • Error message: "the file names would be too long for the destination folder.

    I move the files from internal hard drive to external hard drive using cut and paste.  I get a message "the file name would be too long for the destination folder.  You can shorten the file name and try again, or try a location with a shorter path. "I then gives me choices to skip or cancel.  What happens to files that are ignored?  Are they deleted?  I don't want to lose all the data, but there are more 2 000 files with this problem, so passing by and rename each one really isn't a viable solution.  I don't really understand how the file names were originally created/saved about a problem that is only now that I want to move them.  The disc source and destination are NTFS.  Is there a solution for this?  It is imperative that no data is lost.  Thanks for any help you can offer.

    On Wednesday, 10 April 2013, 12:16:23 + 0000, MADinIowa wrote:

    I move the files from internal hard drive to external hard drive using cut and paste.  I get a message "the file name would be too long for the destination folder.  You can shorten the file name and try again, or try a location with a shorter path. "I then gives me choices to skip or cancel.  What happens to files that are ignored?  Are they deleted?

    N ° to check that what I say is correct, create a new folder
    for the purposes of the trial and to make a copy of some files. To ensure that
    one of them has a long name (rename if necessary), and then try to copy
    These files on the external drive. When you get the message, choose
    'jump' and see what happens.

  • Save the file as font size for the file name

    I have a monitor resolution of 3840 x 2160 and for some time, using 150% dpi, but I loved how everything went wrong because of that and my second monitor is a 1920 x 1200, so everything went really wrong about that. so I changed the dpi at 100% and used the color editor and the appearance to change the size of the icons and the font size. but some policies do not always change. When I save a file, the file name is really small

    and difficult to read. How can I change the size of the font for this without having to resort back to the ugly dpi of 150%.

    some other small texts which seem not to be able to change the editor are like the taskbar menu, and launch the menu properties, msconfig and options in the menu to stop (from the task bar.)

    Hello

    Sorry for the delay in responding.

    Your user profile is a collection of settings that make the computer look and work the way you want. It contains your settings for wallpapers, screensavers, wallpapers, pointer preferences, settings of the sound and other features. User profiles ensure that your personal preferences are used whenever you log on to Windows.

    You can create a new user account and check if that helps. If the problem does not occur in the new user account, you can transfer the files from the damaged to the new user account by using the article user account "difficulty a user profile is corrupted.

    Create a user account: http://windows.microsoft.com/en-IN/windows7/Create-a-user-account

    Difficulty a user profile is corrupted: http://Windows.Microsoft.com/en-us/Windows7/fix-a-corrupted-user-profile

    Keep us in the loop to help you further.

  • Error - the file name, directory name or volume label syntax is incorrect. "(0x8007007B), when you exit the system restore.

    Original title: System Restore problems

    Hello, I am running Windows 7 Home Premium 64-bit classic mode.  My system specs are listed under my signature.

    Before installing a program today, I went to create a system restore point.  In system properties > System Protection, I see that in the Protection settings > disks available there are two instances of the C: drive tagged like this:

    HDD0 (C :) (System) Protection on (selected)
    HDD0 (C :) (Missing) Protection on

    This is probably due to having recently replaced my C: drive with a disk larger to help to restore from a System Image backup.  The installation seems to succeed.  (I use now!)

    Note: other readers in Protection settings are showing off Protection.

    When I clicked on "Set up" in system properties > System Protection, I have seen that in the restoration of settings, the box "Turn off active Protection" has been selected.  I put the option button "restore system settings and previous versions of files.  In space, the slider was set to 0.  I put it to 1% (857,54 MB).

    When I tried to leave the system of Protection for the dialog to HDD0 (c) I got this error:

    There was an unexpected error in the property page:
    The file name, directory name or volume label syntax is incorrect.  (0x8007007B)
    Close the property page and try again.

    I deleted all restore points, then created a new restore point.  Current usage shows now 29,48 MB.  I still get the error when I try to the OK from the dialog box.  When I click on the system restore and start the Restore Wizard that I can see the restore point, I just created.

    Any help to banish the fake player available and messages will be appreciated greatly.

    -Dave

    ASUS P7P55 Deluxe
    PC power & cooling silent 750
    Corsair CMX8GX3M4A1600C9 (x 2 4 GB DIMMS)
    ZT-98GES3M-FSL ZOTAC GeForce 9800 GT 512 MB GDDR3 256-bit PCI Express 2.0 x 16
    Drive0 (OS) SSD OCZ Agility 2 OCZSSD2-2AGTE90G 2.5 "90 GB SATA II
    Reader1 (data) HITACHI UltraStar A7K2000 2 TB 7200 RPM 0F10452 / MIN 32 MB of Cache SATA 3.0 GB/s
    Lecteur2 (Apps, pagefile, Misc) SSD OCZ Vertex 2 OCZSSD2-2VTX50G 50 GB
    Drive3 (Web data, configuration files Pgm) OCZ SSD Vertex 2 OCZSSD2-2VTX50G 50 GB

    Hey DaveMcKeen,
     
    The error 0x8007007B occurs when the system is configured to store restore points to a location or a bad way.

    Set the path to the appropriate Windows 7 restore point.
     
    To remove this error message, follow the following solution:
     
    Step 1:
     
    To set the path of the appropriate Windows 7, restore point as follows:
     
    a. Click Start.
    The Start Menu appears.
    b. type sysdm.cpl in the start search box and press .
    The user account control window will prompt you for permission to run the program.
    c. click on continue.
    The System Properties window appears.
    d. click on the System Protection tab.
    e. under automatic restore points, uncheck all invalid location or duplicate
    f. Click to check drive C: with the Windows Logo
    g. click on apply, and then click Ok
     
    Step 2:
     
    Create a system manually restore point:
     
    a. open system by clicking the Start button, clicking Control Panel, clicking system and Maintenance, and then click System.
    b. in the left pane, click System Protection, if you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    c. click on the System Protection tab and then click on create.

    d. in the System Protection dialog box, type a description, and then click on create.
     
    Reference:
     
     

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error in retrieving the metadata of HFM. Cannot create the file

    In our HFM 11.1.2.3.503, we get an error when we try to extract metadata from any application of HFM. The States of error message failed to create the file.

    We are on hfm.501 but I tried with connecting to 503 to see if it solved the problem, but there was no solution in sight.

    {796CEDB3-FC01-4A9C-856F-06FEDBF035F2}

    Cannot create the file.

    Error reference number: {796CEDB3-FC01-4A9C-856F-06FEDBF035F2}; User name: BI-DEMOS5$
    NUM: 0 x 80040230; Type: 1; DTime: 16/12/2015-21:27:04; SVR: BI-DEMOS5; File:; Line: 0; Worm:;

    There is no indication where he tries to put all the files so that I could try to find out if there is a setting somewhere pointing to a folder that does not exist or similar.

    Try the revision of the following document:

    • Hyperion Financial Management (HFM) error "unexpected error: 80040230 has occurred" trying to to Scan, load or extract meta-data (Doc ID 1282089.1)
  • Remove the file name characters when exporting to file

    Hi all

    I worked with Silly-V , which has been extremely useful in creating a script to automate creating files in Illustrator.

    What I need help with now is the ability to add in this script, the ability to remove "x #" character of a filename on export. This would be ideal, as it will completely automate what I did by hand for months.

    The current script, that we have put in place takes generally, which would take me about 1 minute per file and it has reduced to 10 seconds. Translate this in the whole of the need to treat roughly 800-1 000 files, and you can see where the time invested is decreased significantly.

    The last piece of the puzzle is the removal of characters from ONE of the two files that are created through this script.

    First of all, this is the current script. It seems to work perfectly for what I ask it to do.

    #target illustrator-19  
    function test(){  
      
      
      var folder_1 = Folder("~/Desktop/Header CAD");  
      var folder_2 = Folder("~/Desktop/Clean CAD");  
        
      app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;  
        
      function revealAllLayers(doc) {    
          for (var i = doc.layers.length - 1; i >= 0; i--) {    
              doc.layers[i].visible = true;    
          }    
      };    
      
      
      
      
      function hideLayer(doc, name) {    
          doc.layers.getByName(name).visible = false;    
      };    
      
      
      
      
      function exportMyPng(dest, doc, props) {    
          if(props.hasOwnProperty("antiAliasing")){    
            switch(props.antiAliasing){    
              case "ARTOPTIMIZED" : {    
                  app.preferences.setIntegerPreference("plugin/PNGFileFormat/AntiAlias", 1);    
                  break;      
              }    
              default : {    
                  break;    
              }    
            }    
          }    
          var pngOpts = new ImageCaptureOptions();   
          pngOpts.antiAliasing = true;   
          for (var all in props) {    
              if (pngOpts.hasOwnProperty(all) && all != "antiAliasing") {    
                  pngOpts[all] = props[all];    
              }    
          }    
          doc.imageCapture(File(dest + "/" + doc.name.replace(/\.\w+$/, props.extraStuff + ".png")), doc.visibleBounds, pngOpts);    
      };    
      
      
      
      
      var doc = app.activeDocument;    
      revealAllLayers(doc);    
      hideLayer(doc, "Materials");    
      hideLayer(doc, "Detail Artwork");    
      exportMyPng(folder_1, doc, {    
          transparency: false,    
          antiAliasing: "ARTOPTIMIZED",    
          resolution: 300,    
          extraStuff: "_header"
      });    
      
      
    
    
        
      hideLayer(doc, "Header");    
      exportMyPng(folder_2, doc, {    
          transparency: false,    
          antiAliasing: "ARTOPTIMIZED",    
          resolution: 300,    
          extraStuff: ""
      });    
      
      
      app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);  
      
      
    };       
    test(); 
    
    test(); 
    

    I found the program Name Mangler done an exceptional job of the completion of the task of renaming. Here's a screenshot of what I'm asking for looks like with this program.

    Screen Shot 2016-08-01 at 3.18.45 PM.png

    My ultimate goal is to be able to integrate this unique Name Mangler feature the existing script I posted above. Now, the problem is that I need ONLY to assign the file created by the section of the lines 66-71. As you can see, I need to remove the file name starting at the index of 14 characters.

    Is it possible and something that anyone can help with?

    Thank you in advance!

    Brooks

    Whew busy days!

    Well, I got this here:

    #target illustrator
    function test(){   
    
      var folder_1 = Folder("~/Desktop/Header CAD");
      var folder_2 = Folder("~/Desktop/Clean CAD");   
    
      app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;   
    
      function revealAllLayers(doc) {
          for (var i = doc.layers.length - 1; i >= 0; i--) {
              doc.layers[i].visible = true;
          }
      };     
    
      function hideLayer(doc, name) {
          doc.layers.getByName(name).visible = false;
      };     
    
      function exportMyPng(dest, doc, props) {
          if(props.hasOwnProperty("antiAliasing")){
            switch(props.antiAliasing){
              case "ARTOPTIMIZED" : {
                  app.preferences.setIntegerPreference("plugin/PNGFileFormat/AntiAlias", 1);
                  break;
              }
              default : {
                  break;
              }
            }
          }
          var pngOpts = new ImageCaptureOptions();
          pngOpts.antiAliasing = true;
          for (var all in props) {
              if (pngOpts.hasOwnProperty(all) && all != "antiAliasing") {
                  pngOpts[all] = props[all];
              }
          }
          doc.imageCapture(File(dest + "/" + doc.name.replace(/\.\w+$/, props.extraStuff + ".png").substr(props.charsOffStart)), doc.visibleBounds, pngOpts);
      };     
    
      var doc = app.activeDocument;
      revealAllLayers(doc);
      hideLayer(doc, "Materials");
      hideLayer(doc, "Detail Artwork");
      exportMyPng(folder_1, doc, {
          transparency: false,
          antiAliasing: "ARTOPTIMIZED",
          resolution: 300,
          extraStuff: "_header",
          charsOffStart: 0
      });     
    
      hideLayer(doc, "Header");
      exportMyPng(folder_2, doc, {
          transparency: false,
          antiAliasing: "ARTOPTIMIZED",
          resolution: 300,
          extraStuff: "",
          charsOffStart: 14
      });
      app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);   
    
    };
    test();
    

    This one has a new parameter "charsOffStart" that you have to stick in your two-functions for the economy, and it will be lop however much from character now!

  • ORA-19504: cannot create the file '+ DATA '.

    Hello everyone.

    This is the scenario:

    We have a test server that is used to restore daily backups of the Production database. Restore us the database with the same SID as the production one.

    For specific reasons, we need create a second database (with a different SID) on this server with an older backup from the production one. To realize that I'm trying to use a part of the "DUPLICATE without connection to the target" tutorials on the web.

    I tried the simple guide that I found which is:

    (1) copy the backup files cold /somedirectory

    (2) start OLD database with nomount

    (3) connect RMAN with OLDER as an auxiliary

    (4) run the following: DUPLICATE DATABASE FOR OLD BACKUP LOCATION ' / somedirectory' NOFILENAMECHECK.

    Here's the result (I deleted some lines because of the size of it):

    ----------------------

    RMAN > ProdDB to OlderDB DUPLICATE DATABASE

    2 > LOCATION of BACKUP "/ home/oracle/OlderBackupFiles.

    3 > NOFILENAMECHECK.

    4 >

    From October 1, 14 Db double

    content of Script memory:

    {

    clone of SQL 'alter system set control_files =

    "+DATA/OlderDB/controlfile/current.829.859839217" comment =

    ' Set by RMAN "scope = spfile;

    clone of SQL 'alter system set = db_name

    "ProdDB" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone of SQL 'alter system set db_unique_name =

    "OlderDB" comment =

    ' Modified by RMAN duplicate "scope = spfile;

    clone to stop immediately;

    Start clone force nomount

    Restore controlfile primary clone of ' / home/oracle/OlderDB/controlfile_ProdDB_20141001_4159.bkp';

    change the clone database mount;

    }

    execution of Script memory

    SQL statement: alter system set control_files = comment "+DATA/OlderDB/controlfile/current.829.859839217" = "defined by RMAN" scope = spfile

    SQL statement: change the system db_name set = comment "ProdDB" = "modified by RMAN duplicate" scope = spfile

    SQL statement: alter system set db_unique_name = comment "OlderDB" = "modified by RMAN duplicate" scope = spfile

    (...)

    From restoration to 1 October 14

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 191 type device = DISK

    channel ORA_AUX_DISK_1: restore the control file

    channel ORA_AUX_DISK_1: restoration complete, duration: 00:00:03

    output file name=+DATA/OlderDB/controlfile/current.829.859839217

    Restoration finished in October 1, 14

    mounted database

    output channel: ORA_AUX_DISK_1

    allocated channel: ORA_AUX_DISK_1

    channel ORA_AUX_DISK_1: SID = 191 type device = DISK

    content of Script memory:

    {

    until the SNA 274262921.

    the value of newname for datafile clone 1 again;

    the value of newname for datafile clone 2 again.

    the value of newname for datafile clone 3 again.

    the value of newname for datafile clone 4 new ones;

    the value of newname for datafile clone 5 again.

    the value of newname for datafile clone 6 again.

    the value of newname for datafile clone 7 again.

    restoration

    database clone;

    }

    (...)

    From restoration to 1 October 14

    using the ORA_AUX_DISK_1 channel

    channel ORA_AUX_DISK_1: from the restore backup set data file

    channel ORA_AUX_DISK_1: specifying datafile (s) to restore from backup set

    channel ORA_AUX_DISK_1: restore datafile 00001 to + DATA

    channel ORA_AUX_DISK_1: restore datafile 00002 to + DATA

    channel ORA_AUX_DISK_1: restore datafile 00003 to + DATA

    channel ORA_AUX_DISK_1: restore datafile 00004 in + DATA

    channel ORA_AUX_DISK_1: restore datafile 00005 to + DATA

    channel ORA_AUX_DISK_1: restore datafile 00006 to + DATA

    channel ORA_AUX_DISK_1: restore datafile 00007 to + DATA

    channel ORA_AUX_DISK_1: reading from the backup /home/oracle/OlderDB/database_ProdDB_20141001_4157.bkp piece

    channel ORA_AUX_DISK_1: ORA-19870: error when restoring the backup /home/oracle/OlderDB/database_ProdDB_20141001_4157.bkp piece

    ORA-19504: cannot create the file '+ DATA '.

    ORA-17502: ksfdcre:4 cannot create the file + DATA

    ORA-15041: diskgroup space 'DATA' exhausted

    switch to the previous backup

    Oracle instance started

    (...)

    content of Script memory:

    {

    clone of SQL 'alter system set = db_name

    "OlderDB" comment =

    ' Restore the original value by RMAN "scope = spfile;

    clone of SQL 'alter system reset db_unique_name scope = spfile;

    clone to stop immediately;

    }

    execution of Script memory

    Errors in the script of the memory

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-06136: the auxiliary database ORACLE error: ORA-01507: database not mounted

    ORA-06512: at "SYS." "X$ DBMS_RCVMAN ', line 13466

    ORA-06512: at line 1

    RMAN-05556: not all data files have backups can be recovered on SNA 274262921

    RMAN-03015: an error has occurred in the script stored memory Script

    RMAN-06026: some targets not found - abandonment of restoration

    RMAN-06023: no backup or copy of the file 4 found to restore

    RMAN-06023: no backup or copy of datafile 3 found to restore

    RMAN-06023: no backup or copy of datafile 2 found to restore

    RMAN-06023: no backup or copy of datafile 1 found to restore

    RMAN-00571: ===========================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ===========================================================

    RMAN-03002: failure of the command duplicate Db at 15:39:11 01/10/2014

    RMAN-05501: abandonment of duplicate target database

    Complete recovery manager.

    ------------------------------------------------------------------

    The first mistake of the stack was ORA-19504 while trying to restore the backup of the database.

    First thing I took a glance was ASM occupation but it enough available space.

    The second was a permission problem, but it doesn't seem to be the case because RMAN can correctly write the controlfile to ASM.

    One have some advice on what I should look for?

    Thanks in advance sorry for my English.

    Select this option.

    Hello.

    Thanks, but is not the case. As I have said, that the DATA diskgroup has space enough he uses only a single disk in a RAID.

    But I solved my problem... To the auxiliary database, I added the following to the spfile:

    DB_FILE_NAME_CONVERT = '+ DATA/ProdDB', '+ DATA/OlderDB ".

    LOG_FILE_NAME_CONVERT = '+ DATA/ProdDB', '+ DATA/OlderDB ".

    I don't know why, but with these two clauses, it worked well. Perhaps RMAN was trying to restore it to the wrong place?

Maybe you are looking for