Something similar to app.doScript in bridge?

I'm trying to run a script from a button on a palette. app.doScript does not work in Bridge.

To run a script...

$.evalFile (File("~/myScript.jsx"));

Tags: Bridge

Similar Questions

  • [jsx] synchronous app.doScript / callback / event?

    Hi all

    I request a node script from inDesign via app.doScript + applescript script, works like a charm. Now, I'm trying to find a way to let inDesign wait the makings of the node end and continue with the returned values:

    var response = app.doScript("tell application \"Terminal\" do script with command \"node\" script.js [...]");
    // wait for async js to finish...
    alert(response);
    

    I'm pretty new to InDesign scripting and was thinking about something like a reminder-version of doScript or event, but found nothing.

    Is this possible?

    Thank you very much!

    see you soon

    I think your solution is to use a flag system. This could be a temp file that your node js would exit when it ends. InDesign script on his side can monitor this file thanks to the inactive events appearance. Then analyze the contents of the files, and remove it later.

  • Remove the dialog box when you run the app.doscript jsxbin file

    I use InDesign CS6 and write a script loop in ExtendScript Toolkit CS6 (Extendscript ScriptUI 6.1.8 4.2.12)

    I use a file jsxbin inside a loop.  After the jsxbin file is a popup alert dialog appaers script, saying: it's done and I have to click on the ok button, before it will allow my script to continue.  I run the file app.doscript jsxbin ("[jsxbin string here]").  I tried to change the level of user interaction to never interact before running the doscript, but this had no effect.  Is it possible to run the userInteractionLevels.NEVER_INTERACT as a parameter in app.doscript?  OR, is there a way to automatically close the popup alert script when it opens.  I'm trying to avoid having to press the OK button several times that the script is running.

    I'm relatively new to scripting in InDesign.  Any advice or assistance would be greatly appreciated.

    Hi callentill1308,

    You're kind of asking for help to hack a jsxbin that isn't yours?

    Well okay, we will try to find a fair solution. First of all, there are good reasons to assume that jsxbin code itself contains instructions forcing userInteractionLevel to INTERACT_WITH_ALL. Something like:

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
    // ...
    // Process
    // ...
    alert('Done');
    

    In this case, the parameter userInteractionLevel to NEVER_INTERACT in the calling script will have no effect.

    But, if you are sure that the jsxbin script calls the alert() function, a radical way to bypass the message is to rewrite this function itself:

    // inhibits alert()
    $.global.alert = function(){ };
    
    app.doScript( "[jsxbin string here]" );
    

    @+

    Marc

  • Is there something similar to the onLoad event?


    Hi people,


    I'm building a complex tool of catalyst for the purposes of usability tests.


    Is it possible to call an interaction when loading a page/state? Something similar to the onLoad event.

    I find very frustrating catalyst for now because I can't get to respond to mouse events.


    My problem - interacts with a custom component that is nested in a custom component.


    Top-level of my application, I can use mouse events to interact with other pages/States.

    Catalyst also allows me to interact with the pages/States in my custom component.

    However, since the higher level, catalyst I cannot interact with the pages/States in a custom component nested.


    If there is an onload event for which I could call when a page/State was loaded within my custom component.

    I could use it to raise an event and interact within my custom component nested.


    Any help or advice would be much appreciated.

    Thanking you,

    Bill

    Bill, I came across the same issue. Catalyst is really a tool for the creation of a GUI for Flex applications. Even if you can get some simple apps working inability of target States in nested components limits what you can do. The goal of version 1 was not what you want to do with it.

    You really should import the project into flash builder to add advanced like this code. There you can flesh out your components and add event listening / shipping for things like onLoad etc...

  • Do you have a dv9700? or something similar to this family? concerns...

    Hello

    I have some concerns on my new laptop.  I bought this laptop about 4 months in August.  Recently, it seems to be the warm-up everwhere.  Before she would get under hot but now the fan runs continuously until I can still hear it.  The fan seems like he runs fast too.  The part that my palms are based on while I type (on either side of the touchpad) is very hot.

    You feel it as well?

    Laptops tend to be overwarm, just by the form factor, not necessarily a flaw any.  If you use the laptop on your lap, please consider making a good cooling pad (one with space underneath her and fans so that the bottom vents are fluid and not obstructed by something; dishes are not terribly effective) or use it on a cold table or something similar.

  • should my macbook norton or mcafee or something similar?

    I just got a refurbished 12-inch macbook (early 2015). should I install norton or mcafee or something similar? need computers laptops/computer apple these installed?

    Absolutely not. Norton is known to cause problems, and you do not need any antivirus or programs of 'clearing '. There is no virus in the Mac affecting wild, and these programs may not help you if you accidentally download malware. "Cleaning" programs in particular can damage and can be very difficult to uninstall.

    Your Mac is well equipped with its own measures of security under the hood: let him take care of yourself and never install anything, call telephone lines or answer somehow pop-ups or messages, text or e-mail that claims to have found a virus or any other problem or telling you your ID Apple has been locked and needs to be "verified" - without exception all these are scams.

  • GarageBand query: I have compound/atttanged a few songs ENTIRELY using loops GarageBand... can I sell it as my own original songs (without falling foul of copyright issues) via iTunes or something similar?

    Application of GarageBand: I composed/arranged some songs using ENTIRELY loops GarageBand... and then I sell it as my own original songs (without falling foul of copyright issues) via iTunes or something similar?

    Kasper Gutman wrote:

    I composed/arranged some songs COMPLETELY using GarageBand loops... I can sell them as my own original songs

    Yes:

    http://www.bulletsandbones.com/GB/GBFAQ.html#commercialrelease

    (Let the page load COMPLETELY. The link to your answer is at the top of your screen)

  • When connecting them to a secure site on Internet Explorer, it is a 'padlock' symbol so you can see it's course, is there something similar in Firefox? Thank you.

    When connecting them to a secure site on Internet Explorer, it is a 'padlock' symbol so you can see it's course, is there something similar in Firefox? Thank you.

    See this - https://support.mozilla.com/en-US/kb/Site+Identity+Button

  • Is there something similar to SnapChat for users of the iPad?

    We currently use SnapChat to send the family fun stuff between family members, but my daughter has an iPad.  Is there a picture similar morphing app for iPad users?

    You can download too original snapchat to your ipad. On the app store after a snapchat of research, tap on "iPad only" in the bar to change it to "iPhone only". It should appear and you should be able to download on your iPad.

  • My lil brother has used a fake iphone charger to charge his Iphone on my mac pro and my laptop down, someone had something similar happen? Help

    My lil brother has used a fake iphone charger to charge his Iphone on my mac pro and my cell phone shot someone had something similar happen? Help

    Try http://www.makeuseof.com/tag/reset-macs-smc-pram/

  • Something similar to groups of objects, but for the ports? (must be used on an ACL)

    Hello community!

    I'm fairly new, when it comes to firewalls, but I have some experience with routers and switches, so I'm not completely lost.

    Practically, we all know that a group object is a large bucket to throw things and then managing them as a single group, which is very useful for many reasons... so is there something similar that we can use in an ACL for the port?

    Say so, let that I want to allow the following ports:

    • 80
    • 443
    • 25
    • 30500
    • 20500
    • 8080
    • 14600
    • 21
    • 753
    • 22

    And instead of doing something like this:

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 80

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 443

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 25

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 30500

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 20500

    access-list extended dmz_access_in permit tcp host WEB host WEB-EXT eq 8080

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 14600

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 21

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 753

    dmz_access_in list extended access permit tcp host WEB host EXT - WEB eq 22

    do something like:

    dmz_access_in list extended access permit tcp host WEB host WEB-EXT eq PORT_LIST1

    Thank you!!

    PD: Excuse me if some port above are not TCP, if just one example. I just start typing all the numbers that came to my head.

    Hey Rolando,

    On a SAA, you can combine services and protocols based on the source/destination in an object-group service oriented. Your example would look like this:

     object-group service PORT_LIST1 service-object tcp destination range 21 22 service-object tcp destination eq 25 service-object tcp destination eq 80 service-object tcp destination eq 443 service-object tcp destination eq 753 service-object tcp destination eq 8080 service-object tcp-udp destination eq 14600 service-object tcp destination eq 20500 service-object tcp destination eq 30500

    You can create also integrate groups:

     object-group service WEB_PORTS service-object tcp destination eq 80 service-object tcp destination eq 443 object-group service PORT_LIST1 group-object WEB_PORTS service-object ...

    This type of group is going where the Protocol is specified in the ACL:

     access-list dmz_access_in extended permit object-group PORT_LIST1 object HOST object EXT-WEB

  • Good afternoon, widget to upload photos to my visitors to the site one interested person to load the goods on the site itself. Is there something similar to the Muse?

    Good afternoon, widget to upload photos to my visitors to the site one interested person to load the goods on the site itself. Is there something similar to the Muse?

    Hello

    In muse widget form its not possible, but you can use any third party service like jotform.com to create a custom form with the download feature and you can ship in Muse of object > insert HTML code

    Concerning

    Vivek

  • A question about how to make something similar to a Navigation bar?

    Hi guys, I'm sorry if this has been asked before, I just completely sure what I was looking for!

    Well, I think my first official for the company website that I work.  I was curious about how to make a navigation enough image size, with a little information and a link visitors could click to learn more.  I don't know what this method is called or where to start to create a!

    I was certainly not specific, but I don't speak of something similar to www.nationalgeographic.com.

    At the top of their page, they have a daily news thing, when you click the numbers, it takes you to a picture and a sentence of information and a link at the bottom left for "More".

    That's what I was looking for!

    I hope you guys can help me, thanks in advance!

    Adobe Exchange has several cool widgets that you can use.

    http://ALT-Web.com/demos/Spry-test.html

    You will need to install Adobe area to use the browser Widget ~ installed from the link below:

    http://labs.Adobe.com/technologies/widgetbrowser/

    Log-in to Adobe Exchange to enter & configuration desired widgets.

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

  • Creating a topic > menu of the sub-heading based on something similar to this...

    Hello

    I tried to get this type of service works for several days now, nothing helps. I have my parsed xml document in and I created successfully the required dynamically film clips. The issue I'm having is to get properly aligned film clips.

    The resulting structure might look like this:

    Topic1
    |
    | - subtopic1
    |
    | - subtopic2
    |
    | - subtopic3
    |
    | - subtopic4

    Topic2
    |
    | - subtopic1
    |
    | - subtopic2
    |
    | - subtopic3
    |
    | - subtopic4

    which will be created based on something similar to this function:

    function createXMLMenu(menuLength:Number):void {}
    Create dynamic menu based on
    menuLength parameter that is passed in
    know - menuLength = 2
    for (var i: Number = 0; i < menuLength; i ++) {}
    var mcMenuItem:mcMenu = new mcMenu();
    Set the position of the menu item
    mcMenuItem.x = mcMenuHolder.x;
    Here are the 1st annoying lines
    mcMenuItem.y = int (?);
    Add the menu item to the scene and Flash.DisplayList
    addChild (mcMenuItem);
    Create the submenu
    var xmlSubMenuLength:Number = 4;
    If (xmlSubMenuLength! = 0) {}
    for (var j: Number = 0; j < xmlSubMenuLength; j ++) {}
    var mcSubMenuItem:mcMenu = new mcMenu();
    var mc2Attach2:MovieClip = MovieClip (mcMenuItem);
    Add the menu item to the scene and Flash.DisplayList
    mc2Attach2.addChild (mcSubMenuItem);
    mcSubMenuItem.x = mcMenuHolder.x + 20;
    Here's the 2nd annoying line
    mcSubMenuItem.y = int (?);
    }
    }
    }
    }

    By red lines, what is the right way to create the coords y for the chapter film clips?

    I hope this makes sense. If it is not sensible, feel free to let me know and I'll try to structure my question differently.

    Thanks much for any help.

    ~ Chipleh

    :

    var topicSpace:uint = 20;

    var subtopicSpace:uint = 10;

    var nextBtnY:uint = either;

    function createXMLMenu(menuLength:Number):void {}
    Create dynamic menu based on
    menuLength parameter that is passed in
    know - menuLength = 2
    for (var i: Number = 0; i<>
    var mcMenuItem:mcMenu = new mcMenu();
    Set the position of the menu item
    mcMenuItem.x = mcMenuHolder.x;
    Here are the 1st annoying lines

    nextBtnY += topicSpace;

    mcMenuItem.y = nextBtnY;

    Add the menu item to the scene and Flash.DisplayList
    addChild (mcMenuItem);
    Create the submenu
    var xmlSubMenuLength:Number = 4;
    If (xmlSubMenuLength! = 0) {}
    for (var j: Number = 0; j<>
    var mcSubMenuItem:mcMenu = new mcMenu();
    var mc2Attach2:MovieClip = MovieClip (mcMenuItem);
    Add the menu item to the scene and Flash.DisplayList
    mc2Attach2.addChild (mcSubMenuItem);
    mcSubMenuItem.x = mcMenuHolder.x + 20;
    Here's the 2nd annoying line
    mcSubMenuItem.y = nextBtnY;

    nextBtnY += subtopicSpace;

    }
    }
    }
    }

  • How can I create an 'empty' icon in iOS 9 which may contain several applications - such as the icon of "Extras" already existing in the iOS? That is to say something similar in the folder "Applications" in Mac OS?

    Apologies in advance if this is a really stupid newbie question - I use Mac and Mac OS since 1985, but only got my first iPhone with iOS a few weeks ago so I'm still very few familiar with the iOS interface and its operation compared to Mac OS. So here's my question:

    On my iPhone 5 c running iOS 9.0.2, there is an icon on the homescreen called 'Extras' which itself is not an application but rather that essentially works like an "empty folder" (according to the old metaphor of Mac OS) where you can 'drop' several apps. When I then click on the 'Extras' icon, a window opens showing me all the applications that are contained in this file/icon "Extras."

    I really like how it works, because it simplifies "clutter of the icon" on my iPhone. But I'm frustrated that there seems to be an 'Extras' icon, and I can't find a way to create a new extra. Better yet, it would be great to be able to create several icons "empty folder" then I could rename each to my taste, each containing themes of all pooled applications (e.g. ' Radio/Music apps', ' drawing/art apps,' "maps/hiking apps," etc.).

    So: Is there a way to create additional "icons" that work similarly to the 'Extras' in iOS icon 9? Thank you.

    To create a new folder, press and hold icon til it wiggles, drag it to a different icon, a folder will be created automatically.

    You can rename the folder.

    Press the Home button again when you are finished.

    Note: The folder will disappear if drag you applications.

    You cannot create an empty folder.

Maybe you are looking for

  • Why have I not this Menu of personalized search on my firefox home page?

    This Custom Search Menu appeared on the bottom of my firefox home page, offers no method of withdrawal and it's annoying bloody! It is already only enough your new version supports no roboform and now this. I want a solution as soon as possible or I

  • parameters of the camera to shutter Basler A312fc

    Hello! I'm in a bit of trouble with changing the settings of the Basler A312fc camera shutter. The problem is that it seems that it is not possible to change the Base value of shutter time using MAX (4.5), and drivers OR, Basler own software is able

  • graphic driver Intel hd media accelerator for dv4 2103tu someone? Please send me the link

    I just formatted my dv4 2103tu after a windows crash, I reinstalled family w7 premium 32 bit.the problem is that I lost all the drivers n I'm bad need or the intel hd graphics driver GMA which was preinstalled in my lappy before that I formatted cant

  • 8600 more, why did I go HP?

    I decided to go brother HP, well after 2 hours with it, I determined the software sucks. 1. Windows 7 64 ultimate - clean PC, cannot sweep to it... He constantly fails Dr. diag and scan scan Fine, I can print.  Firewall disabled etc., zip... 2. on my

  • Windows 7 first Service Pack (SP1) release date?

    When released the first service pack for Windows version 7? This is when I will update to this version of Windows, but not before.