Clear the console via script?

Is there a way to clear the Extendscript Toolkit console from the script running?
Thanks!

found few lines code about ame-scripting, in japanese
http://qiita.com/tags/extendscript
clearing console
[code]
var bt = new BridgeTalk();
bt.target = 'estoolkit-4.0';
bt.body = function(){
    app.clc();
    }.toSource()+"()";
bt.send(5);
[/code]
That's very interesting. Definitely outside the box thinking.
thx, David Torno for yours getting started videos
You're welcome.

Similar Messages

  • How do i clear the  console

    Hi Experts
    I need to know "how do i clear the console " and
    "how do position the mouse cursor in x and y coorditates in a console "
    Thanks in advance

    You don't. Or, it depends on the console. Depending on your point of view.
    Java doesn't directly control it the same way that it controls an AWT window for example. It just sends bytes to it. If the console is capable of interpreting bytes in such a way to clear the screen, then it can.
    Most consoles a person is likely to use will interpret VT100 commands. Look them up; try google. You can just output those commands and the console will do what they say, hopefully.
    Sending a control-L (bye 0x0c, I think) may do it. Try that.
    Or you can try the java curses library.
    All this may be wrong if you mean something by "console" other than what I think you mean.

  • Clearing the console window

    hi,
    I'm currently writing a relatively simple CLI based java program, such that I'm just (for output) using System.out.* type functions...
    anyway, it'd make my application look a fair bit better if I could clear the console where I output the text...
    is this possible (under unix or windoze)? if so, any hints?
    regards,
    Jack

    I haven't tried this myself, but you might try looking at a program called jcurzez.

  • Clearing the console screen

    I am tring to clear the console screen using java like clrscr() function in c..( cls command in Dos).
    Can anyone help me out.

    Hi ,
    Try this code.
    char esc = 27;
    String clear = esc + "[2J";
    System.out.print(clear);
    And this line must be inside the config.sys:
    device=c:\windows\command\ansi.sys
    Hope this helps.
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • How to get name of the slicer via script

    Hi Gurus,
    I was wondering if we could get the name of the slicer added in IR Query section, via script ??
    That is, I have a bqy connecting to Essbase OLAP.
    Now I am adding a slicer in OLAP Section via script.
    For Ex : ActiveDocument.Sections["Query2"].Slicers.Add('Market.Gen3,Market' , 'Market.LA')
    Now,for some reason, I wanted to retrieve the name of the slicer I added and assign it to a variable. Is this possible ?? I couldn't see any option for this. Please help me out if any one has done this before ?
    Thank You,
    Aji

    Sethil,
    Use your date(let us say Date1) instead of sy-datum.
    CALL FUNCTION 'MONTH_NAMES_GET'
    EXPORTING
    LANGUAGE = SY-LANGU
    IMPORTING
    RETURN_CODE =
    TABLES
    MONTH_NAMES = itab_month
    EXCEPTIONS
    MONTH_NAMES_NOT_FOUND = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    READ TABLE itab_month
    WITH KEY MNR = date1+4(2).
    itab_month-LTX will contain the value you are looking for
    Good luck
    Raghava

  • How to Clear the Console in java

    Hello
    i am new to java. in one of my assignment i have to clear the screen
    i have tried the following approaches which are not working , one more thing i am using win xp[ with service pack 2
    i have tried following
    1 passing th eansii escape sequence to output
    2 tried to use the Runtime class
    3 tried the Console class
    4 i want to avoid this system.out.println(" "); in a loop
    now what i have to do can anyone help me
    thanks

    Hello
    i am new to java. in one of my assignment i have to
    clear the screen
    have tried the following approaches which are not
    working , one more thing i am using win xp[ with
    service pack 2
    have tried following
    1 passing th eansii escape sequence to output
    2 tried to use the Runtime class
    3 tried the Console class
    4 i want to avoid this system.out.println(" "); in a loop
    now what i have to do can anyone help me
    thanksIf you want to do this with your standard command shell, the only practical solution would be option 4.
    Or have a look at JCurses, I believe it can do that kind of stuff:
    http://sourceforge.net/projects/javacurses/

  • How do I enable a Java plug-in via script that was just added to the blocklist?

    I need to enable Java 6u29 that was just added to the blocklist via script because there are several thousand end-nodes involved. Also, I am constrained to Firefox 3.6 due application compatibility issues.

    Probably the only or easiest way to remove or disable the blocklist of older Java versions would be to disable blocklisting by locking the extensions.blocklist.enabled to false via a mozilla.cfg file.<br />
    You are already running a no longer supported Firefox 3.6.x version that won't receive updates.
    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    *http://kb.mozillazine.org/Locking_preferences
    You can use these functions in mozilla.cfg:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes
    lockPref("extensions.blocklist.enabled", false);
    *http://kb.mozillazine.org/extensions.blocklist.enabled

  • How to automatically create the custom migration scripts after recreating SSMA project?

    How to automatically create the custom data migration scripts after recreating SSMA project?
    There is number of tables ( big tables with BLOBS)  which I want to set up automatically to be migrated with custom migration scripts (replacing e.g. attribute named "FILE" with "TO_BLOB('') AS FILE" ).
    So the question is how to open MB file (I think that it should be standard db of some destktop RDBMS) ? 

    Hi Roman.Pokrovskij,
    According
    to your description, we can use SSMA tool to migrate data from one database (including Access, Oracle and so on) to SQL Server via GUI or the scripts. There is an example about migrating Access database to SQL Server via the
    custom migration scripts, you can review refer to them.
    <?xml version="1.0" encoding="utf-8"?>
    <ssma-script-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Microsoft SQL Server Migration Assistant for Access\Schemas\A2SSConsoleScriptSchema.xsd">
    <config>
    <output-providers>
    <output-window suppress-messages="false"
    destination="stdout"/>
    <upgrade-project action="yes"/>
    <data-migration-connection source-use-last-used="true"
    target-server="target_1"/>
    <progress-reporting enable="false"
    report-messages="false"
    report-progress="off"/>
    <object-overwrite action="skip" />
    </output-providers>
    </config>
    <servers>
    <!-- Server definition for Sql server target server-->
    <sql-server name="target_1">
    <sql-server-authentication>
    <server value="$SQLServerName$"/>
    <database value="$SQLServerDb$"/>
    <user-id value="$SQLServerUsrID$"/>
    <password value="$SQLServerPassword$"/>
    <encrypt value="true"/>
    <trust-server-certificate value="true"/>
    </sql-server-authentication>
    </sql-server>
    </servers>
    <script-commands>
    <create-new-project project-folder="$project_folder$ "
    project-name="$project_name$"
    overwrite-if-exists="true"/>
    <connect-target-database server="target_1"/>
    <load-access-database database-file="$AccessDbFolder$\$AccessDatabaseFile$"/>---
    <!--Schema Mapping-->
    <map-schema source-schema="$AccessDatabase$" sql-server-schema="$SQLServerDb$.dbo" />
    <!-- Convert schema -->
    <!-- Example: Convert entire Schema (with all attributes)-->
    <convert-schema object-name="$AccessDatabase$"
    object-type="Databases"
    conversion-report-overwrite="true"
    verbose="true"
    report-errors="true" />
    <!-- Synchronize target -->
    <!-- Example: Synchronize target entire Database with all attributes-->
    <synchronize-target object-name="$SQLServerDb$.dbo"
    on-error="fail-script" />
    <!-- Data Migration-->
    <!--Example: Data Migration of all tables in the schema (with all attributes)-->
    <migrate-data object-name="$AccessDatabase$.Tables"
    object-type="category"
    report-errors="true"
    verbose="true"/>
    </script-commands>
    </ssma-script-file>
    There is a similar scripts about migrating Oracle database to SQL Server, you can use powershell script to automatically run the console for scripts/variable files, saved in the specified folder. For more information, review the following
    article.
    http://blogs.msdn.com/b/ssma/archive/2010/09/09/performing-database-migration-assessment-using-ssma-console-application.aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Firefox freezes everytime I try to clear the search history.

    It appears I somehow got upgraded to the newest version of firefox. And everytime I try to clear the history it freezes. Then I get errors... Something about a script... or the program will just say "not responding"
    Can this be fixed? If not can I download an older version which worked?

    Are you clearing the cookies as well?
    This problem can be caused by clearing the cookies via [[Clear Recent History]].
    * Firefox/Tools > Options > Privacy > Firefox will: "Use custom settings for history" > [X] Clear history when Firefox closes > Settings
    * Firefox > History > Clear Recent History or Tools > Clear Recent History
    Try to exclude the cookies to see if that helps.
    If you use [[Clear Recent History]] to clear the cookies then Firefox also tries to clear the cookies from plugins like Flash and starts a plugin-container process for each plugin and possibly for each cookie (?) and that can add extra time if there are a lot of cookies to remove and also can cause an unresponsive script error to appear.

  • How does one clear the Local Storage in Safari 6.0?

    I used to be able to delete the cookies in the Local Stiorage folder.  But the old path ~/Library/Safari/LocalStorage doesn't exist anymore since the system got updated to OSX 10.7.4 and Safari 6.0.  And as ever emptying the cache via the develop drop-down menue doesn't clear the cookies stored in Local Storage.
    I am totally at loss, where these cookies are hiding in my system but really want to get rid of them.  Firefox is an alternative but it is tiresome to use this browser as it keeps on blocking things I want to do or asking me a little bit too frequently for permission etc.  Can anyone explain the Local Storage issue to me please?

    hpr3, thanks for your response but you didn't read my post correctly.  I am not referring to 'normal' cookies.  The ones which are stored under the section Local Storage are special and survive the general 'clear all website data' action via Safari's preferences.  I know several people have pointed this out before me.  I was able to clear these cookies in the Local Storage folder before but it was always quite a lot of 'clicking through' to be done and one had to go through the Finder via user/library/safari/local storage etc.  I recall there was a folder involved named Macromedia as well.   But with the upgrade of the operating system and Safari this path doesn't exist anymore.
    If you clear the cookies via preferences, then click out of Privacy and back in, you might notice that even though you haven't used your web browser at all, there are still cookies which magically re-appear. And they are tagged as Local Storage.
    Now, can anyone else come up with a helpful answer?

  • Clearing the BIOS

    I have a number of MCS-7825-H3 servers I need to clear the bios on. They have a BIOS password set and although I know the password current password I need to clear it. I have been told the only way to clear the password is to clear the BIOS via the dip switches on the motherboard. So now I am searching for the correct procedure to clear the BIOS password.
    Thanks

    Have you tried the below to clear the password:
    http://h20564.www2.hp.com/hpsc/doc/public/display?docId=mmr_kc-0103336
    To disable the passwords:
    To disable or clear the password, enter the password followed by a/(slash) when prompted to enter the password.
    -Terry

  • Clearing T420 TPM via WMI won't work

    Hello together,
    right now I'm facing a problem with Thinkpad T420 using the TPM for BitLocker-Encryption after Win 7 installation:
    When having installed Win7 before so that the TPM is already owned, it is not possible to clear the TPM via the TPM WMI.
    Clearing the TPM using the BIOS control panel works just fine.
    But as we can't give the users the BIOS password and have no chance to retrieve the TPM's owner password we are trying to clear the TPM by setting a physical presence request.
    Setting this request seems to work, as during the next reboot the confirmation screen is showing up, asking to confirm clearing by pressing F9.
    But then the actual thing - clearing - just won't happen.
    I've already tried using
    a) the single step requests "clear" followed by "activate" after reboot and
    b) the combined one "clear, enable and activate" .
    But only the enable/activate part realy happens.
    Usualy I would expect the TPM status to change like this:
    a)
    Enabled          True                               True                                   True
    Activated          True    ->clear->          False      ->activate->      True
    Owned            True                               False                                  False
    b)
    Enabled          True                                              ​            True
    Activated         True      ->clear, enable, activet->        True
    Owned            True                                              ​            False
    Instead "owned" will just keep being true.
    On T410 and T500 both a) and b) work exactly as expected.
    I tried using BIOS versions 1.41 and 1.43.
    Anybody having tipps what to do about this? Or this a "works-as-designed" issue, although I can't realy imagine that...?
    Alex

    There is a work-around for this issue.  If you leave the system powered off for 30 seconds after executing the physical presense request, then when you turn the system on you will see the F9 prompt and the TPM will be cleared as expected.  The key step is to leave the system powered off for 30 seconds.
    I will still request a BIOS fix for this issue, but usually such fixes are slow to release.  I hope this work-around can help you for the short-term.

  • Cannot connect to the console.

    Getting the following error when trying to connect to the console Using VMware vSphere Mobile android client 1.4.610000. "The console has been disconnected. Close this window and re-launch the console to reconnect."
    I am able to connect with a computer on the same network using the web client and the desktop client and open a console without any issues.
    VMware vCenter Server Appliance 5.5.0.20200 Build 2183109
    ESXi 5.5.0, 2143827
    Phone: S4   4.4.4
    VMware vSphere Mobile android client 1.4.610000

    Welcome to the Community,
    From the given information - you are trying to open the console of VM via vSphere client but got an error message. However you are able to open the console via vSphere Web client. Is it correct?
    Try below options to narrow down this issue:
    Connect to vCenter and open vSphere client - check the VM console -     Note down the result
    Connect to vCenter and open vSphere web client - check the VM console -     Note down the result
    If both results are positive then it is working locally on vCenter with specific client version.
    Then You need to check the Machine vSphere client version and install same version matching with vCenter and try to access the console.

  • The Console has been disconnected. Close this window and re-launch the console to reconnect

    Hello,
    I am using Mobile Watch list 1.5.020000 (2434393) and when I try to connect a VM running Ubuntu 14.04 desktop with the VMware tooIs installed get this error message. I am running ESXi 5.5. I am not connecting through VPN and I am on the same network as the server. I can connect just fine through the vSphere client installed on a desktop machine. There have been several questions about this and no answer.
    From reading the posts I have opened the following ports to no avail:
    902
    7331
    7343
    443
    9443
    I also tried to forward all of these ports to port 80 on the server but that did not work either.
    Can anyone give me an answer?
    Thank you,
    Rob Durrance

    Welcome to the Community,
    From the given information - you are trying to open the console of VM via vSphere client but got an error message. However you are able to open the console via vSphere Web client. Is it correct?
    Try below options to narrow down this issue:
    Connect to vCenter and open vSphere client - check the VM console -     Note down the result
    Connect to vCenter and open vSphere web client - check the VM console -     Note down the result
    If both results are positive then it is working locally on vCenter with specific client version.
    Then You need to check the Machine vSphere client version and install same version matching with vCenter and try to access the console.

  • Update and replace a index via script

    Hi everybody,
    I created a book with 30 chapters, each of them having a local (or chapter) index at the last pages.
    I would like to update these indexes and replace them with the new, updated ones (just as the command "Generate Index..."
    do with the option "Replace the Existing Index" on).
    I'm able to generate the index via script, but I don't know how to make it replace the existing one.
    I dont want the Place the Index, as its precise location is variable and it can run for more than one page and frame.
    So even I could get the coordinates of an existing index to place the new one,
    I would have the re-layout them, what would defeat my automation goal altogether.
    I just want to replace the existing indexes via script, as I can do using the interface.
    Is it possible?
    Thank you all in advance.
    Edson Furman
    [email protected]

    I'd like to re-ask the same question. I am able to generate an index for the first time, but am at a loss how to do the scripting equivalent of pressing the "OK" button in the following dialog:
    I'm guessing I should proceed something like this:
    myDocument.indexGenerationOptions.replaceExistingIndex = true;
    myIndex = myDocument.indexes[0].update();
    myIndex.generate( ? DO I REALLY HAVE TO SPECIFY A PAGE ETC. HERE ? );

Maybe you are looking for