Palette disappears when script is loaded

Hi,
When I run a script that brings up a palette window from ExtenScript toolkit the window behaves as I expect.
But when I load the same script from illustrator (ctrl+12) the window does not show, or is instantly closed.
What am I missing ?
Thank you!
BR,
johan

Hi,
Just out of interest why does this work ?
I assume that #target Illustrator is making the script be executed in illustrator. Feels like a safe bet. But please fill me in if you have some additional info.
I did a quick read on targetengine and from what I understand if I target the main the script will be executed in the main engine which is reset after a script is run so no persistence there. But I also read that this is the default engine, so why do I need to target it? Could I think of the engines as a type of namespace where the scripts are executed? or am I mixing concepts here?
Any info will be appreciated!
BR,
Johan

Similar Messages

  • ActiveX controls disappear when VI is loaded in a Sub-Panel with Start Modal Dialog usage

    Hi,
    I have a subpanel in a VI (VI1) in which another VI (VI2) is loaded. VI1 is used as a module for an Action step in TestStand. VI2 has ActiveX controls like ExpressionEdit and Adobe PDF reader etc. VI1 loads VI2 in a sub-panel and calls Start Modal Dialog.vi. I have set 'Show front panel when called' to true for VI1 so that the VI pops up when the sequence is run. When the sequence runs and when the Start Modal Dialog VI is called from VI1, all ActiveX controls in VI2 (loaded in the sub-panel) disappears. Here is the screenshot of the frontpanel of VI1 when the sequence is run:
    This problem occurs in TestStand 4.2.1, TestStand 2010 and TestStand 2010 SP1 (as far as I have tested. May occur in older versions too). In the attached file, VI1 is 'ExprEdit Test.vi' and VI2 is 'SubpanelLoad.vi'. The attached sequence is developed in TestStand 2010 SP1.
    How can this issue be solved?
    Thank you,
    Ganesh Kumar
    Solved!
    Go to Solution.
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏23 KB

    Hi,
    An update on this issue: I tried changing the order of loading the VI in the SubPanel and the start modal dialog. I called start modal dialog and then loaded the VI (VI2) in the SubPanel. When I ran the sequence, the activeX controls did not disappear (I was pretty sure that the ActiveX controls in VI2 would not disappear since I am calling Start Modal Dialog before loading the VI in the Subpanel). Then I just changed the sequence of operations back to the previous order (loading the Subpanel with the VI and then calling the Start Modal Dialog). When I ran the sequence, the activeX controls where still displayed. But when I ran the sequence with the VI1 backup (that I had taken before making all these modifications) the activeX controls were not displayed. I a nutshell, I now have 2 versions whose codes are the same. But when I run the sequence with action steps for these VIs, the activeX controls disappear when the unmodified backup VI runs and does not disappear when the modified VI is run. I have attached the files that I used along with the sequence file. The details are as follows:
    ExprEdit Test (Not Working).vi - The unmodified backup VI for which the ActiveX controls disappear.
    ExprEdit Test (Working).vi - The modified VIs in which the ActiveX Controls do not disappear (But same code as ExprEdit Test (Not Working).vi).
    ExpreEdit Test.seq - The sequence file containing 2 action steps one each for theabove mentioned VIs.
    SubpanelLoad.vi - The VI that contains activeX controls and is loaded in the SubPanel.
    Note that the sequence is created in TestStand 4.2.1.
    Thank you,
    Ganesh Kumar
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏36 KB

  • Layers palette disappears when I click on my project

    I looked but can't find a help reference that addresses this problem.
    The layers palette disappears everytime I click on my project. I want it to stay visible, without having to click F7, or go to Windows...Layers every time! How do I tell it to stay visible? It used to, and now it doesn't.
    Thank you!
    Rebecca

    I just figured it out (several hours later).
    I had to drag the tab off the palette and onto the desktop and there it is!!
    Sorry for the bother. Thanks for the ideas, though.
    Rebecca

  • Liquify Cursor disappears when Saving and Loading Mesh (CC 2014.2.2)

    Hello.
    I'm using Photoshop CC 2014.2.2 for Mac on a perfectly built hackintosh (Yosemite, i7-4770K, GTX770, Intuos5 L, 32Gb RAM, 2 monitors).
    The arrow cursor disappears randomly when dragged over the Save Mesh or Load Mesh dialogues. It's not that the arrow cursor disappears completely. Actually, instead of switching from liquify cursor to arrow cursor as it should, it stays a circle and I can see it behind the save/load mesh window. In order to make the arrow appear in front of the save/load mesh, I have to move it out of it, and carefully move it back in. If I drag the save/load mesh window to an area of the screen clear of the liquify filter window or to my second screen, the problem goes away.
    Also, when liquifying, the cursor is a little laggy, like at a low frame rate and behind my pen. I can liquify with no problem, but I can't remember if this is the way the liquify cursor behaves now that the it is GPU accelerated.
    All these problems go away if I disable "use graphics processor", but that's a no go for me. I have tried both OS X Default Graphic Driver and NVIDIA Web Driver, but it makes no difference.
    Any ideas?
    THANKS!

    I've noticed it happens particularly when the arrow touches any of the text input fields, among other ways I haven't identified yet. The save mesh and load mesh are the only dialogs across Photoshop on which this problem happens.
    Notice that the blue cursor drawn by me is where the cursor should be, and note that the liquify cursor can be seen behind the open mesh dialogue. In this case I have to draw the cursor outside of the open window, and drag it back in making sure I don't touch the search field.

  • Persons disappear when Scripting the Address Book

    If I modify the note of an Address Book entry via AppleScript, search no more finds this person.
    This is how it goes:
    Put following script in ~/Library/Address Book Plug-Ins/
    using terms from application "Address Book"
    on action property
    return "phone"
    end action property
    on should enable action for thePerson with theEntry
    return true
    end should enable action
    on action title for thePerson with theEntry
    return "Test"
    end action title
    on perform action for thePerson with theEntry
    copy the note of thePerson to aNote
    set aNote to aNote & return & "Foo"
    set the note of thePerson to aNote
    end perform action
    end using terms from
    In AB make person Test Person, with mobile phone number and some text in note field.
    Click the "mobile" tag, and choose action Test. "Foo" will appear as the last line of the note.
    Click some other contact. Quit Address Book, and open it again.
    Search field cannot locate Test Person any more!
    The person still is in Address Book in its correct alpahbetic position.
    The fix to the problem is to quit the Address Book and delete the file ~/Library/Application Support/AddressBook/AddressBook-v22.

    Place the list in an address field, click the TO and change it to BCC.
    If you do not have the Contact Sidebar turned on in the Write window press F9 to turn it on. Then select the contacts or list for the mail and use the Add to BCC button.

  • After last OS Update, CS3 Palettes disappear

    After the last OS update that we ran at work all of our palettes disappear when you leave a CS3 program and then come back to it. It seems to mostly happen when you go to a different "space" and then come back. You have to go in and reset all of your palettes. It happened to 5 other people in my office. Any clues to how we can fix this?

    This is DEFINITELY a pain, especially if the last tool you were using is the Text tool. In this case, you cannot just hit the Tab button a couple of times to make the palettes visible again.
    The Space concept is a very cool one. However, if you have to struggle to get your application tool palettes back every time you change Spaces, it defeats the purpose of quickly moving among application groups in each Space.
    Someone PLEASE let us know if there is a way to prevent palettes from hiding when using Spaces.

  • Have new iMac with iPhoto sharing turned on. When the shared library is clicked the library disappears or starts to load then disappears? What is wrong?

    Have new iMac with iPhoto sharing turned on. When the shared library is clicked the library disappears or starts to load then disappears? What is wrong?

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If it doesn't then your current library is damaged and needs repair.
    Therefore  make a temporary, backup copy (select the library and type Command+D) and  apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #1, followed by #3 and then #4 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    If you experience the same problem with the test library then try this basic fix a try:  make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    NOTE 2:  In Lion and Mountain Lion the Library folder is now invisible. To make it permanently visible enter the following in the Terminal application window: chflags nohidden ~/Library and hit the Enter button - 10.7: Un-hide the User Library folder.
    If that fails a reinstall of iPhoto is indicated. To do so you'll have to delete the current application and all files with "iPhoto" in the file name with either a .PKG or .BOM extension that reside in the HD/Library/Receipts folder and from the /var/db/receipts/  folder,
    Click to view full size
    Then install iPhoto from the source it came on originally.
    OT

  • Photos disappear when downloading as stack

    Hello! I have a series of photos of stars and am trying to import them as stacks into photoshop, I go to scripts and load files as stacks. All my photos are in there, now I click ok, they start loading in the layers menu, then it looks like they have load and they disappear! There is nothing on the page, it is completley blank. I am trying to make a star trails photo by stacking the photos, unless there is a better way to do this in lightroom. I do not like to use the start trails applications or anything like that.

    You need to blend all the layers. Try this with your stack loaded. target the top layer hold down the shift key and target the layer just above the bottom layer.  That should target all layers but the bottom layer. next in the layers palette use the blending mode pull-down menu and click on lighted. All the stars should lighten up and show through.  Stack mode blending offers better control.
    Without blending the top layer covers all the other layers its like having a single exposure.

  • Compiling jsx to jsxbin, Palette disappears while running

    Hi,everyone
    My ID version is CS5,I have added  # targetengine "session";
    I compile jsx to jsxbin, but palette disappears while running.
    Everybody can tell me the reason?
    thanks.
    best regards
    goldbridge

    HI,
    Are you using "activescript" in your jsxbin code?
    Are you running the script from ESTK?
    If so, Yes this error message will pop up...
    After google it, I found a workaround given by "Dave_Saunders".
    function getScriptFile() {
      // This function returns the file of the active script, even when running ESTK
      try {
        return app.activeScript;
      } catch(e) {
        return File(e.fileName);
    You can try it. I hope this will solve the issue.
    Green4ever

  • Bookmarks toolbar Firefox 10.0.2/OSX 10.6.8 - gone. View Toolbars Bookmarks Toolbar - checked. Dragging URL's to bookmarks toolbar area no longer works. Gray area appears/disappears when checked/unchecked but will not show any or accept new bookmarks.

    My bookmarks toolbar in Firefox 10.0.2 Mac OSX 10.6.8 suddenly disappeared. View>Toolbars>Bookmarks Toolbar is checked. Dragging URL's to the bookmarks toolbar area no longer works. The gray area appears and disappears when checking/unchecking under View/Toolbars menu, but will not show any or accept addition of bookmarks.

    Make sure that toolbars like the "Navigation Toolbar" and the "Bookmarks Toolbar" are visible: "View > Toolbars"
    *Open the Customize window via "View > Toolbars > Customize"
    *Check that the "Bookmarks Toolbar items" is on the Bookmarks Toolbar
    *If the "Bookmarks Toolbar items" is not on the Bookmarks Toolbar then drag it back from the toolbar palette in the customize window to the Bookmarks Toolbar
    *If missing items are in the toolbar palette then drag them back from the Customize window on the toolbar
    *If you do not see an item on a toolbar and in the toolbar palette then click the "Restore Default Set" button to restore the default toolbar set up
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Static NAT entry disappears when using NVI on Cisco 1921 (Multiple versions)

    We have a Cisco 1921 as an IPSec tunnel endpoint where we assign static NAT entries. It is a static one-to-one NAT putting each remote endpoint as a local /24 subnet. We are using NVI and we see some of these static entries disappear when packets are unable to reach the destination. 
    The production router is running 15.0(1r)M16 but we were able to reproduce this same behavior on 15.4(1)T2.
    To reproduce, we add the static NVI entry:
    ip nat source static X.X.X.X 172.30.250.11
    And things look good for a bit:
    ROUTER# sh ip nat nvi trans | i 172.30.250.11
    gre 172.30.250.11:0 X.X.X>X:0 Y.Y.Y.Y:0 Y.Y.Y.Y:0
    --- 172.30.250.11 138.54.32.9 --- ---
    tcp Y.Y.Y.Y:60360 Z.Z.Z.Z:60360 172.30.250.11:22 X.X.X.X:22
    There is a known issue with GRE traffic being dropped at this particular endpoint, so after generating GRE traffic, the entry completely disappears:
    ROUTER# sh run | i 172.30.250.11
    ROUTER#
    ROUTER# sh ip nat nvi trans | i 172.30.250.11
    gre 172.30.250.11:0 X.X.X>X:0 Y.Y.Y.Y:0 Y.Y.Y.Y:0
    icmp Y.Y.Y.Y:59916 Z.Z.Z.Z:59916 172.30.250.11:59916 172.30.250.11:59916
    tcp Y.Y.Y.Y:60360 Z.Z.Z.Z:60360 172.30.250.11:22 X.X.X.X:22
    I can reproduce this by severing the tunnel to any other remote site, and after generating GRE traffic to the downed endpoint, the corresponding static NAT entry will disappear.
    Debugging has not shown anything, and I have found some mentions of similar behavior on older versions. Has anyone seen this? We don't have support access to test all versions, so if it is known to be resolved in a particular one, we would love to know to work towards loading that version.
    Thanks

    Hi Ryan,
    Asa cannot ahve 2 default routes, it can only have one. ASA also doesnt support PBR, so the setup that you are trying to configure would not work on the ASA. Router is the correct option for it.
    Hope that helps.
    Thanks,
    Varun Rao
    Security Team,
    Cisco TAC

  • Is there a way to have type in a text field that would disappear when you filled in the field?

    I'm trying to create a form in Acrobat X that has instructions in the text field (like account number) for instance...that would disappear when the customer starts to fill in their number or information? I've seen examples of this but cannot figure out how to make it work.

    You can use a custom Format script like:
    if (!event.value) event.value = "Instructional text goes here";

  • Scripting to load all pdfs in a month into the place command?

    Hello, I was wondering if anyone knows of a script that allows for you to place all pdfs within a set date range from a folder into an InDesign document? I am looking to do my monthly report and each month I have to go out and get each one, would be nice to load the place tool with all the pdfs I have done with a set date range and then just place them accordingly. Is there something out there like this and/or am I missing something obvious?
    Thanks!
    B

    IM Sorry tomaxxi, am I suppose to be inputting something somewhere here in
    regard to the dates? I would need an example like for lets say the month of
    Nov. I try to paste this and save it in the script editor but it keep
    saying that the file cannot be saved. Any ideas? Please bear in mind your
    speaking to a guy who has like zero knowledge when it comes to scripts.
    Best regards,
    Robert
                                                                                    From:       tomaxxi <[email protected]>                                                                               
    To:         Robert Borchardt <[email protected]>                                                                               
    Date:       11/08/2010 03:29 PM                                                                               
    Subject:    Scripting to load all pdfs in a month into the place command?                                                                               
    Sorry for delay...
    I just tested script and it's working fine for me here.
    I created 4 sample PDF-s with just one page, then started script,
    selected exported PDF-s, script sorts them by creation date and loads
    placegun.
    So, all you need to do, is to start script and select documents you want to
    place.
    I changed script little, so make sure you use this one:
    if(app.documents.length != 0){
        var myFiles = File.openDialog("Select Files:", "*.pdf", true);
        if(myFiles != null){
            myFiles.sort(function ( a, b )
                    if ( a.created < b.created )
                        return -1;
                    if ( a.created > b.created )
                        return 1;
                    return 0;
            app.activeDocument.place(myFiles);
        }else{
            alert("No files selected!");
    }else{
        alert("No documents opened!");
    tomaxxi
    http://indisnip.wordpress.com/

  • How to use the Observer when a page loads

    Anybody know how to use the
    Spry.Utils.addClassName('DivName','selected') and then fire the
    Spry.Utils.addClassName with onLoad?
    I am loading a page with the selector utils in it into a div
    and then I think I must need an Observer to get the
    Spry.Utils.addClassName to work when this page loads in a div.
    Any help would be greatly appreciated.
    Thank you,
    Bisser.

    I added Spry.Utils.addClassName('DivName','selected') in the
    Script after the constructor and after the effects and it works
    fine. Thank you for your help to get me going.
    Well after the fact, this solution was a problem because it
    loads the selector each time I loaded the file.
    kinblas had the correct answer that I was looking for.... as
    it loads the selector as a 3rd argument.
    ie:
    Spry.Utils.updateContent('mainDIV','/menu.php', function() {
    Spry.Utils.addClassName('DivName','selected'); });
    Thanks to both of you for your continued support.
    Bisser.

  • Background Image Disappear When Refreshing

    Hi,
    Recently, I encounter a problem for building my application. I define my own background for my application in formsweb.cfg. The background load the first time I access the page, but it disappears when I press refresh button. So, can anyone tell me why and how can I going to fix it? Thank you.
    Ramon

    Ramon,
    you don't specify a Forms version number, which makes it harder for us to help. It could be a problem in a Forms version that may be fixed in a subsequent patch. Without Forms release numer however, I cant tell. I suggest you contact customer support at metalink.oracle.com
    Frank

Maybe you are looking for

  • Can you help me explain this crash log?

    My system just crashed, but I don't understand why. Here is the log from the event viewer. What can you tell me about this? Log Name:      System Source:        Microsoft-Windows-Kernel-Power Date:          2/6/2014 3:38:39 PM Event ID:      41 Task

  • Sky Go & iOS 8.3 Crashing

    If you are experiencing this issue we'd really appreciate it if you could supply the following information to help us with our investigations. -          Where, when, how and what occurs? -          How often does it occur? -          Which device ar

  • Listener response to a TNS ping is 200 msecs

    I am getting this aletr in Ent. mgr Listener response to a TNS ping is 200 msecs What is this and how to bring it down Chaand Kackria

  • How Do i Delete This Output

    hey guys i have recently installed this neilsons software i am quite a new user but heres the link to the video is this is resolved i will be very happy and thank you for taking your time to read this   https://www.youtube.com/watch?v=9pUlX4i4AHs&fea

  • My Firefox won't quit and gives a "not responding" message after I use Google Mail. I have tried starting in "safe" mode and the problem still occurs.

    I have an issue where Firefox wont' quit and gives a "not responding" message after I have been using Google Mail. It works fine when I am not using that program. I have tried Safe Mode and the problem still happens when I go to Google Mail, so it is