Open the HelpFile chm of the script

Hello

My script requires a little help comes with it file for ease of use.

I will be compiling my help in chm format file.

I added a button on my dialog box in order to access this chm file.

How open/view this help file by using the onClick event of the button?

Kind regards..

Hello

Thanks for the info & help although it didn't work because I need.

Here's the code to work:

BTNg.HelpBtn.onClick = function(){
var HelpPath = File($.fileName).parent.fsName + AssetsDir + HelpFile;
var STShelp = File(HelpPath);
if (STShelp.exists){
   try{STShelp.execute();}
    catch(e){alert('The Help file you requested [' + HelpFile + '] failed to open.\r\r' + e.description,'Unable to open [' + HelpFile + ']');};
    }
else {alert('The Help file [' + HelpFile + '] could not be found.\rThis could happen if the file has been moved, renamed or deleted.\rPlease reinstall Star Trail Stacker to resolve this.','Unable to locate [' + HelpFile + ']');}
}

and the variables are:

var AssetsDir = '/assets/';
var HelpFile = 'Help.pdf';

Kind regards..

Tags: Photoshop

Similar Questions

  • Developer SQL without opening the script runing script

    Hi, I exported to other tables in an insert script and I got big enough file - 186 MB-> 1123380 rows in the table.
    Now I want to run this script, but the file is too large to open it in sql developer.
    Is there an option like runing script file (without opening the script in sql developer)?

    Thank you, Dan

    In a worksheet, enter @scriptname and press F9.

    I'm not sure of what the impact on the memory usage to perform it like that. A better alternative for large scripts might be to use sqlplus.

  • Open the script file

    OK, I thought this would be obvious, but apparently it wasn't.  Is it possible to open a specific file using script and not to get all dialog boxes?  The only methods I've found so far require that you are looking for the file via the dialog box; and any attempt to change it to simply open a specific file causes random errors such as "invalid syntax" or "expects a reference to an existing file/folder."

    At the moment I have the following code:

    fileRef var = new File ("C:\ < insert long way here > \image.jpg");

    App.Open (fileRef);

    The line app.open, this is where the second mentioned error comes.  No idea what I am doing wrong?

    Thanks in advance for any help,

    dgolberg

    Yes, I see a problem, you use the backslash, and they must be escaped...

    fileRef var = new File ("C:\\image.jpg");

    This should be...

    fileRef var = new File ("C:\\\\image.jpg");

    or you can use slashes to the front...

    var fileRef = new File ("me.image.jpg');

  • Open the Script - how apart from methods or functions in other Scripts chained

    Hello

    There is a concept of pipe several scripts into open script. I am able to share variables to chained scripts. I'm not able to do, is to share a method or function to chained scripts. Is there a way to share a user defined function or method to the chained script.

    For example: that's what I want to do

    (1) script 1: create a method - 'Method1' container ' {System.out.Println ("method 1 called") ;}}. (Or create a method in a separate class file or executable)
    (2) script 2: (it is chained to Script 1) now I want to call the created method 'Method1' in this script.

    I know that in java we need to create a class that contains this method, and then pack it and then import it into our project. Is there a way to do this can we create our package and then add this to OATS if possible can someone let me know how this can be achieved.

    Thank you

    Hello

    You don't need to import the pot only create/import files that the file of the example class requires the Jar file to connect to an Oracle database.

    There are some efforts to have a shared class file, however based on OpenScript using the standard Java rules it makes this task a bit complex, the old tool was OFTEN also the very notion of having a shared methods (used as QTP VBA) file, I'm sure that this tool will be executed in the near future , but now he must wait.

    Concerning

    Alex

  • A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger or let the script.

    I receive script error messages, I have included a few prints. I recently installed a new version of Kaspersky Internet security, could this be my problem? Help!

    The last is of Kasperskylab.

    Download the current full installer.

    The others are of links/resizer.

    Consult your manager of addons for what it is.

  • Open the Script logs files checking

    I used OpenScript Siebel Accelerator - load test module.
    Originally, when I record, the Siebel login page must be entered (before work)

    However, sometimes when I click on save, the IE prompt but the Siebel login page cannot be loaded (blank page)

    Can I know how can I find the relevant log files to trace it?

    Thank you!

    I've already faced such a question in before IE, I mean even outside its OpenScript use.
    Sometimes it's like I can't click on any favorite link. Does not even enter the url in the address bar.
    When I can, I just use FF. Of course, in your case, not at all, because it is Siebel, but maybe you could just try to use FF (at least for the logon page) to check my asumption.
    See you soon
    JB

  • Out of the script SQL more not displaying is not operating in SQL Developer

    Hello

    I have a script el_ccn.sql with the content...

    Select count (*) in the NCC;

    When I run @el_ccn.sql in a SQL Developer the option worksheet dependencies execute the Script (F5)

    all that is displayed is

    COUNT (*)
    ----------

    When I run it in SQL, I see...

    COUNT (*)
    ----------
    2285

    1 selected line.

    I can 'open' the script and then run OK but I test it before implementing more complex SQL script files, so would like to know if this is possible with SQL Developer. A colleague does not have access to SQL over, so I need to check they can do this with SQL Developer before you start a COMPUTER call helps bring sqlplus.

    There must be something simple, that I do not correctly.

    Thank you, Elaine

    Published by: E Langford on 5 June 2013 01:57

    Hi Elaine,.

    Whenever unexpected behavior occurs is not a known bug, I always suspect corruption in the migrated settings / preferences of the user. Is the best way to test this
    1. export definitions of connection, you do not want to lose.
    2. Add the following line to your sqldeveloper.conf file...

    AddVMOption - Dide.user.dir =

    3. restart the product without migrating all settings

    The conf file is \sqldeveloper\sqldeveloper\bin\sqldeveloper.conf. IDE.user.dir must be available in writing being given to whatever your username has privileges (and preferably on a drive off-grid) and must be different from the value default SQL Developer uses (for example, on Windows 7, C:\Users\Developer \AppData\Roaming\SQL).

    If el_ccn.sql script works correctly with the own user preferences, by default, then you can return to the editing of the conf file, delete or rename the folder system3.2.20.09.87 in the ide.user.dir original or default folder, and then restart the product, migrate or does not migrate settings from a previous installation as desired.

    Hope this helps,
    Gary

  • Remove the Script level Document using JavaScript?

    Hi all.

    Is it possible for a document-level script to delete itself? I am running Adobe Acrobat Professional 11.

    My situation is that I'm currently analysis data using a Java application. The taylors Java application a script based on each specific PDF and then inserts it into the PDF file automatically. When the PDF file is opened, the script runs once and then is no longer necessary.

    Because the script is no longer required, it would be preferable if the script could be deleted automatically. Is it possible that the script has access to the field in which it is stored (for example, doc.javascriptField = "" ;)?) Or by some miracle, a remove function already exists?

    I think that the lack of need for such function by General and advanced users I won't get it the answer I hope. But it's worth a shot. Meanwhile, I am inserting a flag in the field keyword so that the script does not run twice. It works, but it is not really clean.

    Any help would be greatly appreciated.

    Thank you

    Jonny O

    Use this code:

    this.removeScript ("ScriptName");

  • Open the URL link in your browser window

    Can someone help me please? I tried to use the code as if I hadn't a little luck with Dreamweaver (i.e. the target empty).

    Is there a way to make the url in the PDF document is opened a new window of the browser when clicked? I hope it's an easy solution! Thanks in advance!

    The code needs to go on the Click event of a button (or checkbox or something that can be clicked!). Then you will see in the example that I put an invisible button on the word "here".

    If you click on the invisible button in the designer and open the Script Editor, you'll see the script in the Click event.

  • What can I do if the script runs faster than the network?

    I wrote a script between applications moving to InDesign, where he begins to AppleScript, to Photoshop, which AppleScript runs a JavaScript script to perform various tasks.

    It works beautifully on my laptop at home where I do my development. Yesterday, using me as a Guinea pig, I tried it in the office.

    On the third round, I was horrified to see the ExtendScript Toolkit pop up with an error message (about as welcome to see an AppleScript script, asking the user to open the Script Editor and fix a script).

    The error message was that app.bringToFront (); was not a valid function.

    This was the case in InDesign, which has a different activation function, and I realized that, even if my AppleScript called Photoshop activate, I was still in InDesign.

    The app.bringToFront JavaScript was so called because I had joined my code in the model of Tranberry.

    So I pressed the button stop on ExtendScript, returned to InDesign and represented the script. This time he worked as usual.

    Occasionally on our network we spend some time beachball - watch as a communication happens in the background. So I guess the time wherever the error was thrown was on one of these downturns in the network.

    The passage of InDesign, Photoshop is not happening pretty fast, but the script has run and has issued an order Photoshop JavaScript while I was still in InDesign.

    In AppleScript this unhappy communication with users can be avoided using blocks '... try error'.

    Is there an equivalent of the error handling in JavaScript that would allow me to avoid being tossed in the ExtendScript Toolkit and give them a friendly message to apologize, explaining what had happened and inviting them to try again?

    JavaScript has try/catch blocks

    try {}

    app.bringToFront ();

    } catch (e) {}

    error handling code

    }

    Or you might be able to use an if statement

    If (app == 'photoshop') {}

    app.bringToFront ();

    } else {}

    app handle not photoshop

    }

  • How to open the dialog Ctrl + Tab of a script? (I want to assign to a move of the mouse)

    How to open the dialog Ctrl + Tab of a script? (I want to assign to a move of the mouse)

    Do you mean Ctrl Tab (browser.ctrlTab.previews) Preview or browser: ShowAllTabs (allTabs.open ()); command or something else?

  • How to open an attachment document otd? He always goes to note pad and I can't read the script?

    How to open an otd attachment in my email address? Currently, he attends the notebook and I can, t read the script. Thanks for your suggestions.

    How to open an otd attachment in my email address? Currently, he attends the notebook and I can, t read the script. Thanks for your suggestions.

    I suspect that you really like ODT file extension.  These are created in Open Office.  Download and install Open Office (it's free) or ask your correspondent to save files in a format compatible with any office application you are using (for example, Microsoft Word).  See this thread: http://help.lockergnome.com/office/open-openoffice-odt-file-Word-2003--ftopict929318.html

    Or visit http://odt-converter.com/

  • Message: "an error has occurred in the script.' when tried to open services

    Original title: Internet Explorer Script error

    When I go to administrative tools, and open Services, a notification stating 'an error has occurred in the script.'

    Online: 31

    Tank: 12

    Error: Library not regisetred

    Code: 0

    URL: res://C:\WINDOWS\System32\mmcndmgr.dll/views.htm

    Pls help me solve the problem.

    I am using windows xp sp3 and IE 8

    Hi daveliew1998,

    Try these steps and check the result.
    Step 1: Scanner of sfc (System File Checker) to see if any system file is missing or damaged. To do this, try the following steps:
    a. Click Start, click Run, type cmd and click ok.
    b. at the command prompt, type sfc/scannow and press ENTER.
    c. once the analysis is complete, restart the computer and check if the problem persists.

    Note: You will be asked to insert the Windows XP disk, if a file is missing.

    For more information, see Description of Windows XP System File Checker (Sfc.exe)

    Step 2: If the problem continues, check if it runs in safe mode, and you might consider the publication of details for further assistance
    See start the computer in safe mode

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

  • Photoshop script to copy all the layers of close PSD to open the current document

    Hi, I have very limited capacity script so this task is above my pay grade

    I'm looking for a script to read and copy all the layers in a PSD saved file and copy them into the current active document. The two documents have the same size and I need to be able to change text layers after copying. Anyone has any advice or examples of how I might be able to do this?

    Thank you in advance for any help you can offer.

    Kind regards

    Marcus

    Try the script in entry below. You must open the destination file, and you must put in the path and name where your source file. It will not choose a layer from background from the source file.

    #target photoshop
    var sFile = new File('~/desktop/template.psd');//change path to template file
    var doc = activeDocument;
    var sDoc = open(sFile);
    
    var idselectAllLayers = stringIDToTypeID( "selectAllLayers" );
        var desc2 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref1 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref1.putEnumerated( idLyr, idOrdn, idTrgt );
        desc2.putReference( idnull, ref1 );
    executeAction( idselectAllLayers, desc2, DialogModes.NO );
    
    var idDplc = charIDToTypeID( "Dplc" );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref2.putEnumerated( idLyr, idOrdn, idTrgt );
        desc5.putReference( idnull, ref2 );
        var idT = charIDToTypeID( "T  " );
            var ref3 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref3.putName( idDcmn, doc.name );
        desc5.putReference( idT, ref3 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc5.putInteger( idVrsn, 5 );
        var idIdnt = charIDToTypeID( "Idnt" );
            var list1 = new ActionList();
            list1.putInteger( 3 );
            list1.putInteger( 4 );
        desc5.putList( idIdnt, list1 );
    executeAction( idDplc, desc5, DialogModes.NO );
    
  • Can I disable the F1 key for help from Adobe? I want to use the F1 key to open a script that I wrote. I don't want the F1 key to open the Adobe help.

    Can I disable the F1 key for help from Adobe? I want to use the F1 key to open a script that I wrote. I don't want the F1 key to open the Adobe help.

    Edition > keyboard shortcuts

  • Script to change political colors managent or open the files with "keep profile".

    Hello!

    I am trying to open the girls with the parameter 'profile hunt kept '' through my script.

    I really don't like if it's done with "openoptions" or changing policies managent RGB and CMYK color to "preserve the profile. (Available via the Edit menu-> color settings.)

    I know that this is possible through action, but I really need to change that through my script.

    I'm totally at a loss here, so any pointers in the right direction would be much appreciated!

    Thank you!

    / Peter

    A slightly cleaned up version:

    Open the file without warning mismatch and keep current color space:

    2015, use it at your own risk.

    #target photoshop

    Var ref = new ActionReference();

    ref.putProperty (stringIDToTypeID ("property"), stringIDToTypeID ("colorSettings"));

    ref.putEnumerated (charIDToTypeID ("capp"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    var docDesc = executeActionGet (ref);

    var colorSetting = docDesc.getObjectValue (stringIDToTypeID ("colorSettings"));

    var theOpenMismatch = colorSetting.getBoolean (stringIDToTypeID ("askMismatchOpening"));

    var theRGBPolicy = colorSetting.getEnumerationValue (stringIDToTypeID ("policyRGB"));

    var theCMYKPolicy = colorSetting.getEnumerationValue (stringIDToTypeID ("policyCMYK"));

    var theGrayPolicy = colorSetting.getEnumerationValue (stringIDToTypeID ("policyGray"));

    disable the warning;

    preserve var is stringIDToTypeID ('Star');.

    setPolicy (preserve, maintain, preserve, false);

    Open the file;

    App.Open (new File("~/Desktop/VA13AHN_1.psd"));

    back to the setting;

    setPolicy (theRGBPolicy, theCMYKPolicy, theGrayPolicy, theOpenMismatch);

    political game.

    function setPolicy (RGB, CMYK, gray, theBool) {}

    // =======================================================

    var idsetd = charIDToTypeID ("setd");

    var desc16 = new ActionDescriptor();

    var idnull = charIDToTypeID ("null");

    ref4 var = new ActionReference();

    ref4.putProperty (charIDToTypeID ('Rprp"), stringIDToTypeID ("colorSettings'));

    ref4.putEnumerated (charIDToTypeID ("CAPP"), charIDToTypeID ("Ordn"), charIDToTypeID ("Trgt"));

    desc16.putReference (idnull, ref4);

    idT var = charIDToTypeID ("T");

    var desc17 = new ActionDescriptor();

    var idpolicyRGB = stringIDToTypeID ("policyRGB");

    var idpolicy is stringIDToTypeID ('policy');.

    desc17.putEnumerated (idpolicyRGB, idpolicy, RGB);

    var idpolicyCMYK = stringIDToTypeID ("policyCMYK");

    desc17.putEnumerated (idpolicyCMYK, idpolicy, CMYK);

    var idpolicyGray = stringIDToTypeID ("policyGray");

    desc17.putEnumerated (idpolicyCMYK, idpolicy, gray);

    var idaskMismatchOpening = stringIDToTypeID ("askMismatchOpening");

    desc17.putBoolean (idaskMismatchOpening, theBool);

    var idcolorSettings = stringIDToTypeID ("colorSettings");

    desc16.putObject (idT, idcolorSettings, desc17);

    executeAction (idsetd, desc16, DialogModes.NO);

    };

Maybe you are looking for

  • TE2300 - fatal system error

    Hi all I am a newbie here, I get the blue screen on my computer (TE2300) error: Stop: c000021a {fatal system error}The process of Windows Subystems ended unexpectedly with status c0000005 (0x7c9106c3 0x0069f36c) Beginning physical memory dumpTotal ph

  • My Safari is sick.

    It starts, but when I click on the bar to write to any engine automatic Web page or google search it closed and display a notification on the problem. When one has a link in an email it usually opens. The problem is when I hit the bar to type. When i

  • HP Pavilion G7: Internet connection

    I use a laptop HP Pavilion G7. I decided to clean the laptop with a 64 bit Windows 7 disc. Everything was good, except when Windows starts. I can't connect to internet and it says "install a driver for your network card. If you have a network card, y

  • Windows will not display the programs that are installed in the area Add / Remove programs

    I tried to install firefox, then I change my web page. It reported a script error when loading. The program runs, but not right so I removed and tried again with the same result. It runs in the safe is no no not sure what it is. Now I can't run add i

  • Windows vista home edition premium is compatible with the kodak zd15 camera

    PC won't let me download videos from my zd15 camera sd memory card.  He's going to upload pictures, but not videos. Kodak claims that they are not compatible.  gave me a site to ask for help and wanted to bill me.