RH10: Renaming topic files from FM import

I have an RH 10 project that is created using FrameMaker as single source (I have the techcomm suite). I want to output in WebHelp format.
I have another post about getting RH to output the topic files in HTML, however, if no one has a solution to that, I thought I would rename the files in RH.
However, I have no Rename option, as RH Help says I should. in the Properties dialog box, the name is grayed out.
Is this because the file names are autogenerated during the Frame Book Import?
Is there any way to rename files given my project setup?
Thanks to anyone who can help!
  --Amy

Thread move to FrameMaker Integration forum.
I don't think you can freely rename the files for the reason you state. However you can have them created to a formula. It is in the online help and in the topic on my site about Importing and Linking Word documents, it is the same process for this point.
I am not a FM user so maybe one of those guys can add more.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge

Similar Messages

  • Renaming a file from java

    Hello,
    I want to rename a file from a Java Application and I want this operation was very speed.
    I would renaming was "atomic".... not interruptable from Operative System.
    I made this operations in two ways: does anyone explain me if one of these is more efficient than the other one?
    Thank you very much all in advance
    Diego
    First implementation
                            String tmpStateName = stateFname + ".tmp";
                            tmpStateFile = new File(tmpStateName);
                            tmpStateFileStream = new FileOutputStream((tmpStateFile));
                   pd.store(tmpStateFileStream, "System shutdown");
                            tmpStateFile.renameTo(new File(stateFname));
    Second implementation
                            String stateFnameTmp = stateFname + ".tmp";
                   pd.store(new FileOutputStream (stateFname + ".tmp"),
                   "System shutdown");
                            String command = "mv " + stateFnameTmp + " " + stateFname;
                            Runtime.getRuntime().exec(command);
    ....

    But calling exec method of Runtime could I be faster
    than the first implementation??
    I thought that the first implementation was heavier
    (more Java objects created) than the second one...
    Was I wrong?Maybe.
    However it is not relevent. It is just flat out stupid to make things that convoluted in the name of "performance". Especially something like this. All you are really doing in the second implementation is creating a brittle, unmaintable nightmare.
    So don't do that.
    Last but not least I would highly suspect that the first implementation will be faster anyway. You don't seem to be counting on the expense of creating a new process which is not "light" relatively speaking.

  • Unable to rename topic files in Robohelp

    We're translating Framemaker > Robohelp integrated project into Chinese, and as part of the process, we rename the Chinese topic file names to English so that the Webhelp output works on our chinese web site. This process has worked well, except we are now having a peculiar problem:
    The topic File Name in the Topic Properties dialog cannot be changed in any project. The topic file name is grayed out. I have tested and confirmed this behavior in both projects in Robosource Control and local projects that are NOT in Robosource control. In the past, I have always been able to change both the topic title and topic file name, but in Version 8 (TCS 2), both fields are grayed out in EVERY project.
    Our IT guys tried changing all kinds of file permissions on our Windows XP boxes, and Robohelp STILL won't let us change the topic file names or the topic titles in Robohelp's Topic Properties dialog.
    We have not installed any patch since installing TCS 2.
    Anybody have a clue?
    Thanks,
    Michael Cohen

    Hi Michael,
    If you're linking your Frame documents into RoboHelp, I believe that behaviour is expected. Since the files can change anytime because they are generated, it's my belief that RoboHelp won't let you change them on purpose. If you Import the Frame into Robohelp then you should be able to change the filename.
    Try using a Topic Name marker to define what the filenames should be when they are generated. Also make sure that you add a title to the marker in addition to the filename (for the HTML title tag). This works most of the time, but I'm certain there is some bug that prevents all of mine from being converted properly. My workflow, until I come up with something better, is to use Linking up until a certain milestone, then Import the Frame into RoboHelp/ Importing appears to be more reliable with less bugs than Linking.
    Gerry

  • Exclude .sub-folders/files from an import

    Is it possible to exclude specific file types (e.g. .CR2 raw files)/folders from every Import into iPhoto '11

    You can download to disk using image capture (in your applications folder) and then import only the photos you want from there
    iPhoto does offer an option to select by file type
    LN

  • Using a script to rename a file from the file info cart Cut Num (ID)??

    Hi,
    Can any of you guys tell me if its poss to do a script to rename a wav with the file info, cart, Cut Num ID field....??? (Cart chunks)
    Example file at the moment is called {C5E5F0FE-57D9-4A9A-8DA1-58D1AE7017FD}.wav and I want to grab the info out of the File info, cart section, under Cut Num (ID) which has 9558 in it and rename the file so it is now 9558.wav when it saves or just renames it.I also then want to run the script as i have 6000 plus wav,s to do this too.
    Thanks for any info.
    Glen

    >Can any of you guys tell me if its poss to do a script to rename a wav with the file info, cart, Cut Num ID field....??? (Cart chunks)
    No, scripts in Audition won't let you do this at all. In fact, Audition's scripting function really isn't very file-friendly, relating pretty much just to basic Audition functionality. And there's no way that an Audition script would let you rename a file anyway - they the closest they get to handling any file-related functions is that you can open a designated noise reduction profile - but that's about it.
    There's one place that I know of where you might find a utility to do what you want -
    here (try WidgetPro).

  • HT1473 How do you rename files on a playlist within iTunes? Trying to rename some files from audio CD.  Thanks

    How do you rename files on a playlist in iTunes? Don't see a rename function and want to rename files coming in from audio CD as "track one."  Thanks

    Right-click the track, choose Get Info, and go to the Info tab.  Overtype the Name (and/or any other information that you want to change) with the new information.  Click OK when you are done.

  • How to rename  doc file from powerbuilder

    Hi,
    What is the method to rename the  testfile.doc  into  testnewfile.doc from powerbuilder. Please  can u give an idea it would be appreciate.
    Regards
    Pol

    Hi Polachan;
      In PowerScript, You could also use the FileCopy & FileDelete combination or the FIleMove (old,new) & FileDelete as well. On a more primitive level you could use the FileReadEx, FileWriteEx, FileDelete commands. Just remember to only delete the original if the new file creation is OK.
      Other alternatives:
    1) Shell out of your PB application and run the DOS Rename command
    2) Call the MS-Windows API - rename, _wrename
    HTH
    Regards ... Chris

  • Renaming the file from in a static way.

    Hello  everyone,
    Its a Mail to File scenario. There is no mapping involved in this scenario.
    There  is a XLS file coming as an attachment  and this needs to be dropped in FTP server.
    But there are 7 reports and i want to use only one communication channel.
    So if the File name is A then it has to be renamed as B. If the file name is C then it has to be renamed as D.and so on ...
    How to achieve this. ?
    Regards,
    Ravi

    You can use Java mapping to do that, use this mapping program in Operation mapping in your ID interface determination. Here is a sample code of it, You can use case statement to put your conditions.
    public class RenameFile extends AbstractTransformation  {
          private static final DynamicConfigurationKey KEY_FILENAME =
          DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
           public void transform(TransformationInput in, TransformationOutput out)
           throws StreamTransformationException {
                     String newFileName = null;
                   Date date = new Date(); // get the current date
                   SimpleDateFormat dateFormatter = new SimpleDateFormat ("yyyyMMddHHmmss"); // set the format for date
                   String dfmt =  dateFormatter.format(date);
                   DynamicConfiguration conf = in.getDynamicConfiguration();
                    String oldFileName = conf.get(KEY_FILENAME);                    // filename is <store_ID>.txt
                    newFileName = dfmt + oldFileName; // Final file will have date in file name
                    String inData = convertStreamToString(in.getInputPayload().getInputStream());
                    String outData = inData;
                    try {
                        out.getOutputPayload().getOutputStream().write(outData.getBytes("UTF-8"));
                   } catch (UnsupportedEncodingException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   } catch (IOException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                   conf.put(KEY_FILENAME,newFileName);
           public String convertStreamToString(InputStream in){
                   StringBuffer sb = new StringBuffer();
                   try
                   InputStreamReader isr = new InputStreamReader(in);
                   Reader reader =
                   new BufferedReader(isr);
                   int ch;
                   while((ch = in.read()) > -1) {
                        sb.append((char)ch);}
                        reader.close();
                   catch(Exception exception) { }
                   return sb.toString();

  • Some iTunes library files showing as an unknown file type - different files from same import...

    Haven't been able to find a similar problem on here, but apologies if this is a repetition of another discussion.
    Some of the files in my Itunes library popped up with the little exclamation mark next to them, so I attempted to locate them. It's been a patchy problem since transferring from PC to Mac, but has just been an issue of pointing Itunes to the right file.
    However, in this instance when I navigate through to the files in the folder they aren't showing as the same file type as the music that is playing in the library - I just get a blank page icon.
    What's confusing me is that these aren't different file types or from different sources. They're maybe 3 tracks out of a whole album that is playing fine, that were all ripped from the same CD at the same time.
    I've no idea why the Itunes is seeing some of these files differently. Any ideas?

    Looked at in the HD they're all showing as M4P. I'm sure it's the way the software is viewing the files, and not the files themselves. Itunes does offer to find the others, but then does a really crappy job of doing so - missing files in the same album in the same folder.
    I've cracked the original file problem by pointing Itunes to the files by going through the MacHD route, so now I'm just wrestling with thousands of missing files that I know are sitting right next to the files that aren't missing!
    I might just resign myself to ploughing through and fixing it, sorting the patchy artwork at the same time. If I do a purge at the same time I can convince myself that I'm not wasting my life!

  • Batch Renaming Image Files from a list of names

    I would like to use the batch rename function in Bridge CS5 to quickly rename newly uploaded image files of our products.  I would like to rename the image to it's corresponding product number.  The issue is that the product numbers aren't in exact numerical order (ie.  the first pic is of product ES2004 and the next one is for ES2012).  The product numbers can sometimes end with a letter or a number.  The pictures are taken in order of the product numbers on an excel sheet.  What's the easiest way to have bridge name the image file to its corresponding part number? 

    Here is an example script that will do the re-naming also place the original filename into the metadata.
    CSV format is fileName,Product IE:
    p1020337.jpg,E179562
    p1020338.jpg,Z556301
    Copy and paste the script into ExtendScript Toolkit (This gets installed with Photoshop)
    Open Bridge
    Edit > Preferences > Startup Scripts
    Click "Reveal My Startup Script"
    Save the script into this folder.
    Close and restart Bridge and accept the new script.
    To use, navigate to the folder with the documents to rename, "Right mouse click Menu" select "Rename to Product" and select your csv file.
    #target bridge 
    if( BridgeTalk.appName == "bridge" ) { 
    fileNameToProduct = MenuElement.create("command", "Rename to Product", "at the end of Thumbnail");
    fileNameToProduct.onSelect = function () {
       renameToProduct();
    function renameToProduct(){
    var Path =app.document.presentationPath;
    var descFile = File.openDialog("Open Product File","CSV File(*.csv):*.csv;");
    if(descFile == null) return;
    descFile.open('r');
    var datFile=[];
    while(!descFile.eof){
    var line = descFile.readln();
    if(line.length > 5) datFile.push(line);
    descFile.close();
    for(var t in datFile){
    var str=datFile[t];
    str= str.split(',');
    var fileName = File(Path+"/"+ str.shift());
    var product = str.shift();
    if(!fileName.exists) continue;
    var ext = fileName.toString().toLowerCase().match(/[^\.]+$/);
    var thumb  = new Thumbnail(fileName);
    var md = thumb.synchronousMetadata;
    md.namespace = "http://ns.adobe.com/xap/1.0/mm/";
    md.PreservedFileName = thumb.name;
    $.sleep(100); //give it time to update the metadata
    var newName = product + "." +ext;
    fileName.rename(newName);
    alert("All done");

  • Automate renaming of files from lists

    I have been looking for a utility that cna do this for me, but can't find one.
    So I have decided to try and do this via Applescript. But this is getting a bit too complicated for me.
    I have about 35,000 files which have to be renamed.
    The current file name structure is : AABBBBBBB_CDDD.EEE
    "AA_" has to be deleted - *so far so good!*.
    The 7 letter code "BBBBBBB" has to be replaced with a new 5 digit product code, but ther rest of the file name ("C_DDD.EEE") must remain the same.
    I have an Excell file with the old product code in the first column, and the new product code in the second column.
    Anybody out there who can help me?
    Many thanks, cos I'm getting seriously bogged down!

    *First try this in Script Editor and then try the 'Finder' version [between the (* *) ]*
    set changeMidstringInto to text returned of (display dialog "Set BBBBBBB to following 5 digit code..." default answer "")
    set theFileName to "AABBBBBBB_CDDD.EEE" -- -REPLACE WITH name of (info for curItem)
    set ASTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to "_"
    set myStartString to text item 1 of theFileName
    set myStartString to ""
    set myMidString to text item -3 of theFileName
    set myMidString to changeMidstringInto as string
    set myEndString to text items -2 thru -1 of theFileName as string
    set theNewFileName to myMidString & myEndString
    set theFileName to theNewFileName as string
    set AppleScript's text item delimiters to ""
    set AppleScript's text item delimiters to ASTID
    return theFileName
    set changeMidstringInto to text returned of (display dialog "Set BBBBBBB to following 5 digit code..." default answer "")
    tell application "Finder"
    activate
    set frontmost of application "Finder" to true
    -- [Optional] select Finder window 1
    set curItems to selection -- OR || set curItems to every item in window 1
    repeat with curItem in curItems
    set theFileName to name of (info for curItem)
    set ASTID to AppleScript's text item delimiters
    set AppleScript's text item delimiters to "_"
    set myStartString to text item 1 of theFileName
    set myStartString to ""
    set myMidString to text item -3 of theFileName
    set myMidString to changeMidstringInto as string
    set myEndString to text items -2 thru -1 of theFileName as string
    set theNewFileName to myMidString & myEndString
    set theFileName to theNewFileName as string
    set AppleScript's text item delimiters to ""
    set AppleScript's text item delimiters to ASTID
    --return theFileName
    end repeat
    end tell
    *)

  • Batch Rename Raw Files After Import?

    Can you batch rename raw files after you import, so that the file name changes in Aperture and on the hard drive? I want to be able to edit images, and then rename only the keepers. This has been asked before here, but I could not find an answer.
    Thanks!

    File -> Export, Kind: Original
    When you import a Raw to iPhoto it automatically creates a jepg preview of the file. Why? Because you cannot do anything with a Raw: you cannot print it, use it a slideshow and so on. However, with this preview you can work with the photo immediately.
    You can, however, also process the Raw in iPhoto simply by editing it. The Raw processing engine in iPhoto the same one used in Aperture, but with less fine control. (Think of the differences between Word and TextEdit, iMovie and Final Cut). The output from the processing then replaces the preview. You can choose to save your output as either jpeg or tiff in the iPhoto Preferences.
    When you are processing Raw in iPhoto you will see the Raw badge on the bottom of the iPhoto Window
    Uploaded with plasq's Skitch!
    Note: After you have processed a Raw, subsequent edits to the photo are carried out on the processed jpeg (or tiff) not the Raw. If you want to go back to the original then you need to use the Photos -> Reprocess Raw command.
    Aperture works in an entirely different way. What are you trying to do, exactly?
    Regards
    TD

  • After renaming a file extention from .jpeg to .jpg I can no longer type ...

    After renaming a file extention from .jpeg to .jpg I can no longer type in any of the finder related editable fields/boxes. I can still type in my open applications fields.
    This problem also happens when I happen to find a file that has been named, for instance, 2008jpg. When I add the period to have the file read correctly as 2008.jpg, a warning box appears asking - {*Are you sure you want to change the extention from ".jpeg" to ".jpg"?* If you make this change, your document may open in a different application.} Two radio buttons are available within this warning box that read - 1 - {Use .jpg}(it is not color coded, which means it must be selected manually. - 2 - {Keep .jpeg}(it is colored w/my Blue highlight color, which means it will be selected if the Enter Key is used.
    The warning box does Not appear if I remove the period from a file and not again when i re-add the period to that same file.
    After trying to make these types of edits to the name of any file, with any of the various extentions available for files in our digital world, I usually get an anomaly where myability to type in the Finder ceases to be a possibility.
    I have found that I can Force Quit the Finder for a quick fix, but, I'm not sure that this Typing problem should have to be dealt with at all by this quick fix. Is this an issue with the Indexing in Spotlight, which seems to be giving many users problems?

    I downloaded and tried EasyFind. It works but it took 30+ seconds to complete finding 3 files that are on One of my Five 25+ Gb partitions of my 130 Gb Seagate Cuda(Really 160 Gb, but my Sawtooth will only recognize 130) I figured that if I ever got a better box, I could reformat it to see the whole 160 Gb. So, as far as I can see, Spotlight's indexing scheme which finds the files instantly is probably preferable. Spot light allows you to rename your files from within it's app window. I've always thought that was pretty powerful. Could my doing so be causing me any issues? As i said it is the inability to Type in the Finder that seemed to be caused from changing file Extentions that were mis-written. Maybe it was a delayed reaction to my renaming files in the Spotlight app? I've done both on occasion.
    As for these .DS_Store files. Apparently you can NOT stop them from being written to any folder that you touch/open/view during a days session. But, as a function of the OS, are the essential to have in their respective folders Forever? I've looked at the .DS_Store terminator app briefly and assume that getting rid of these files won't hurt the regular operation of my OS. They will just be re-written if I ever have to go back to any particular folder again. But, apparently, some have said that if the plan on burning a CD or DVD of their data, they delete the .DS_Store files first and then do the burn.
    I'm thinking from your having suggested this tremination app that you suspect that my having all of these ,DS_Store files could be a situation where any of them could have become corrupted and terminating them regularly should be part of my regular maintenance.
    Does that sound like I'm understanding what I can do?
    TIA

  • Again: UDF: Load file from "imported archives"

    Hi everybody,
    I tried to read a txt-File from the "imported archives".
    The following does not work:
    try {
    +     FileInputStream fstream = new FileInputStream(Filename);+
    +     DataInputStream in = new DataInputStream(fstream);+
    +     BufferedReader br = new BufferedReader(new InputStreamReader(in));+
    } catch (Exception e) {// Catch exception if any
    +     return "Error: " + e.getMessage();+
    }//catch
    return "test";
    I get the error:
    abc.txt (No such file or directory)
    Any ideas?
    regards Mario

    Hi roberti,
    it is possible!
    I found some coding that works:
         String returnString="";
         byte[] buffer;
         try {
              InputStream is = this.getClass().getClassLoader().getResourceAsStream(filename);
              buffer = new byte [is.available()];
              is.read (buffer);
              returnString = new String (buffer, "ISO-8859-1");
         catch (Exception e) {
              returnString = e.getMessage();
         return returnString;
    Unfortunately this coding gets the whole file in once. But I need the single lines.
    Thats why I tried to use FileInputStream instead on InputStream
    Any idea?
    Regards Mario

  • UDF: Load file from "imported archives"

    Hi everybody,
    I need some code for loading a file from the imported archive. I can't find any blog.
    Regards Mario

    >>loading a file from the imported archive
    I dint get this. What does the imported archive contain? A java class? If so, you can acess the members of the class in the UDF with the correct package name.
    Regards,
    Jai Shankar

Maybe you are looking for