Interact with indesign javascript through Jtree

i can display indesign script files in tree view. what is my question is if i click the indesign javascript file i want
to execute. that means i want to interact with java swing to indesign cs3. How it is possible could anyone tell me.

Welcome to the Sun forums.
>
i can display indesign script files in tree view. what is my question is if i click the indesign javascript file i want
to execute. that means i want to interact with java swing to indesign cs3. How it is possible could anyone tell me.>About the only way you will be able to get interaction between a JTree and JavaScript is to put the JTree in a JApplet and put that applet in a web page that also references the scripts.
As far as Java/JS interaction go, look to [Real's HowTo|http://www.rgagnon.com/howto.html] (<- link) and the categories 'Java|JavaScript Interaction' & 'JavaScript|Interaction with Java'.
Testing will be a hassle, since the AppletViewer does not support Java/JS interaction and browsers cache the classes. Not that applet development is not a PITA to start with.
And a few points before closing:
- All sentences should start with a single upper case letter. This helps the reader to quickly scan text, looking for ways they can help. You would not want to make it harder for people who are trying to help, would you?
- The word 'I' should be always upper case, always.
- ..and it is JTree, not Jtree. Please be very careful with class names so we can all be sure you refer to J2SE classes, and not some 3rd part class about which we know nothing and do not support.
Edited by: AndrewThompson64 on Jul 6, 2009 9:19 PM

Similar Messages

  • Java swing tree view interact with indesign javascript

    i have java swing tree view(program).if i execute my program it will all indesign script folder files in tree view. what is my problem is if i click the script
    i want to execute. is it possible to execute indesign javascrpt from java swing UI. could anyone tell me pls.

    Sorry if I did not make this clear:
    This is not an InDesign issue but a Java issue. Search, or ask in a Java forum for best practice to deal with the mentioned platform specific mechanisms:
    - inter process communication (AppleEvent or TLB/OLE )
    - command line / shell script invokation
    - a way to launch an JSX script - the equivalent mechanism to File.execute() in Extendscript.
    For example, if I ask Google for "Java TLB", the second hit takes me to:
    http://dev.eclipse.org/newslists/news.eclipse.tools/msg09883.html
    Eventually you can reuse the DLL and jar - I haven't read that far.
    Google for Java AppleEvent:
    http://developer.apple.com/samplecode/AppleEvent_Send_and_Receive/listing2.html
    Note the 1999 copyright, this is pre-OSX. Also located in a "legacy documents" area. Apple has the bad habit to deprecate/abandon most of their technology every other year, so I would not be surprised if it does not work any more and you'd have to write you own JNI, JDirect or JNIDirect glue ( I don't even know the current buzzword). Ah, further digging unveiled that they even dropped the successor which was named "CocoaJava".
    If Mac specific, maybe post your questions to this list: http://lists.apple.com/mailman/listinfo/java-dev
    Dirk

  • Font application interactive with Indesign

    Does anyone know of a font application that works within Indesign CS3 on Snow Leopard.
    YouControlfonts was a super duper application, but went south when Snow began falling.
    I dont necessarily want to control or manage fonts like suitcase, just be able to group fonts together
    and select them from group menu. Youcontrolfonts had a pulldown menu from the upper right corner
    that allowed selection of font and the ability to group them.
    thanks

    thanks peter.
    there is a third party program called "You Control Fonts". It lets you place an icon in the top right corner, that when
    clicked on brings up all your fonts as you have them arranged in Font Book. In collection sets, Bold sets,
    any kind of set you make in Font Book,it reflects what is in the menu. It shows all your fonts, not just a select few you
    have activated. It is the most time saving software I have every used. It interacts with ID in the fact that
    you can highlight a font within the application and change it. It also lists most recently used.  A SUPER TIME SAVER.
    Unfortunately they discontinued support with "snow leopard" and now I am stuck with having to scroll through
    all my fonts within ID to find the one I need or recently used, because ID doesnt have enough sense to know
    what people need. Apple really screws their 3rd party supporter.
    But thats what I am looking for.

  • Interacting with MS Word through Java

    Hi friends,
    How to interact with a MS Word file through the java program. please send me some sample codes. Thanks in advance.....
    Regards,
    Prakash.....

    Prakashjava wrote:
    Hi friends,
    How to interact with a MS Word file through the java program. please send me some sample codes. Thanks in advance.....
    Can't be done in pure Java.

  • Problem in Interacting with Weblogic JMS through Informatica ETL server

    Hi All,
    We are trying to configure Informatica PowerCenter server to interact with JMS queues created on Weblogic 11gR1 server. We have copied the necessary
    jar file - wlfullclient.jar to the classpath of the Informatica server.
    Now when i try to read contents of a JMS queue created on Weblogic server through Informatica, i get this error:-
    Failed to get the Queue Connection Factory [weblogic.jms.common.DestinationImpl]. Reason: Failed to look up object [While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'. Resolved 'weblogic.jms'Exception Stack: javax.naming.NameNotFoundException: While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'. Resolved 'weblogic.jms' [Root exception is javax.naming.NameNotFoundException: While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'. Resolved 'weblogic.jms']; remaining name 'common/DestinationImpl'
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:464)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:272)
         at weblogic.jndi.internal.ServerNamingNode_1211_WLStub.lookup(Unknown Source)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:418)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:406)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.informatica.powerconnect.jms.server.common.JNDIConnection.getJNDIObject(JNDIConnection.java:84)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection$PlginJMSQueueConnection.createConnection(PlginJMSConnection.java:363)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection.<init>(PlginJMSConnection.java:90)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection$PlginJMSQueueConnection.<init>(PlginJMSConnection.java:352)
         at com.informatica.powerconnect.jms.server.common.PlginJMSConnection.create(PlginJMSConnection.java:115)
         at com.informatica.powerconnect.jms.server.reader.JMSReaderSQDriver.createPartitionDriver(JMSReaderSQDriver.java:557)
    Caused by: javax.naming.NameNotFoundException: While trying to lookup 'weblogic.jms.common.DestinationImpl' didn't find subcontext 'common'
    I have checked that this class file exists in the above said location :- "weblogic/jms/common/DestinationImpl.class" within the wlfullclient.jar but still the
    code is not able to access the class. Similar error came initially while doing JNDI connection using "weblogic.jndi.WLInitialContextFactory" class but it vanished,
    when i explicitly named the jar file on classpth, instead of just the folder containing the jar file.
    To all the users/experts/moderators of Weblogic - Could you please help me understand why Weblogic is not able to look up subcontext 'common'
    for the class - "weblogic.jms.common.DestinationImpl" ??
    Thanks & Regards
    Raj
    Edited by: user8931188 on May 17, 2012 7:39 AM

    You are experiencing a NameNotFoundException, not ClassNotFoundException so it seems there is something wrong about the client connection code or WebLogic config.
    Can you share your client connection connection config/code?

  • Interacting with InDesign Server without SOAP

    Hi,
    The documentation in IDS SDK tells that one can interact using Javascript with IDS without using SOAP.
    How can one interact using Javascript and without SOAP?
    I know that with Extendscript one can write scripts and execute it directly.
    But with a simple jsx file only how do I interact with server?

    Hi,
    On Windows you can start the InDesignServer via the console. Then start the Extendscript Toolkit and choose "InDesignServer".

  • Is there any other way to view and interact with notes except through Mail?

    Using the iPad I really like using notes as a stand-alone app. Is there a way to do this in OSX or can I only access my notes through Mail?
    If only through mail, can they live someplace other than my inbox?
    Thanks

    To not have them in your inbox, go to Mail Preferences ->Accounts->Mailbox Behaviours then uncheck the box that says 'show notes in inbox'.
    There are other 3rd programs that can manage your notes, but Mail is the only native OSX app that does that.
    Message was edited by: bman99

  • Can oracle database interact with sysbase database in real-time?

    There are two database,one is oracle,one is sysbase,sysbase is produce database.My program only can visit oracle database,and can't directly visit sysbase database.My question is whether there is a directly link from oracle database to sysbase database,when I visit oracle,oracle database can interact with sysbase database through this link real time? How to realize above function? Please give plan for it.
    Thanks in advance!
    Best regards,
    Edward

    Yes there is. You have to create heterogeneous connection between these two databases
    Take a look at below links:
    http://www.dba-oracle.com/t_heterogeneous_database_connections_sql_server.htm
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:13401716754850
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96571/repmultdemo.htm

  • Is there a VI availible that will allow one to interact with an analog signal

    Hello all,
     I am new to the sight and look forward to participating. I have a project that I’m working on and I would like to ask for your thoughts and direction if you’re willing. I have a few weeks left before completing an electronics program degree and Labview is one of the classes. The project I have chosen is to illustrate the differences between a micro controlled system and Labview controlled environment. I will be  acquiring a signal through a ultra sonic distance sensor. The analog signal will be produced after which  acquired  through a SCB – 68 connector block and converted using the pci-mio-16E. The sensor operates at 40 kHz emitting a 5v pulse (burst) then falling to gnd for a short period followed by a 5v rise and staying high for a period of time waiting for the return of the frequency. This time period represents 3 inches to 27 ft in distance.  I would like to interact with this signal through the distance period (portion) and output a string displaying a numeric value of the distance on the front panel obtained from an array built from different periods of the signal.  I am not clear on what Labview function offers this type of control.  I am hopeful in utilizing a vi or some type of trigger that allows me to build an array produced by some math functions.  Any help would be appreciated.
    Thank you, dhitch

    First thank you for your response, I will have an opportunity to make a capture tomorrow in class.  I believe I have run across the waveform measurement VI in my searches and am sure it’s a very good choice. The trigger VI you suggest, going by the name, should be my ticket. Would you imagine a delay or decreasing time after the capture, allowing the trigger VI time to respond to an output configuration be required?
    If I remember correctly the sampling rate capabilities are 500K samples/ second with 12 bits of resolution and as I say that it seems some of the capabilities rely on the processing speed of the computer. I guess I will kick the tires tomorrow hey.  There are 2 class periods remaining to finish our projects @ 2 hrs / class and my anxiety is a bit high. Wish me luck and thank you so much.
    dhitch

  • Control the / interact with Report Viewer via Javascript

    Hi
    i have some questions about client control of the report viewer. I would want to use some custom buttons in order to use the report viewer functionalities, as an example to print, or to known when a customer leaf through the report pages saving something in a javascript variable.
    Is it possible to interact with the report viewer? There is a reference text?
    Thanks

    I've never done it with JavaScript, but you could use the built in events to keep track of some information about report navigation. Some of the available events are below.
    CrystalReportViewer Events
    Description
    CrystalReportViewerBase.AfterRender Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the report rendering process is finished.
    CrystalReportViewerBase.AfterRenderContent Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the report content rendering process is finished.
    CrystalReportViewerBase.AfterRenderObject Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the report object rendering process is finished.
    CrystalReportViewerBase.BeforeRender Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the report rendering process starts.
    CrystalReportViewerBase.BeforeRenderContent Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the report content rendering process starts.
    CrystalReportViewerBase.BeforeRenderObject Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the report object rendering process starts.
    CrystalReportViewer.Drill Event
    Event fires when a report is drilled down on.
    CrystalReportViewer.DrillDownSubreport Event
    Event fires when the user drills down on a subreport.
    CrystalReportViewerBase.Error Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the report object throws an exception.
    CrystalReportViewer.Navigate Event
    Event fires when the user navigates through a report.
    CrystalReportViewerBase.OnRenderScript Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the HTML script generation starts.
    CrystalReportViewerBase.OnRenderStyle Event
    (Inherited from CrystalReportViewerBase Class.) Event fires when the HTML style class generation starts.
    CrystalReportViewerBase.ReportPartBookmarkNavigation Event
    (Inherited from CrystalReportViewerBase Class.) Event fires after navigation to a report part in the same report or another report is finished.
    CrystalReportViewer.ReportRefresh Event
    Event fires when the data in the report is refreshed.
    CrystalReportViewer.Search Event
    Event fires when text is searched for in the report.
    CrystalReportViewer.ViewZoom Event
    Event fires when zoom level of the viewer changes.
    CrystalReportViewerBase Events
    Description
    CrystalReportViewerBase.AfterRender Event
    Event fires when the report rendering process is finished.
    CrystalReportViewerBase.AfterRenderContent Event
    Event fires when the report content rendering process is finished.
    CrystalReportViewerBase.AfterRenderObject Event
    Event fires when the report object rendering process is finished.
    CrystalReportViewerBase.BeforeRender Event
    Event fires when the report rendering process starts.
    CrystalReportViewerBase.BeforeRenderContent Event
    Event fires when the report content rendering process starts.
    CrystalReportViewerBase.BeforeRenderObject Event
    Event fires when the report object rendering process starts.
    CrystalReportViewerBase.Error Event
    Event fires when the report object throws an exception.
    CrystalReportViewerBase.OnRenderScript Event
    Event fires when the HTML script generation starts.
    CrystalReportViewerBase.OnRenderStyle Event
    Event fires when the HTML style class generation starts.
    CrystalReportViewerBase.ReportPartBookmarkNavigation Event
    Event fires after navigation to a report part in the same report or another report is finished.

  • HT4907 I am able to connect to my Mac Mini on Back to My Mac through iCloud but the keyboard/trackpad on the MBAir or MBP with which I access does not register on the Mini.  So I can see the screen but cannot interact with it. Mini works accessing MBP/Air

    I am able to connect to my Mac Mini on Back to My Mac through iCloud but the keyboard/trackpad on the MBAir or MBP with which I access does not register on the Mini.  So I can see the screen but cannot interact with it. Mini works accessing MBP/Air and I can use Mini to input data or interact with screens of those computers.

    Regarding your first question about bookmarks, I think you discovered the answer in when you pressed the address bar. The second tab there has your bookmarks.
    As for the keyboard, I'm not sure why your Firefox is reacting so slowly; mine seems to show keyboards even when I don't want them. If you have accumulated a lot of history, perhaps that's an issue?
    Did you use any third party software to move your Firefox data from internal memory to the storage card?

  • I am having problems interacting with Microsoft Office programs since the last update:cannot create a pdf through the 'print' menu in exel and both Word and Exel docs sent in Mac Mail end up being received as .dat files.

    I am having problems interacting with Microsoft Office programs since the last update:cannot create a pdf through the 'print' menu in exel and both Word and Exel docs sent in Mac Mail end up being received as .dat files.
    Both these situations have cropped up on my MacBook Pro since the last update.
    Thanks for your help.
    Cheers
    Bob

    The 'Winmail.dat' problem has been extensively covered in these forums, I would search for that (a Google search works well) and unfortunately I have not seen the pdf print problem before, but assuming the software is current and functions normally (other than the pdf print problem) I have no suggestion other than the obvious (but time consuming) re-installation of Office.
    I wish I had more

  • How to place a word document in a TextFrame with InDesign CS2 scripting (JavaScript)?

    I´m newbie with InDesign CS2 Scripting (JavaScript). I need some help to understand the way to place a Word document in an indesign template, using JavaScript(.jsx).
    Thank you for the help,
    Peter

    //PlaceTextFileInFrame.jsx
    //An InDesign CS3 JavaScript
    //Places a text file in a text frame.
    var myDocument = app.documents.add();
    //Set the measurement units to points.
    myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;
    myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;
    //Create a text frame.
    var myTextFrame = myDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myDocument, myDocument.pages.item(0))});
    //Place a text file in the text frame.
    //Parameters for TextFrame.place():
    //File as File object,
    //[ShowingOptions as Boolean = False]
    //You'll have to fill in your own file path.
    myTextFrame.place(File("/c/test.txt"));
    function myGetBounds(myDocument, myPage){
    var myPageWidth = myDocument.documentPreferences.pageWidth;
    var myPageHeight = myDocument.documentPreferences.pageHeight
    if(myPage.side == PageSideOptions.leftHand){
    var myX2 = myPage.marginPreferences.left;
    var myX1 = myPage.marginPreferences.right;
    else{
    var myX1 = myPage.marginPreferences.left;
    var myX2 = myPage.marginPreferences.right;
    var myY1 = myPage.marginPreferences.top;
    var myX2 = myPageWidth - myX2;
    var myY2 = myPageHeight - myPage.marginPreferences.bottom;
    return [myY1, myX1, myY2, myX2];

  • Do you prefer to interact with Verizon through our Self Service tools or our centers?

    Our research shows that customers appreciate the flexibility and access that our self service tools provicde and as such they often prefer to interact with us through our various self service tools
    How about you? 

    It depends on the task at hand. For repairs or troubles I often times will use the call centers or other means of communicating to perform a task. Otherwise, actions such as monifying account settings I tend to do online. More convenient that way.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Anyone know how InDesign (or other CS4 software can interact with a Mainframe computer?

    We print a lot of form letters, tax forms etc off of our main frame. Sometimes in large quantities.
    Currently we are using a prgram called Elixir Design Pro tools to get the jobs done via the maineframe.
    Is there any way that we can somehow incorporate InDesign to get forms printed without having to hassle around with this program? (Think giant mial merge off data stings on a main frame.
    In the book, the background information on the program states:
    The print process begins with the submission of a JCL (Job Control Language) statement. This JCL statement includes the instructions to start the job, along with the primary resources the job needs. These resources might typically include the data source, the PageDef and the Form Def.
    These pieces are used by the PSF (Print Service FAcility,) a printer driver that resides in the host. PSF finds and retrieves all necesary resources, then has a two-way conversation with the printer using IPDS (Omtellegent Print Data Stream). IPDS is the language used for PSF and the printer to communicate with each other.
    In addition to the Elixer fomrats, Visual PPFA allows the use of various overlay, fonts and images formats for your document desing.
    Extensions on these include:
    DOCUMENTS:obj; .src; .pfa; .dbf; efd; epd;
    OVERLAYS: ove; ovt; 01; ogl; efr; elx;
    FONTS: Several AFP and Adobe Type Manager Fonts, True type fonts
    IMAGES; AFP; bitmap; Elixer Legacy(.LP3; JPEG; JPG; PC Paintbrush . pcx; Portab;e netwrok .png; and tif
    Anyone know more about this that I am ever goign to?  We print large volume and are tyring (I beleive ) to get this to somehow print on something similar to a Docutech (maybe???) Thank you. I will realy any info (i'm sure there will be questions asked of me) to our head IT guru.

    Where does the need for your mainframe come in to play then? If your goal is the use InDesign and not use the Elixir solution that you've already got and you want variable data printing you're going to look into something such as an XMPie or similar sort of VDP package. As is with your solution (of if you are using the lighter version of Elixir) you can put InDesign in and assign whatever dynamic goodness you want and spit out what you need.
    If you've already got an expensive and supported solution that works on your mainframe and in your system I just don't see the sense in finding another expensive solution. You could maybe get it done with InDesign server or via a VDP solution, but why? What do you gain with it? Elegance maybe?
    It sounds like something that is $10,000–50,000 deep as is with the combination of hardware and software that you have. Why would you want to dump another $20,000 minimum to get another solution that doesn't bring anything to the table?
    InDesign server is for lightweight servers, not the big iron and will only run on Windows or Mac OS X, not on AIX or any of the big blade solutions as far as I know.

Maybe you are looking for