a script which communicates with AI and ID

Hello community

I'm currently trying to wrap your head around the Extendscript Toolkit. When I write a code I specified for the program I want to use by selecting it from a drop-down list, however I want to use two different programs at the same time. I want to copy all pageitems a page in indesign, and then paste it on a new page in illustrator. Anyone know how I can have access to both programs at the same time?

I wrote the bit to follow who seems to give me the two application I want to use, but the content of these objects is not the same if you write 'App' with for example indesign selected as target your application.

main() {} function

inApp var = this.indesign11;

var illApp = this.illustrator;

}

If I write inApp.activeDocument the Toolbox just ignore.

If anyone has any suggestions I'd be happy to hear.

Thank you

Dane

Hi Dane

You use VBS in the ESTK which will not work.

The ESTK only handles javascript. The javascript code can execute vbs using app.doScript.

The "correct" to communicate with the ID and AI way is with BridgeTalk.

There are examples in the manual script and on the forum.

Good luck

Trevor

Tags: InDesign

Similar Questions

  • I was setting up my NEW email in Hotmail and has been BLOCKED! I can't communicate with anyone and get this resolved - someone here who can solve this problem?

    I was setting up my NEW email in Hotmail and has been BLOCKED! I can't communicate with anyone and get this resolved - someone here who can solve this problem? It must be the WORST email service I've EVER had! WHI is here to do something about it?

    How much do you pay for this service?

    In all cases, to submit all queries Hotmail on the forum right here:

    Windows Live Solution Center
    http://windowslivehelp.com/

  • How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Mr President.

    How to reduce the height of a table which is with PanelCollection and pc will find panelbox and pb is panelgridlayout and pgl is at the center of tableFirstTemplate?

    Concerning

    Normally at the height of the table control you need property autoheightRows -1 and then set height in the table like this inlinestyle

    height: 300px;

  • Test CVI which communicates with FPGA development without FPGA computer program

    I have a CVI program that needs to communicate with an FPGA. My current computer is not the real installed in FPGA. I was just wondering, if I can do something as in LabVIEW where I can run a FPGA simulation and test the API of NiFpga calls to that instead? Is that possible or I need the actual FPGA to do? I want to just ensure that the API calls that I use work properly, and it should help speed up the tests.

    Thank you

    I had looked into it and it seems that he is there no inherit to simulate a target FPGA through LabWindows/CVI. We can easily simulate a target through the LabVIEW Project Explorer, but not through the CVI.

  • Need a written conditional script which involves layer styles and pixelation. Possible payment may be negotiated.

    I am a freelance illustrator who uses extensively layer styles in my workflow.  As the pixelation and the implementation of a new layer style is constant and ongoing, I would like a way to rationalize the actions of 3-4 that I use currently in a single conditional script.  I am currently using CS6.  Here's the description detailed of how I want the script to run:

    (1) is the selected layer named "layer magic 1"?  Otherwise, go to the #2 line.  If Yes, go to the #8 line.

    (2) is the selected layer named "magic layer 2?  Otherwise, go to the #3 line.  If Yes, go to the #8 line.

    (3) is the selected layer named "layer Magic 3"?  Otherwise, go to the #4 line.  If Yes, go to the #8 line.

    (4) is the selected layer named "layer Magic 4?  Otherwise, go to line 5-7 bolt torque.  If Yes, go to the #8 line.

    (5) make the new layer.

    (6) new name "Layer1" layer magic

    (7) add the layer style (also nominated) "magical layer1.  Script concludes.

    (8) the layer is empty?  If Yes, go to the #9 line.  Otherwise, go to line 10-12 bolt torque.

    (9) queue dialog box: "the end of magic layers?  with the choice of the 'yes' or 'no '.

    • If "Yes" is selected, the layer is removed.  Script concludes.

    • If "no" is selected, the layer is kept (no change).  Script concludes.

    (10) rasterize layer.

    (11) rename the layer 'layer of paint '.

    (12) merge the layer down.  Go to the line of 5-7 bolt torque.

    I would prefer if possible javascript, because I will need for the script between my Mac desktop and my Windows Tablet of the Cintiq based on the port.  Any help would be greatly appreciated; It took me some time to try to learn the writing of scripts, but between labor day and the night in freelance, I managed only by creating extreme levels of frustration!  Laughing out loud!  PLEASE AND THANK YOU!

    Good guys, has been able to play a bit with what I learned between both of you and others and come to this:

    (1) function main() {}

    2)

    (3) var __indexOf = [] .indexOf | function (Item) {for (var i = 0, l = this.length; i)}< l;="" i++)="" {="" if="" (i="" in="" this="" &&="" this[i]="==" item)="" return="" i;="" }="" return="" -1;="">

    4)

    (5) var makeNewLayer = function() {}

    (6) var newLayer = doc.artLayers.add ();

    (7) newLayer.name = 'magic layer1.

    (8) newLayer.applyStyle('magic layer1');

    (9) doc.activeLayer = newLayer;

    10)            }

    11)

    (12) var doc = app.activeDocument;

    (13) lay = doc.activeLayer,

    (14) names = ['magic layer1',

    "(15) ' magical layer2.

    (16) ' magical layer3.

    ["(17) ' magic layer4"];

    18)

    (19) if (__indexOf.call (name, lay.name)< 0="" )="">

    (20) newLayer = doc.artLayers.add ();

    (21) makeNewLayer();

    (22) return;

    23)            }

    24)

    (25) if (doc.activeLayer.kind == LayerKind.NORMAL & doc.activeLayer.bounds [2] == 0 & doc.activeLayer.bounds [3] == 0) {}

    (26) var dialog = confirm (the ' magical sleep end? ");

    (27) if (dialogue) {}

    (28) app.activeDocument.activeLayer.remove ();

    29)                }

    (30) return;

    31)            }

    (32) var idrasterizeLayer = stringIDToTypeID ("rasterizeLayer");

    (33) var desc5 = new ActionDescriptor();

    (34) var idnull = charIDToTypeID ("null");

    (35) ref4 var = new ActionReference();

    (36) var idLyr = charIDToTypeID ("Lyr");

    (37) var idOrdn = charIDToTypeID ('Ordn');

    (38) var idTrgt = charIDToTypeID ("Trgt");

    (39) ref4.putEnumerated (idLyr, idOrdn, idTrgt);

    (40) desc5.putReference (idnull, ref4);

    (41) var idWhat = charIDToTypeID ('what');

    (42) var idrasterizeItem = stringIDToTypeID ("rasterizeItem");

    (43) var idlayerStyle = stringIDToTypeID ("layerStyle");

    (44) desc5.putEnumerated (idWhat, idrasterizeItem, idlayerStyle);

    (45) executeAction (idrasterizeLayer, desc5, DialogModes.NO);

    46)

    (47) doc.activeLayer.merge ();

    (48) doc.activeLayer.name = 'base paint layer;

    (49) makeNewLayer();

    (50) return;

    51)

    52)        }

    53)

    (54) main();

    I know it's a little ugly code lines 32-45, but (through other channels, thank you JJMack & c.pfaffenbichler!), I realized that there is no way to script, the rasterization of a "layer Style" others that using ScriptingListener.plugin.  DBarranca  Yes... I realized a little I "screwed the dog" on the diaper change after that I played with him for a while.  Also a little, visited account that the "new layer" you were a little enough to add was not going to solve my problem. ended up having to add a "new layer" on line 20.  Everything seems to work exactly as I intended at the moment.  I DO, however, like the idea of having an error message "cannot find the magic layer1 Style".  How would I want to add that in?

    Thanks again,

    -Eric P

  • script which gives the hostname with more CPU resources and memory available

    Hello

    Anyone have a script which gives the hostname with more CPU resources and memory available in the cluster?

    Concerning

    Vickie

    Hello, VicMware-

    You can get the host with the free CPU, or with the most free memory resources, using the following:

    ## get the host with the most free CPU cyclesGet-Cluster myCluster0 | Get-VMHost | Select-Object Name,    @{n="CpuMhzFree"; e={$_.CpuTotalMhz - $_.CpuUsageMhz}} | Sort-Object -Property CpuMhzFree -Descending | Select -First 1
    
    ## get the host with the most free memoryGet-Cluster myCluster0 | Get-VMHost | Select-Object Name,    @{n="MemGBFree"; e={$_.MemoryTotalGB - $_.MemoryUsageGB}} | Sort-Object -Property MemGBFree -Descending | Select -First 1
    

    The first would have produced something like:

    Name          CpuMhzFree
    ----          ----------
    myVMHost0          25384
    

    And the latter didn't would be out:

    Name           MemGBFree
    ----           ---------
    myVMHost4        122.323
    

    .. .or each of these host computers are those with the most free memory/CPU cluster, respectively.  What to do the things for which you are looking?

  • My printer which is connected to a home group to not communicate with the computer laptop and Netgear is not connected to my computer

    Original title: 305 lemark printer s device

    My printer will stillnot communicate with the laptop.  It is in the homegroup?  Help

    In addition, my netgear will not or connect to my computer?

    Thanks in advance for your help

    Gary

    Hi Gary,

    1 have you ever done any recent hardware or exchange of software on your computer before the show?

    2. you receive an error code or message?

    Please follow the methods and mark the question below:

    Method 1:

    Using the troubleshooter from network in Windows 7:

    http://Windows.Microsoft.com/en-us/Windows7/using-the-network-troubleshooter-in-Windows-7

    Method 2:

    Open the troubleshooter group living:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-HomeGroup-Troubleshooter

    Method 3:

    Wi - Fi and in Windows network connection issues:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    I hope this helps.

  • BlackBerry Z10 Z10 suddenly stopped synchronization of calendar and contact - link gives BB cannot communicate with connected mssg but displays device

    I think that BB link updated the software in March 2015.  I had been very good sync with my laptop Windows 8 with the Outlook calendar and contacts, but this week it stopped.  BB link watch Z0 connected, but says cannot communicate with the device.  I tried the solution of knowledge base - leave plugged phone with a USB cable, power phone off, then back on donkey wait 3-5 minutes for the pilots to complete loading - but none help.  I rebooted the computer and the Z10 several times, but no luck with the synchronization.  Any help is appreciated!

    Try the following steps, which will completely remove all traces of BlackBerry-link device driver entries and may solve your problem:

    1. Uninstall the BlackBerry link.
    2. Open the Device Manager by pressing the Windows key + R on your keyboard type devmgmt.msc , and then click OK.
    3. Click view , and then click Show hidden devices on the menu that appears.
    4. Expand the BlackBerry section by clicking on the + symbol next to it.
    5. Right-click on the following, and then click Uninstall. In the dialog box that appears, select delete the driver for this device. If more than one of each of the following entries appear, remove them as well.
      • BlackBerry smartphone
      • BlackBerry smart phone
    6. Expand the network adapters section by clicking on the + symbol next to it.
    7. Right-click on the following, and then click Uninstall. In the dialog box that appears, select delete the driver for this device. If more than one of each of the following entries appear, remove them as well.
      • BlackBerry smartphone
      • Tethering BlackBerry smartphone
      • Virtual private network of blackBerry
    8. Restart the computer.
    9. Reinstall the latest version of BlackBerry link.
    10. Try to reconnect your BlackBerry Z10 to the computer and see if she is able to communicate with the BlackBerry link.

    After back and let us know if it works for you.

  • Someone else to get errors 'droplets could not communicate with Photoshop"since the upgrade to LR2015 CC and CC 2015 PS on Windows?

    Someone else to get errors 'droplets could not communicate with Photoshop"since the upgrade to LR2015 CC and CC 2015 PS on Windows?

    I have a droplet which stretches from digimarc on my images.  Its working well for the past 2 years.  However the most recent upgrade to LR2015CC and PS2015CC its broken.  I did go back and manually install the digimarc plug-in (because it is no longer installed by default) in PS 2015 CC.  The drop works well when it is run within PS2015 CC however when I try to run it as part of "Post-processing, after export" in CC LR2015 I now get an error message "droplets could not communicate with Photoshop.  It worked in the latest versions of LR and Psalm

    Anyone have this same problem?   It is a technique of very popular workflow for those of us who use digimarc.  I wonder if anyone else has encountered this and has a fix.

    Thank you

    Work around is to install the OLD PS CC2014 and restart the computer.  Then it magically connects to CC2015 PS without errors.

  • Script to search for text and remove the hyperlink and characterstyle link which applies (back to normal)

    I need help with my script to search for text and remove the hyperlink and characterstyle link which applies (returns the normal text).

    I can't do either as I want.  I want the user to be able to type in a dialog text they want to search for, do search this text IGNORING case (case insensitive) and then for all instances that he find it, remove character styles that are applied to the (set to [none]) and delete the hyperlinks.

    My code seems to define the character style [None], when I click on the text and look at the window of character Styles, BUT all old styles (font color, underline) are always applied and removed not as I want.

    Also, I can't understand how to remove all of the old links.

    Here is my code:

    myDocument var = app.activeDocument;

    var noneStyle = myDocument.characterStyles.item ("[None]");

    var myFindVal = "";

    var myErrorText = "";

    var myErrorCount = 0;

    myDialog = app.dialogs.add var ({name: "search user submitted text and delete hyperlinks from objects found.", canCancel: true});

    {with (MyDialog)}

    {with (dialogColumns.Add ())}

    {with (borderPanels.Add ())}

    staticTexts.add ({staticLabel: "search and delete hyperlinks for :"}); "})

    myTextBox var = textEditboxes.add({minWidth:100});)

    }

    }

    }

    If (myDialog.show () == true) {}

    myFindVal = myTextBox.editContents;

    doSearchAndReplace();

    app.findTextPreferences = NothingEnum.nothing;

    app.changeTextPreferences = NothingEnum.nothing;

    If (myErrorCount == 0) {}

    Alert ("done! ("Part of the links have been removed for: '" + myFindVal + ""! "");

    }

    else {}

    Alert ("last error: '" + myErrorText + "' & number of errors:" + myErrorCount);

    }

    }

    myDialog.destroy ();

    function doSearchAndReplace() {}

    app.findTextPreferences.findWhat = myFindVal;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeFootnotes = false;

    app.findChangeTextOptions.includeHiddenLayers = false;

    app.findChangeTextOptions.includeLockedLayersForFind = false;

    app.findChangeTextOptions.includeLockedStoriesForFind = false;

    app.findChangeTextOptions.includeMasterPages = false;

    app.findChangeTextOptions.wholeWord = false;

    var myFoundItems = myDocument.findText ();

    for (i = 0; i < myFoundItems.length; i ++) {}

    myRemoveHyperlinkAndStyle (myFoundItems [i]);

    }

    }

    function myRemoveHyperlinkAndStyle (myFoundItem) {}

    try {}

    myDocument.hyperlinkTextDestinations.item (myFoundItem) .remove ();

    myDocument.hyperlinkTextSources.item (myFoundItem) .remove ();

    myDocument.hyperlinkURLDestinations.item (myFoundItem) .remove ();

    myFoundItem.applyCharacterStyle (noneStyle);

    }

    {catch (MyError)}

    myErrorCount ++;

    myErrorText = MonErreur;

    }

    }

    Hello

    Right, some hyperlink might be a pageItem...

    expand the 'if' condition with:

    If (myHyp [len].source.hasOwnProperty ("sourceText") &... content ==...)

    Jarek

  • Communicate with hardware devices such as scanners and printers

    I'm trying to design a test lab and I am a bit confused on the approach that would work well when it comes to hardware devices (which obviously can't be virtualized).

    Our interracts of software with scanners and specific types of printers and that experiments play an integral role during testing of the software.  We are already able to connect these devices to multiple environments that are provided on request by our it Group (we do not use Lab Manager now for our test but continuing execution environments in ESXi environments).  So far its been easy because the environments exist directly on the network.

    I searched in the laboratory as a way to automate and provide Manager

    these environments faster but the link to the physical world is

    always interested me.

    Given that the configurations are made of several machines, well there is also a dependence on the machine name/ip address for the configurations to work (we can also reconfigure those before using a configuration but less repetitive work better)... for this part I was thinking of using closed networks that tie together with Active Directory looks like this will be a problem unless I have to create a domain controller in the configuration.

    I can't find any script that I could use at the level of the configuration that would allow me to 'register' an environment on hardware devices so that they can be used together.  Is there such a thing?  or maybe I'm looking at this from the wrong direction.  I know there are scripts to start and stop and this is probably the best place to do (e.g., update the hardware device when a specific server is started).

    Someone else encountered similar problems?  How did you work it?

    Thanks in advance!

    -


    Mr. Jean-Marc Lagacé

    Senior Software Consultant

    BancTec (Canada), Inc..

    If my understanding of your problem is correct, here are the steps you should take to perform the activity you describe.

    1. Deploy a closed configuration.

    2. Find the external IP address of the machine (s) who need to register with the material.

    3. The IP address of step 2 to save with the material.

    4. Run your tests.

    5. Unregister?

    6. Cancel the deployment of

    If this is the correct sequence of events, then you should look into the SOAP API to automate this process. Assuming that all above steps would solve your problem, you can orchestrate this with an entirely external script to your LabManager system. We organize this kind of thing in a server of Continuouis Build for example, CruiseControl, TeamCity, Hudson...

    Although we don't have any other external hardware dependencies, we do many other automation that depends on the knowledge of external IP addresses of computers deployed inside the gate.

    Regarding the part of your question about Active Directory, I would put up my library with AD + preconfigured in machines. Then, all you have to do is bind addresses deployment configuration deployment hardware in time. The rest of your configuration may use IP addresses and names for internal configuration intra communications.

  • Script queue CM with output for allocated, running and waiting for process

    Hi all

    Could someone please share the script which gives the result as below:

    Script Manager simultaneous tail with output for allocated, running and waiting for processes within a single script.

    Thanks for your time!

    Kind regards

    You can find a lot of scripts in the old nets.

    Simultaneous treatment - what are the meanings of the Codes in the STATUS_CODE and the PHASE_CODE FND_CONCURRENT_REQUESTS Table columns? [152209.1 ID]
    ANALYZEPENDING. SQL - analyze all applications pending [134033.1 ID]

    https://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_CONCURRENT_REQUESTS+and+query&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001
    https://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_CONCURRENT_REQUESTS+and+time&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001
    https://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_CONCURRENT_REQUESTS+and+STATUS_CODE&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001
    https://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_CONCURRENT_REQUESTS+and+PHASE_CODE&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001

    Thank you
    Hussein

  • How the other drive app option to calculate calories? I did 45 minutes yoga with him and he showed the 260 callus which is high of 45 mins of yoga session.

    How the other drive app option to calculate calories? I did 45 minutes yoga with him and he showed the 260 callus which is high of 45 mins of yoga session.

    ISuspect that is not correct.

    Hello

    Saving workouts through the app to drive using others as the type of activity, active calories are estimated at a rate equivalent to a brisk walk or based on the data recorded by the heart rate sensor, according to what is higher.

    The following steps can help to improve the accuracy of the estimates made by your watch:

    • Estimates for calories and other results depend, in part, your personal information. To verify that it is accurate:
      • On your iPhone, in the application of the watch, go to: My Watch (tab) > health > Edit (top-right).
    • While training, to optimize the performance of the heart rate sensor (data from which is used when estimating calories), make sure you wear your watch fits on top of your wrist. Apple suggests that consider you the clamping Strip before starting a workout and it loosen again thereafter.
      • Note that the heart rate sensor is likely to give better results for the workouts that involve rhythmic (such as running) rather than the irregular movements.
    • Calibrate your watch can improve the accuracy of various estimates related to the activity, including estimates of calorie. To calibrate your watch, follow the instructions in the link below support article. You can reset your calibration data and start the process:
      • On your iPhone, in the application of the watch, go to: Watch My > privacy > Motion & Fitness > tap reset Calibration data.

    More information:

    Use of the workout on your Apple Watch - Apple Support

    Your heart rate. What it means, and where on Apple Watch you will find. -Apple Support

    Calibrate your Apple Watch for better accuracy of training and activity - Apple Support

  • I changed the my imac with a new drive and I lost the original CD/DVD which came with the new Mac.

    I changed the my imac with a new drive and I lost the original CD/DVD which came with the new Mac.

    and when I go to install the mac lion antiracism apple with reticle logo means error

    what can I do with these

    Please help money

    You can get the replacement system install & Restore CD/DVD of the customer support of Apple - to the United States, (800) 767-2775-for a sum low S & h. you will need to have the model or the serial number of your Mac available.

    If you are not in the United States, you may need to go through the regional Apple Store that serves your location to find the phone number. Here is a list of links to all - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html , another resource: International Support Phone #s.

  • I have a second hand iPhone and can't set up as the person he was find my iPhone on the phone and wont let me sign in with my Apple or the password and IE you have to communicate with the person he was and connect with Apple here

    I have a second hand iPhone and cannot configure as the person he was find my iPhone on the phone and wont let me sign in with my Apple or the password and IE to communicate with the person he was and connect you with there Apple ID and then cut to find my iphone. Unfortunately o cannot get in contact with that I had to and now can't activate my phone can anyone help? Is there another way I can get into my new phone

    There is no possible way to turn it off without having to contact the original owner. Nothing whatsoever.

    This is why you should always check if find my iPhone is not activated on a used phone.

Maybe you are looking for