How do I generate PDF and CHM files from the a command line in windows?

I am trying to set up a PC to build some documents during the night. I was looking for a way to get framemaker to generate PDF and CHM files via a command line in windows? How is this done with FrameMaker 12
Thanks for the help
Alex

Hi,
The part with generate a PDF via a jsx seems to work OK, except when FrameMaker decides that it will not work anymore. I must say I am not impressed with the stabillity of FrameMaker 12, there is room for a lot of improvement!.
I have given up on how to figure out how to get FrameMaker 12 to generate chm files via jsx scripts, any pointes are still very welcome.
The route I have taken is I make a RoboHelp project for each chm files I need to generate. The only thing this RoboHelp project contains is a link to the actual FrameMaker project I want to generate a chm file.
To make the chm I start RoboHelp with a script that
1) Opens the desired project
2) Sets the desired output chm files name
3) Generates the chm file
4) And finally quits RoboHelp
Below is a copy of the jsx in case anyone can reuse anything.  And yes parameters are transfered via enviroments variable. I have later learned there is some way to read the parameters given at a command line but this seems to work so I stick to this for now.
// Get parameters
var RhProjName = $.getenv("RH_PROJ_NAME");
var RhChmName = $.getenv("RH_CHM_NAME");
var RhLogFileName = $.getenv("RH_LOGFILE_NAME");
var RhLogFile = new File(RhLogFileName);
RhLogFile.open("w", "TEXT");
RhLogFile.writeln("RH_PROJ_NAME : ", RhProjName);
RhLogFile.writeln("RH_CHM_NAME : ", RhChmName);
doc = RoboHelp.openProject (RhProjName, 1);
var sslmngr = RoboHelp.project.SSLManager;
for(var i = 1; i<=sslmngr.count; i++){
  var ssl = sslmngr.item(i);
  if(ssl.name == 'Microsoft HTML Help') {
    // Set the output location and file name
    ssl.setSpecificProperty("DestinationProjectName", RhChmName);
    if (doc.saveAll(true) ) {
      RhLogFile.writeln("saveAll returned TRUE");
    } else {
      RhLogFile.writeln("saveAll returned FALSE");
    if ( ssl.generate() ) {
      RhLogFile.writeln("ssl.generate returned TRUE");
    } else {
      RhLogFile.writeln("ssl.generate returned FALSE");
  } else {
    // alert ("Found " + ssl.name + " dont do anything");
doc.saveAll(true);
RhLogFile.close();
RoboHelp.closeProject();
RoboHelp.quit();

Similar Messages

  • Does anyone know how I can copy photo and video files from the Photo's app on my Macbook, to a USB stick or other external back-up?

    I've updated the software on my Macbook to the most recent version; regretting it now; and iPhoto has now become the Photo's app.
    The problem is I can no longer back up my photo and video files taken on my phone, saved to my mac, by copying them and saving them on a USB stick or other external hard drive.
    I could easily do this with iPhoto, but now Photos app does not let me copy the files when I select them.
    Does anyone know if there's a way to save, copy or back-up my photo's and video files: prefreably one that doesn't involve iCloud, as I don't feel like paying for more storage; there must be some way to access those photos/videos from my iPhone to save on another source?

    The problem is I can no longer back up my photo and video files taken on my phone, saved to my mac, by copying them and saving them on a USB stick or other external hard drive.
    Select the photos and videos in Photos and use the command "File > Export"  and select a folder on your USB stick to save the photos to.

  • How to Purge pdf and xls files from $LOG_HOME

    Hi There,
    application: ebs R12(12.1.2)
    db: 11.1.0.7
    OS: linux5(x86-64)
    can any one let me is there any concurrent program through this i can purge lots of pdf and xls files from $LOG_HOME/ora/10.1.2/reports/cache folder.
    Please help me out in this regards,
    Thanks in Advance.
    Regards,
    Mohsin
    Edited by: 920138 on May 12, 2012 4:12 AM

    Please also see:
    Patch 11669923 Post Patch Instructions Would Get Overridden By Autoconfig [ID 1322704.1]
    REP-56093: File : Cached Output For Job 1 is No Longer Valid [ID 1321342.1]
    Rep-57054: In-Process Job Terminated:Finished Successfully But Output Is Voided [ID 1332176.1]
    Thanks,
    Hussein

  • How do I export wmv and avi files from media encoder on a mac in CC2014

    How do I export wmv and avi files from media encoder on a mac in CC2014?

    John T Smith wrote:
    As far as I know, you don't... those are Windows formats that are not available on a Mac
    Nonsense.
    Apple Compressor has been doing wmf exports for a decade. I have the Quicktime export components from Telestream and they appear as presets in Compressor. They should be available in Media Encoder or they should be importable. Adove apparently refuses to see them. Still trying to figure that out.

  • How to save my emails and adressbook files from an old ibook?

    How to save my emails and adressbook files from an old ibook (bought around 2002) ?
    The screen from the old ibook doesn´t work anymore (logicboard problem I guess).
    I saved everything else with starting it in target modus. That worked fine.
    I want to delete the files after that as well, because I wanna give away the old ibook and don´t want anyone to read my emails!
    Little helpers I have:
    A running MacBook
    External Screen (and cables to connect)
    Fire Wire Cable

    Don't know how helpful this will be but I often copy mail from one computer to another, I drag the mail from the mail window to the other computers drop box, then from the other computer double click it and mail asks me what I want to do with it, of course without a screen you'd need to use back to my mac.
    If you don't have back to my mac running, you could set up a second user account on the newer mac, import everything via target mode as suggested by c above, and then drag the mail to the first user account drop box.

  • How do I access my back up files from the time machine if my computer was stolen?

    Hi, how do I access my back up files from the time machine if my mac book pro was stolen? I have a mac book air and mac too. But not sure how I can get back all the files from the stolen computer from my time capsule

    On the Mac Book Air or other Mac that you have, use Migration Assistant to transfer files from the Time Machine backups of the Mac that was taken.
    Macintosh HD > Applications > Utilities > Migration Assistant

  • How can I import eex files into Applications EUL from the unix command line

    How can I import *.eex and *.dis files into an Applications EUL from the unix command line?
    Thanks

    Hi
    The simple answer is you either have to use the client tool DIS51ADM to import files using the command line (Discoverer Admin is a windows only client tool), or the Java command line which needs a browser.
    In theory if you have a browser running on your Unix box you may be able to use the Java command line to make this work.
    Best wishes
    Michael

  • I have 2 Macs - an iMac that holds my entire iPhoto library and a Mac Book Pro that I use to hold a subset of the main library - how can I transfer photos and their metadata from the main library of the iMac to my Mac Book?

    I have 2 Macs - an iMac which holds my main iPhoto library and a Mac Book Pro which holds a subset of the library. How can I transfer photos and their metadata from the main library to the smaller 1 on the Mac Book Pro?

    Link the two Macs together and use iPhoto Library Manager
    Regards
    TD

  • How to compile an .air app from the ADT command line?

    Hi,
    I would like to compile an .air app from the ADT command line.
    Does anybody have an example?
    I don't know how to add the AIR SDK path and a folder to it.
    Is there a generator for the command line availabble?
    Thanks

    Correction: it seems that Applescripts and some similar scripts can be called from the command line using "osascript scriptname". I don't speak automator but you might like to try it. osascript seems to come with severe limitations though, for instance it doesn't allow user interaction such as dialogue boxes.

  • Protecting EXE, PDF and SWF files from piracy

    I am hoping others in the community have some experience with protecting their Captivate output (EXE and SWF files) from piracy.  We will be selling our eLearning products developed with Captivate through our online store and want to protect them against file sharing and other forms of piracy.  I have found several companies online offering DRM (digital rights management) and SAS (software activation services) that require users to enter a license key to use the products.  I am looking for any recommendations from users who have implemented these types of services.  What provider did you use and what issues did you encounter.  Any insights would be greatly appreciated!
    Thanks,
    Jason

    Most of the tools I have seen are geared towards extracting
    resources from swf's. I use one myself (eltima.com) for
    "harvesting" manufacturers content for my motorcycle dealers. They
    are authorized to use this content, but finding someone at Yamaha
    of Kawasaki or any of the majors who even knows where to find these
    resources is next to impossible. I have also used it to learn from
    by viewing scripts, but as you say, at the end of the day, I think
    the concepts and best practices are about the only thing worth
    taking away from others efforts, not the code.
    Unlocking a protected file can be done as well and I remember
    using a product over a year ago to get at the scripts within an swf
    (I wanted the URL's that pointed to media - it was legal for me to
    do this). It ran from the command line and output the scripts.
    There aren't too many of these types of programs to be found, but
    they exist.
    My personal opinion is that it's not worth the effort. My
    java classes can be decompiled and if someone wants to go to that
    trouble, more power to them. To my knowledge, there isn't anything
    out there yet that is perfect for backwards engineering an swf into
    an MXML file, but a competitor of FLASH Decompiler says that they
    can decompile Adobe 9 PLAYER swf's. For what it's worth, I plan on
    posting the majority of my code on my flexdev.org site once I get
    it established.
    For people who make components for sale, this could be an
    issue of stolen revenue if the decompilers get sophisticated enough
    to reverse engineer the swc into a usable MXML file. I would be
    against anyone who stole code for this purpose, for sure.

  • How do I uninstall an add on file from the Seamonkey browser?

    HOW DO I UNINSTALL AN ADD ON FILE FROM MY SEAMONKEY BROWSER?
    Mozilla needs to make their products more user friendly. There is a multitude of people out there
    who are "NOT" very computer literate. Older people like myself, for example, who are old
    school, have a difficult time being dragged kicking and screaming into the electronic generation.
    My grandchildren are better at this kind of stuff than I am; yet we really don't have much choice
    but to try and make the transition, because I have found that there are a lot of types of business
    that you cannot get done unless you are willing to do it with a computer, going online.
    My problem is not with Firefox (I don't use it because it is too slow) , because I use the Seamonkey browser. The problem I now have is that when I try to download some software, I get a message that says I must first uninstall a certain “add on” file, (npfdm.dll.), a "Free Download Manager" file. When I get the list of add ons through the “help” drop down menu, there is “NO” link or any way I can see that will allow me to uninstall this file from the add on list. Therefore, Seamonkey becomes useless to me. Someone please help me with this. Thank you.
    Tim Applegarth
    Phone: xxx-xxx-xxxx
    Email: [email protected]
    edit removed email/phone number as only spambots will be making use of them though it may be too late as this is a public forum.

    SeaMonkey support is over here - http://forums.mozillazine.org/viewforum.php?f=40

  • I have downloaded an app which I think is to large to my IPAD as it has read loading for hours now. How do I stop it and clear it from the pad. I have tried the normal holding down the icon but nothing happens?

    I have downloaded an app which I think is to large as it has jammed. The icon just reads loading. How can I stop it and clear it from my  pad????

    Have you tried a reset to see if it resumes after the iPad has restarted ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Problem Viewing and Opening Files from the Creative Cloud

    I am using Photoshop Touch v1.7.5 on an iPad4.
    When I try to open an existing file from the creative cloud not all of my files and folders are displayed. My list of folders appear alphabetically and stop at those starting with the letter L. Therefore I cannot open all of my files that have previously been uploaded to the cloud.
    Is this a bug or am I missing something here?
    If it's a bug, is Adobe working on it?
    When can we expect an update?

    Here is a link to a conversation I started conceening this very issue.
    Version 1.7.5 Manual Sync Failure
    I Had concerns about this problem back in November.
    It is apparently a bug. Since Adobe has no customer support for the Photoshop Touch app, those of us who primarily make use of the creative cloud and the app are paying for a service that at the moment doesn't completely work.
    It is very frustrating that customers paying for a creative clould account and using the photoshop touch app have only this forum as a source of customer support. As a result, you can't depend on receiving information from someone who is actually an Adobe employee.
    I hope that Adobe is working to fix this problem. However, we don't really know if or when that may happen because of the lack of information that is supplied.

  • Removing the BC generated JS and CSS files from pages

    Hi,
    We're working on a feature to allow you to generate pages without our styles and JS files. This is what we're planning to build, we need feedback on some automated JS/CSS generation for some pages and modules.
    We will add one flag per "Page Template" flag (to not output module CSS or our JS things)
    The Site Manager/Page Templates/Detail UI will have a new boolean control in the More Options sectionDon't include pre-generated HEAD elements
    Once you are on a page that uses a template with this flag set to on, you won't see in your HEAD the following/StyleSheets/ModuleStyleSheets.css
    We are wondering if you want us to include the validation JS files. Today, depending on the modules you have in the page or the type of overall layout (e-commerce, etc), we're adding the following files (click the image to see the code). Should we keep those or the flag should disable those, too?
    Sincerely,
    Alexandru

    This will be a great little tweak,
    Thank you Alexandru.
    Just to clarify, the tick opton will be on web pages UI?, Template UI?, And Detail layouts like web apps etc - Anywhere where you select a template?
    That would be great.
    I am a bit torn with the javascript, The CSS - Yep go for it, But while I could see some advantages turning that off too, it may cause more problems.
    I think a common use case is wanting to use CSS frameworks like foundation and Bootstrap. You will defiantly want to turn the modulestylesheets from rendering. But then if the javascript also got turned off, when you were doing eCommerce, and some other bits you would have to rebuild your own sollutions which would take up a lot of time.
    My feedback on possible options:
    - Two tick boxes to turn offf css or Javascript - this is a bit more messy though, It would solve the above dilema though.
    - Maybe for now the CSS would be enough for now? Maybe with the re-introduction of Liquid down the line there could be something using that developers can do with conditionals?
    - Both and provide documentation on how and where and when to include the javascripts back in. This would be a bit more messy support wise maybe?
    - A bit more work but could offer more options going forward could help in a lot of ways would be to turn the head into a layout under Layouts.
    This would have tags such as the BC javascript, a tag that renders the conditional .NET from your screenshot. A tag for the CSS and other elements, tag for the meta that is automatically generated etc.
    This would also have the added effect of allowing people to fix up some meta layout issues, and have a bit more control when using frameworks, HTML5 or XHTMl doctype varients etc.
    With Liquid in the future as well and conditionals this would also then allow more posibilities as well.
    The sollution I take it would also be on by default for BC App html pages Alexandru?
    Hopefully that is helpful and I hope others provide feedback for you as well.
    Thank you for the update.

  • Need to create PDF and Spreadsheet file from RDF file when user passes the parameters

    Hi Everyone,
    I am beginner as report developer ,i came across one  issue when the requirement came from the client regarding generating EXCEL FILE and PDF FILE from same RDF file .
    I was able to generate the PDF file but i when i tried to create excel file it does not include the margin in it, also the cell border are not seen( file comes with data but with no CELL borders), I have also attached screenshot for reference .
    View image: problem
    or
    http://i43.tinypic.com/2mq017k.jpg
    Software Used :
    Oracle reports Developer : 11g 1.2.3.0
    Thanks ,
    Harshil

    Dear  Olga12,
    Thanks a lot for your quick reply.
    When i suggested the solution to my client  for creating two separate templates attached to same data definition , they declined and argued that  we cant create 2 separate templates for all reports( more than 200 reports).
    Is there any way to create the PDF/EXCEL from same RDF other than creating two separate templates ?
    Thanks ,
    Harshil

Maybe you are looking for

  • Itunes 7.2 Deleted My Music

    I have updated my Itunes account many times in the past. Usually, the upgrade does its thing, has me restart my computer, and the music, playlists, playcounts, ratings, last played etc. all stayed the same. This time, while updating, Itunes 7.2 delet

  • Can you use two Time Capsules and back up both with Time Machine.

    My little iMac hard drive (250GB) is quickly filling up with my iTunes library (180GB). I have a 500GB Time Capsule which I use to back up my system via Time Capsule. I would like to move my iTunes library to an external hard drive. If I add the 1TB

  • Recordcount for all the tables in my user

    How I will get recordcount for all the tables in my user with a single query?? Plz help. Thanx in advance.

  • WLS51 sp6 shutdown - java.lang.ThreadDeath?

    Hi, I'm trying to install WLS 5.1.0 sp6 on Solaris. I'm using Sun's Solaris JDK 1.2.1_04, and yes I disabled aggressive JIT inlining. The server starts up fine, but shut down seems to have a problem Should I be worried about the following log message

  • Printout of PR and Reservation

    Hi I wanted to check if we can take print of Purchase Requisition and Reservation as per standard SAP. If we can take can somebody let me know the TransactionCode for the same? Regards