Is there a way I can call a python script from within a Robohelp script?

Hi,
I want to integrate an external python script into the current extendscript I use in RoboHelp 10.  Is there a way to do that?
Thanks,
Lauren

You can use the command line to call any kind of external application.
Personally, I use the following function to create bat files to do such
work.
I've taken these functions from my free RH Extendscript library -
http://www.wvanweelden.eu/product/robohelp-extendscript-library
function ExecuteBatchFile(command, waitforbatch) {
     if(string_isEmpty(command))
         return false;
     if(!waitforbatch) {
         if(waitforbatch != false) {
             waitforbatch = true;
     var path = Folder.appData.fsName + '/';
     var batFileName = 'ExtendScriptBatchFile';
     var batFileExtension = '.bat';
     var batFile = new File(pathbatFileNamebatFileExtension);
     if(batFile.exists) {
         var i  = 0;
         while(batFile.exists) {
             i++;
             batFile = new File(pathbatFileNamei+batFileExtension);
     command+= "\ndel /F /Q \"" + batFile.fsName + "\"";
     writeFile(batFile, command, false);
     if(!isFile(batFile, true))
         return false;
     batFile.execute();
     /* Wait on batch file execution if needed */
     if(waitforbatch) {
         while(batFile.exists) {
             msg(".");
             $.sleep(100);
     return true;
function writeFile(file, szOutput, encoding) {
     var szFilePath = file.fsName;
     if(!encoding || encoding == true) {
        encoding = "UTF-8";
     var fileObj = new File(szFilePath);
     fileObj.encoding = encoding;
     fileObj.open("w");
     fileObj.write(szOutput);
     fileObj.close();
Kind regards,
Willam

Similar Messages

  • I have updated my mac from snow leopard to mountain lion 3 days back. I had some important data in my library folder and it got overwritten. Is there any way i can get the data back from my snow leopard library folder?

    I have updated my mac from snow leopard to mountain lion 3 days back. I had some important data in my library folder and it got overwritten. Is there any way i can get the data back from my snow leopard library folder?
    I tried mackeeper to recover files but it could not. Any other way any one has tried to recover a system library folder after OS upgrade?

    No, it doesn't store a clone. You would have needed to make one with either SuperDuper or CarbonCopy Cloner.
    If the files were in your ~/Library folder then they may still be there. As I said, you can access it by
    going to your Finder "Go" menu hold the option key to choose "Library". I wouldn't think an upgrade would overwrite anything in ~/Library.
    If you have a Time Machine backup you may also be able to use that to retrieve them.

  • Is there a way i can restore my deleted videos from iphone?

    is there a way i can restore my deleted videos from iphone?

    Well, Ocean brings up a good point. I was assuming videos taken with your camera, he is thinking videos rented or purchased. What kind of videos are you referring to?
    GB

  • Is there a way you can display a persons title from a form in a workflow notification?

    I have created a normal form using the form builder and of course you have to use the title, first name and last name etc.
    Now everything works fine and the details are sent to the database and an email goes to the customer BUT with the
    workflow notification that goes to the Admins of the site the "title" is not shown under the Workflow Summary tag.
    Is there a way I can get the Workflow Summary in the notification to display the person's title?

    No, Safari on the iPad in iOS 5 uses tabbed browsing. You can try leaving feedback for Apple : http://www.apple.com/feedback/ipad.html

  • Is there a way you can transfer all the music from an ipod touch without losing any of it?

    I have the latest of the Ipod Touch. My computer had crash but I didn't backup any of the music to a disc but its backup on the ipod touch. I want to connect my touch to my new computer but I don't want to lose any music. Is there a way I can transfer all the music without losing it?

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • My mac book pro got stolen and i just purchased a new one is there any way i can recover my purchased songs from i tunes. I have the same account name, password and everything

    my mac book pro got stolen and i just purchased a new one is there any way i can recover my purchased songs and movies from i tunes. I have the same account name, password and everything

    Yes. Update to iTunes 10.3.1
    Then go to the iTunes Store and click Purchased "new" under Music Quick Links on the right side of the iTunes window.
    You can re download your purchased content from the next window.

  • Is there a way I can use the iPhoto maps function within Keynote?

    Hi,
    I recently brought a Macbook Pro, and am having my first go at using Keynote. Having previously played with iPhoto, there is the map function built in, and I was wondering whether there is a way to use this in Keynote?
    I was hoping to avoid using a screenshot of google maps as its not interactive, and plus quite bland too.
    Any way this can be done?
    Thanks,

    Keynote can not interact with other applications other than launch a web browser, it cant display web content within a Keynote presentation.
    The only way Keynote can be used to display a "live" web content is to launch a browser at a specific webpage, Google Maps for example,
    To try this place a shape on the slide, select it then:
    Inspector > Hyperlink > Enable as Hyperlink > link to webpage;  type in the web address in the URL box

  • Is there any way I can update my play count from my iPod to the same iTunes library on my computer that does not have any play counts?

    I recently transferred my data (music, apps, etc.) to a new computer via transferring purchases and Home Sharing and only a few songs had play counts. On my older computer, all the songs had at least some documentation of a playcount. Thinking that I could figure it out, I reset the play count for the songs on the new computer. Is there any way I could get the play counts onto the computer w/out them via iPod or Home Sharing. I look forward to hearing a reply. Thank you.

    HELPPP ME BEFORE CHRISTMASS MORNING!!

  • I recently lost all my files on my computer. is there any way I can download all my songs from my ipod to my computer.

    can someone tell me if i can download all my music from my ipod through my itunes into my computer. I recently lost all my files on my computer along with my music folder

    Music is intended to go from your computer to the iPod. Going the other way is contrary to the design and is not trivial. To extract music from your iPod requires the assistance of third party utilities.
    If you purchased music from the iTunes Store, no worries, you can simply download it again with the one caveat that the music is still available in the Store.
    For other music, the following might be helpful:
    Syncing to a new computer, crashed hard disk, no backup?
    https://discussions.apple.com/docs/DOC-3141

  • Is there a way i can access my iPhotos pictures from my phone

    i want to access my photos through my phone from my iPhoto on my mac. is there any app or site i can use to access my photos.

    MyPhotoStream or shared PhotoStream
    LN

  • My mac just turned off and wont turn on, i have another laptop, I was working on editing a photo shoot in lightroom. Is there a way I can log into my lightroom from another computer to access my catalog?

    My macbook just turned off and will not turn back on. I have another laptop, I was editing a photoshoot, and I needed to access those photos. Is there anyway to log into my lightroom account from another laptop, so that I can access those?

    Unfortunately, your Lr catalogue is stored on the original Mac, so just logging into your account would not work. As a Windows user in your situation, and if the need for speed was essential, I would remove the hard drive from the malfunctioning PCI and connect it to a working example and try to access the catalogue from  an installation of Lr on that one. Is that at all possible with your Mac setup?
    Edit: do you have separate backups of your catalogue, in the cloud for instance, but can the catalogue held there be installed on a different Mac? I 've no idea if this is possible, but if you're a professional facing a deadline etc, it might be worthwhile investigating this possibility if it's impossible to move the hard drive as I suggested above.

  • HT1202 My iPod is set to manually manage music. I have tons of different music from different computers on my iPod. Unfortunately my iPod is getting old and I'd like to purchase a new one. Is there any way I can transfer all the music to a new iPod?

    My Ipod touch is set to manually manage music. I have put music from my computer and iTunes account onto it, and music from other people's computer and iTunes accounts on it. Unfortunately I dropped my iPod and the screen cracked. It still plays music and everything just fine, but it has problems with it's battery life so I'd like to just get a completely new iPod nano. Is there any way I can transfer all the music from my iPod touch onto a new iPod nano? From what I can tell it won't let me sync any of the music on my iPod touch that is from other people's computers onto my laptop, and so I wouldn't be able to put it on a new iPod nano. Hopefully that makes sense. I'd just really really like to be able to keep all that music and not lose 2/3 of my iPod touch music library because I want to put it on a newer Ipod.

    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Is there any way I can change my apple I'd from english to canadian

    Is there any way I can change my apple ID from English to Canadian

    Meaning UK to Canadian?
    You need to change the address associated with your Apple ID to a Canadian address.
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    For making purchases you will need to change the country that your ID is associated with in the iTunes app. Log into your account and chnage the country. You will need to supply a Canadian bank card and the local Canadian billing address.

  • Is there a way I can copy an auto signature automatically into my contacts without having to type a new contact myself?

    Is there a way I can copy an auto signature from an automatically into my contacts without having to type a new contact myself?

    You don't buy an unlocked phone. You buy a Verizon iPhone at full retail. I just did this myself last month. I paid full retail for the phone and activated it on my plan. This allowed me to get a new phone before I was eligible to upgrade and keep my unlimited data. I also got a good deal on trading in my iPhone 5.
    You can buy the phone through Verizon or through Apple. If you buy it through Apple, I'd suggest that you not have them activated but do that yourself by logging into your account on your computer.
    Best of luck.

  • Is there a way i can restore my iPhone from a backup but everything apart from settings?

    Is there any way i can restore my iphone 4S from a backup after restoring it from factory settings but not applying my previous settings? as parental controls have been added, but passcode is forgotten and i now need to keep all my stuff on the iphone but get rid of parental controls!!

    You can't chose what to include/exclude with a restore, you can restore the whole backup (including settings) or not restore. I'm assuming that the passcode was on the iPhone when you last backed up, in which case (apart from remembering it) the only way to remove the code is to restore back to factory defaults.

Maybe you are looking for

  • Adding custom field in sales tab of BP transaction

    Hi Experts, There is a requirement to add a custom field in sales tab of BP transaction in 'Sales area data', above the field 'Customer group 1'. Is it possible with BDT,else any other method to handle the procedure. I think it is not possible with E

  • Size in bytes of each datatype?

    Hi Im a spanish user of oracle 9i. I want to know what is the size of each datatype in Oracle 9i.Ie, how many bytes is a float?, or a date? or a varchar2(20)? I have been searching in this website, but I did not find anything. Regards, Antonio

  • Avoid emails being send out from the staging environment

    We would like to avoid that users of CRM OD get emails which are triggered from the Staging or Training environment. Is there a way to check for the environment and pod in an expression? Any best practices on this? Regards, Ernst-Jan.

  • PCR: Characteristics vs form interface

    Hi, While creating a new PCR or modifying an existing PCR, I am not sure what to do with the Characteristcs in QISRSCENARIO. Is this the one used in SFP to do the drag and drop. In that case, what for is the interface. Can anyone pl explain. Regards

  • Please help!! restoring canvas and timeline view

    I accidentally exited the timeline view which also closed the canvas view. any ideas on how to recover them? I've tried everything!! please help! Thanks!