Is it possible to get the name of the tool selected from a script?

Hello

Is it possible to get the name of the tool currently selected from a script?

I found this:

https://forums.adobe.com/thread/579195

https://forums.adobe.com/thread/2161923

But these works in Photoshop... So, it is possible to get the name of the tool currently selected in InDesign? Is there a universal method that will work in other applications?

I think that there is a toolBoxTools, app.toolBoxTools...

P.

Tags: InDesign

Similar Questions

  • Is it possible to get the currently selected clipitem?

    Heya folk from Adobe,

    Is it possible to get the clipItem currently selected in the active sequence, something like this:

    app.enableQE ();

    project var = qe.project;

    Project.init)

    curSeq = project.getActiveSequence ();

    curSeq.getSelected () # does not exist, I'm looking for a way to do this

    It is a high priority for me.

    Thank you!

    Raphael

    I appreciate your optimism about what is in the API, but it only no concept of selection (other than, 'what sequence is currently active").

    I'll add your vote to the feature request (already very popular), "to provide current information of project selection and sequence.

  • How to get the items selected from indesign Document?

    Hi all

    I'm trying to get the objects selected by the user in the indesign document, to which the following code, I wrote, but his does not collect do not.

    LayoutTarget InterfacePtr < ILayoutTarget > (myContext, UseDefaultIID());

    if (layoutTarget == nil)

    {

    () CAlert::ErrorAlert

    "layouttarget sucks" );

    breaking ;

    }

    UIDList itemList = layoutTarget-> GetUIDList (kStripStandoffs);

    where mycontext is IActiveContext and after getting the itemlist (all managers of related texts).

    How to perceive the limits of the textframe? (TopLeft, TopRight, BottomLeft, BottomRight).

    Thanks and greetings

    Sanjeev.k

    You must initialize the ILayoutTarget with a CSB. As

    InterfacePtr iLayoutCSB (iSelectionManager-> QueryConcreteSelectionBoss (kNewLayoutSelectionBoss));

    InterfacePtr layoutTarget (iLayoutCSB, UseDefaultIID());

    HTH.

    Jasmine

  • Is it possible to get the current selection?

    catalogue: getTargetPhotos () returns an array of selection photos or film if nothing is selected. catalogue: getTargetPhoto() returns only non-neant if something is more selected.

    Is it possible to get a real choice?

    The methods of selection are indeed confusing.  This function returns the current selection, or empty if there is no selection in the array:

    getSelection () function

    If catalog: getTargetPhoto () then

    back catalogue: getTargetPhotos)

    on the other

    return {}

    end

    end

  • Is it possible to get clip names and additional descriptions (and other metadata) in a report? The number, .xls or some other document available?

    I have about 12 tablespoons of images recorded on several projects. Each clip has a description added to it. I'm trying to find a way to search for a specific content easier. Since so much information was laboriously on slot form of description of metadata, it would be great to be able to use it. Which brings me to the question -

    Is it possible to get clip names and additional descriptions (and other metadata) in a report? The number, .xls or some other document available?

    Thank you!

    Karim.

    one way is to highlight all the media/bins in the project Panel and from the menu, export the batch list. This will create a .csv text file.

    There is also this option in another post, but do not know how it works. First Pro CC - how can I export metadata custom in Excel?

  • Is it possible to get the layer, layerset and layer with status layerset...!

    Hello world!

    Is it possible to get the layer, layerset and layer with the status layerset. Because I met a big problem out of it.

    I have a single PS document which is contain the collection of layer, layer with layer games collection. I need apply the function for each layer and layers and each layer games with of layerset.

    I also tried a code, but its error getting. Please help me out of this code...

    -yajiv

    #target photoshop

    app.bringToFront ();

    level of $= 2;

    var app.activeDocument = docRef;

    Journal of the var ="";

    var x = 0;

    var n = number (docRef.layers.length) - 1;

    for (i = 0; i < n; i ++) {}

    var tm = String (docRef.layers [i]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (DocRef.Layers [i], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (DocRef.layerSets, "LayerSets");

    x = x + 1;

    }

    }

    function Check_LayerStructure (objLayer, objflag, x) {------}

    {if(objflag=="Layer")}

    LayetStructure (objLayer, objLayer.name, BlendMode.NORMAL, 100, 100, 0, true, 'Layer');

    }

    else {if(objflag=="LayerSets")

    LayetStructure (objLayer [x] objLayer [x] .name, BlendMode.PASSTHROUGH, 100, 100, 1, true, 'together');

    m = Number (objLayer [x] .layers. Length)

    for (j = 0; j < m; j ++) {}

    var tm = String (objLayer [x] .layers [j]);

    var isLayer = tm.lastIndexOf ("ArtLayer");

    var isLayerSet = tm.lastIndexOf ("LayerSet");

    {if(isLayer!=-1)}

    Check_LayerStructure (objLayer [x]. Layers [j], 'Layer');

    }

    {if(isLayerSet!=-1)}

    Check_LayerStructure (objLayer [x] .layerSets, "LayerSets", x);

    }

    } / / Loop Layerset

    } / / I loop For

    } //Function loop

    function LayetStructure(layerRef,L,bMode,Opt,fillOpt,S,layVisible,Lref) {}

    {if(layerRef.BlendMode!=bMode)}

    If (confirm (L + Lref + "belend mode was bad...!)) \n"+"do you want to change...? »)) {

    layerRef.blendMode = bMode;

    Journal = Journal + "-" + L + Lref + "belend mode has been changed...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.Opacity!=opt)}

    If (confirm (L + Lref + ' opacity has been "+ Math.round (layerRef.opacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.opacity = Opt;

    Journal = Journal + "-" + L + Lref + ' opacity was changed to 100...! \n\n ";

    e = 1;

    }

    }

    If (layerRef.fillOpacity! = fillOpt & & S == 0) {}

    If (confirm (L + Lref + ' Fill has been "+ Math.round (layerRef.fillOpacity) +"%...! ")) \n"+"do you want to change...? »)) {

    layerRef.fillOpacity = fillOpt;

    Journal = Journal + "-" + L + Lref + ' fill has been changed to 100...! \n\n ";

    e = 1;

    }

    }

    {if(layerRef.visible!=layVisible)}

    If (L + Lref + ' left eye...! ") \n"+"do you want to change...? ») {

    layerRef.visible = layVisible;

    Journal = Journal + "-" + L + Lref + ' eye was turn on...! \n\n ";

    e = 1;

    }

    }

    }

    Code of responsible for the action would naturally faster, but if you should be more comfortable with the DOM code, it could be useful to you.

    #target photoshop

    var theLayers = collectLayers (app.activeDocument, []);

    Alert (theLayers.join ("\n"));

    function to collect all the layers.

    function collectLayers (theParent, allLayers) {}

    If (! allLayers) {var allLayers = new Array}

    else {};

    the number of var theParent.layers.length = - 1;

    for (var m = number; m > = 0; m-) {}

    var theLayer = theParent.layers [m];

    apply the function of games of layers;

    If (theLayer.typename == "ArtLayer") {}

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity])

    }

    else {}

    allLayers = (collectLayers (theLayer, allLayers))

    This line includes layer groups;

    allLayers.push ([theLayer, theLayer.blendMode, theLayer.opacity, theLayer.fillOpacity]);

    }

    };

    return allLayers

    };

  • is it possible to get the EPS encoding (IE.. BINARY, ASCII, ASCII85)

    Hello world

    is it possible to get the ASCII85 encoding BINARY, ASCII, EPS, JPEG (low)...

    Thanks in advance.

    1.jpg

    -yajiv

    The format of Photoshop EPS files is partially documented here:

    http://www.Adobe.com/devnet-apps/Photoshop/fileformatashtml/#50577413_pgfId-1035096

    Photoshop includes a comment in the EPS so that it is able to read, it writes files insert it again. Third-party programs that write files EPS pixel-based can include this comment in EPS files, so that Photoshop can read their files.

    The comment must follow immediately after the % block of comments at the beginning of the file. The comment is:

    %ImageData: ""

    : Width of the image in pixels.

    : Height of the image in pixels.

    : Number of bits per channel. Must be 1 or 8.

    : Picture mode. Image bitmap/levels of gray = 1; Lab = 2; RGB = 3; CMYK = 4.

    : Number of another string in the file store. Ignored when reading. Photoshop uses this to include a grayscale image that is printed on PostScript printers without colors.

    : Number of bytes per line per channel. Will be 1 or formula (see below):

    1 = data are interleaved.

    (columns * depth + 7) / 8 = data are stored in line-interlaced format, or there is only a single channel.

    :

    1 = data in binary format.

    2 = data in hexadecimal ascii format.

    : PostScript the line immediately preceding the image data. This entire line should not occur elsewhere in the PostScript header code, but it can happen to part of a line.

    In addition, some information about other values of can be found here:

    http://Python.6.X6.Nabble.com/correctly-determine-image-size-of-a-Photoshop-EPS-td2096786. HTML

    1 - binary

    2 - ascii

    3 - jpeg low quality

    4 - jpeg medium quality

    5 - jpeg quality

    6 - jpeg maximum quality

    7 - ascii85

    This is a test script using this information:

    function main ()
    {
        function isPhotoshopEPSFile (f)
        {
            return (f.type === 'EPSF') || f.name.match (/\.eps$/i);
        }
        var epsFilter =
            (File.fs === "Macintosh") ?
                function (f) { return (f instanceof Folder) || isPhotoshopEPSFile (f) } :
                "Photoshop EPS Files:*.eps,All Files:*.*";
        var epsFile = File.openDialog ("Open Photoshop EPS file:", epsFilter);
        if (epsFile)
        {
            if (epsFile.open ("r"))
            {
                while (!epsFile.eof)
                {
                    var line = epsFile.readln ();
                    var found = line.match (/^%ImageData:\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)/);
                    if (found)
                    {
                        var dataFormatIndex = found[7];
                        var dataFormats =
                        [
                            "Binary",
                            "ASCII",
                            "JPEG (low quality)",
                            "JPEG (medium quality)",
                            "JPEG (high quality)",
                            "JPEG (maximum quality)",
                            "ASCII85"
                        ];
                        alert (dataFormats[dataFormatIndex - 1]);
                        break;
                    }
                }
                epsFile.close ();
            }
        }
    }
    main ();
    

    HTH,

    Domestic-

  • Is it possible to get the total value of column and set to another area

    Hello

    Is it possible to get the total value of a particular column, and assign this value to another discipline?

    How to do this?

    Thanks in advance,
    SAN

    Hi SAM,

    If your controller class throw this message it means that it works very well. Follow these steps, I hope this will solve your problem.

    1 check the following

    OAApplicationModule am = pageContext.getApplicationModule (webBean);
    OAViewObject ratvo = (OAViewObject) am.findViewObject("*CompetenceElementsVO*"); It should be the name of the instance instead of the name Physics vo vo.
    OAViewObject valuevo = (OAViewObject) am.findViewObject("*PerRatingLevelsVO*");

    2. extend this controller class that is associated with this region.

    I hope it will work now.

    Haroon.

  • STOR. E TV can play some formats - is it possible to get the firmware update?

    Is it possible to get the update of firmware for STOR. E TV, because this product cannot read many formats.
    I woud would better update of firmware for video - AVI (Xvid, AVC, MPEG1/2/4), MPG/MPEG, VOB, MKV (h.264, x.264, AVC, MPEG1/2/4, VC - 1), TS/TP/M2T (MPEG1/2/4, AVC, VC-1), MP4/MOV (MPEG4, h.264), M2TS, WMV9.

    Can someone REPAIR THIS TOSHIBA in the FUTURE?

    Hello

    It would be always great if a device would be supports all possible formats
    Allows how such as firmware updates or similar would be released
    Who knows what guys are going to do in the future, we'll see.

  • Qosmio G30-163: is it possible to get the HDMI by component

    Hello

    It seems that I'll be stuck with my Qosmio back to its own screen whenever I turn off my LCD TV. So what to do?
    I have a box of multiple component entry from another manufacturer. Is it possible to get the HDMI / component?

    While I listen to my signal through that?
    The only other option is for me to leave my TV in all of time...

    Hello

    Hmm, to my knowledge the HDMI / component is not possible.
    The HDMI-DVI adapter is known to me. Also the "cable DVI-component.

    In any case, I don't think that it is a large and serious issue. You can use the FN + F5 combination to toggle the display if the image switches to the internal display of the laptop!

    Best regards

    Goodbye ;)

  • Is it possible to get the RAID on model T?

    Is it possible to get the RAID on model T? For example if I have a RAID between the mSata SSD and HARD drive?

    T series does not support hardware RAID.

  • Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    Is it possible to get the details of the file (for example the subject and comments) off the screen and to an Excel file or a text file without having to retype this information

    * original title - file details *.

    Hello

    Could you explain what is exactly? What do you mean by off the screen?

    According to my way of thinking, you want to export the file details of all your files on your HARD drive to an excel file or a txt file. If I'm right in this case, it is not possible to export the details of each & every file in the excel sheet.

  • My laptop has been out of service for Windows 10 preview and free offer, but now work. Is it possible to get the upgrade for Windows 10 free?

    My laptop has been out of service for Windows 10 preview and free offer, but now work. Is it possible to get the upgrade for Windows 10 free?

    Hello

    You buy Windows 10, as there is no free upgrade to Vista 10.

    https://www.Yahoo.com/tech/s/Microsoft-just-confirmed-Windows-10-pricing-everything-know-114542550.html

    Microsoft on Monday said CNET Windows 10 will cost just as much as its predecessor. This means price for Windows 10 will run anywhere from $110 for Windows 10 Home package at $199 for Windows 10 Pro edition. In addition a Pack Pro 10 will allow users upgrade Home Pro for $99.

    http://www.CNET.com/news/Microsoft-prices-single-Windows-10-licenses-at-119-for-home-199-for-Pro/

    How to buy Windows 10:

    http://www.microsoftstore.com/store/msusa/en_US/cat/Windows/CategoryID.70036700

    But first make sure that you have the correct configuration and your computer manufacturer provides the right drivers for 10.

    https://www.Microsoft.com/en-us/Windows/Windows-10-specifications#sysreqs

    " System requirements Windows 10"

    https://www.Thurrott.com/Windows/Windows-10/3884/Windows-10-system-requirements

    Microsoft deploys Windows 10 available as free upgrade to Windows 7 features, Windows and Windows Phone 8.1 8.1 qualified. It will be available from July 29, 2015

    "FAQ Windows 10.

    http://www.Microsoft.com/en-us/Windows/Windows-10-FAQ

    See you soon.

  • Is it still possible to get the 64-bit Windows Vista support?

    Hello!

    Well, I have a copy to authentic detail, under license of Windows Vista Edition Home Premium. He put 32 bit media. But at the time when Vista comes out, I could order the 64-bit Vista Home Premium support which I use today with the same license key that came on the parcel.
    About a year ago I bought the Windows Vista Express upgrade, which is valid for a Home Premium to Ultimate upgrade. But the disk is 32-bit only! So, I was wondering if it is still possible to get the 64-bit separately, support only this time, for the edition of Vista Ultimate? I ask this question because I would like to upgrade to Vista Ultimate, but still run on 64-bit, since I can't spend 64-bit Home Premium to Ultimate 32 - bit.
    I know that it may be too late now, given the fact that Windows 7 is already out and Windows 8 is in its phase of consumer preview now. But I am not really interested in upgrading to one of them at this stage. All I really want is just to upgrade to Vista Ultimate, but I need the 64-bit support, since I already have the license key.
    Maybe that Microsoft may allow me to download an ISO image of the Vista Ultimate 64-bit? That would be good enough for me, I don't care for the physical disc, it is not really necessary. I could get some pirate site or something like that, since I already own not one but two licenses, but I don't want that.
    Thanks in advance!

    The disks are probably non-destinee resale and this may explain the color.

    The Express Upgrade product key is specific to an upgrade from Home Premium to Ultimate.  The product key with the expedition is probably a full license key.

    > By 'Matrix Vista upgrade', you mean upgrading one bit-version to the other, like 64-bit to 32-bit or 32-64, right?

    N ° upgrade matrix tells you if an upgrade installation is allowed or a custom installation is required when moving from one edition of Windows to another.

    > Also, if I use a key Vista Home Premium that I have today to install Home Premium and then upgrade to Vista Ultimate, what happenes to my old key? The old key become invalid/replaced by the new key that I got the update? I mean where I want to go back to the old edition, I've had to go back to Vista Home Premium, I reuse this old key?

    You can use the old key to return to the old edition.  However, you can not use the key to install the old edition on a different computer.  The old key is bound to the key to upgrade.

    > "" If a user is running a 32-bit version of Windows, a user can only be upgraded to another 32-bit version: upgrade from 32 bit to 64 bit requires a clean installation. ""

    Now you are confusing a "install update" with an 'upgrade license '.  A retail upgrade license is valid to move from a 32-bit edition to a 64-bit edition, but an upgrade installation is not allowed and a custom installation is required (due to the change in the number of bits of the installation).

     
    > And now Microsoft will probably speed up the versions of Windows, with new versions coming out every two years or more, or has done.
     
    Not true.  Microsoft has been on a cycle of three years for a long time.  There is no speed upward.  Vista has been delayed for two years, when Microsoft declared a moratorium until security problems in Windows have been fixed (XP SP2 was the result).
     
    > I don't know about Windows 7. I don't know if I'll get it or wait for Windows 8. I hear a lot of misfortunes for Windows 7
     
    I don't know where you got this info.  Windows 7 is much better than Vista or XP.  Vista is the one that is panned by critics as a real dog.  Try Windows 7 and you will never look back.
     
  • Is it possible to get the activation code of the older PC so that I can use it in my class?

    Original title: Activation of Windows 8.

    If there is some time I had windows 8 pro to use in my construction of future games. Not knowing I could install it on 1 computer (thought it would be at least 2) I installed it as a test on my desktop PC previos where it has not yet run properly cause it was an older model (and if you haven't used since then, cause I have a laptop with Windows7). But now my PC gaming is finished and I suddenly find I could activate only on 1 PC.

    So my question is. Is it possible to get the activation code of the older PCs (that I use even more, maybe even remove it) so that I can use it in my class? Or that the activation code and the money just went in the toilet?
    I could install Windows 7 to 2 different PC-s(didn't try more cause there was no need) with no problems and it wasen can't pack family, why is Windows 8 different? Sometimes errors occur.
    Ask cause I went all on buy the parts, I have no money to buy a new copy of windows 8.
    Awayting for your answers.
    Thank you
    Edit! Maybe I'm a solution. Going to try it out after I return to work.
    It's the solution

    "I have Windows 8/8 Pro is installed on my PC." If I replace with another PC, can I install my copy of Windows 8 on my new PC until I remove it from the other? »

    Yes. The highest point is the one you mentioned: you must remove Windows 8 from your old computer before you activate on the new. In other words, you can have your copy of Windows 8 or Windows 8 Pro running on a single computer at a time.

    Another thing to keep in mind is that if you have installed an upgrade copy under license of Windows 8 on a computer and then you want to use it on another computer, the same 'upgrade' rules apply: you must have a previous version of Windows on the computer before you install Windows 8. You can ignore this rule, if you started with Windows 8.1

    Important: You can't "move" Windows 8 or Windows 8 Pro on another computer if your computer is pre-installed with Windows 8. Your copy of Windows 8 is what OEM licensed which means that you are allowed to use Windows 8 on the computer on which he came already installed on.

    "How many times can I reinstall Windows 8 on another computer? Assuming I follow the rule 'uninstall old installation', peux I keep installing Windows 8 on different computers? »

    There is no limit to the number of computers that you reinstall Windows 8 on as long as you follow the rules, that I discussed in the last question.
     

    Hi NeemeK,

    We appreciate the research you have done to find more information on this issue. The information you found were correct.

    OEM product key can only be used with the computer on which it is installed on.

    When the operating system is not active (uninstalled) in the old computer, you can install it on the new computer. This applies to any number of computers you use.

    If you get any errors, you can perform the activation of the phone.

    http://support.Microsoft.com/kb/950929/en-us

    Hope that the information provided is useful. Do not respond if you need more help.

Maybe you are looking for

  • Picking and Portege M400 displacement causes the crash and locking of the

    I have a new problem with Portege M400, which began a few days ago. If I pick it up or move it, then it will crash or lock up. I wonder if anyone has any idea as to what may be the cause of this and what can be done?My only guess is to replace the ha

  • Windows Vista-press to continue

    Original title: vista has been designated the cenyury flop yet? Press to continue

  • Records have disappeared.

    I have nothing to do, even if she were eco when I was updating a program from Adobe.

  • Pushing without BIS/BES

    Hi all I am a prospective developer Blackberry works on my first BB app. The application will receive the data of a service push third push as Xtify or urban airship. If possible, I would like to make it work on Webworks. I am little confused as to h

  • DVD-ROM

    Hello people... I was wondering if someone out there could tell me if a PN HP 410125-200 / model DH-16D3S (year HP DVD - ROM) is compatible with my system. Compaq Presario SR2163WM, Windows Vista Home Basic 32-bit. Thank you very much!! jimmy40