Script runs differently from ESTK and Scripts panel

Recently I was reported about a problem with one of my scripts, that packages ID documents: a guy wrote me that when he runs it from ESTK, script works fine, but when run from Scripts panel — creates empty folders, does nothing more but generates an error (there's an error handler in the script that logs errors into a text file):
Error: Invalid value for parameter 'versionComments' of event 'packageForPrint'. Expected String, but received TRUE.
It's strange, because I don't use this optional parameter in the script.
BTW, on my computers it works ok, both in ID and ESTK.
Does anybody encountered this problem? Any ideas on why this happens?
Kasyan

He probably has his scriptPreferences version set to 5. To make your script foolproof, you should probably set the scriptPreferences yourself (and restore them when you are don to be nice...)
BTW, kAppVersion = parseFloat(app.version) is a more readable form for getting the version number...
Harbs

Similar Messages

  • (CS3 JS) script runs differently from Scripts Panel vs. ESTK2

    First things first: INDD CS3 / Javascript
    I have a strange thing happening and am wondering if y'all have run into this as well. I have a fairly simple script (primarily just find/change queries). It works like a charm when running it from ESTK2; however, when running it from the scripts panel within INDD, it skips two of the find/change queries inexplicably. 90% of the script works the same, but there are two sections of the script that seem to just not fire.
    And yes, I have made double-sure that I am running the same script and that the one I am running from ESTK2 and from INDD are the exact same, saved versions.
    Is there a fundamental difference between running from the scripts panel and firing from ESTK2? I ran both on the same template, then undid each step-by-step, and it appears that both times the script ran the queries in the same order; however, when it hit a certain spot in the script, one version (the one fired from ESTK2) shows where the text was deleted, and the other looks like it did nothing.
    Is this something that any of you have run across as well? If necessary, I can post the code; however, I figured at this point, I would just ask the general theoretical question of why there might be a difference.
    Thanks!
    Matt Hollowell

    Thanks for the response Kasyan and Peter. I was beginning to feel like that lone person afflicted by some rare scripting illness. I am going to try and solve this later today. I am thinking maybe I need to target INDD with a statement or define an application specific variable or something to ensure that the script "knows" what it is supposed to be doing when run from the scripts panel. I am still confounded why it would run differently, and all I can think is that when it is run from ESTK2, it understands something inherently that needs to be specifically defined when run from the scripts panel.
    The other strange thing is that 90% of the script works as expected; it's just two specific find/change arguments that seem to get skipped.
    If I can figure out what is going on, I will post here, in case someone in the future runs across a similar problem.
    Matt

  • RE: Running Escript from a UNIX script

    Hi Doug,
    Yu can try the following within escript:
    (using execcmd to generate an escript script and include to execute the
    generated escript)
    1) startup escript from a ksh
    2) get to the installedPartition level
    3) setOutFile yourOutFile
    4) showag
    5) setOutFile
    6) execcmd " yourAwkGrepScript.ksh yourOutFile "
    7) include yourGeneratedEscript
    yourAwkGrepScript.ksh analyses yourOutFile and finds
    the ActivePartition level subagent with the hex number as part of that
    subagent name
    then generates a new escript script with a fixed name yourGeneratedEscript
    I hope this idea will help you to solve your problem.
    Evert Nooijen.
    -----Original Message-----
    From: [email protected]
    [SMTP:[email protected]]
    Sent: 27 January 1999 15:25
    To: [email protected]
    Subject: Running Escript from a UNIX script
    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to get
    to the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I
    need to find the subagent for the installed partition & pass that name to
    the findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Escript is pretty dumb, in that it doesn't have any
    looping or conditional expressions itself. I drive
    escript from a korn shell script also.
    Basically, I make two passes when doing things with
    escript in cases like this. One pass I send the
    commands to get the necessary info out of escript,
    and redirect to a file.
    Second pass, I awk/grep/whatever the info out of
    the temporary file and use it to build another
    set of escript commands to do the real work.
    [email protected]
    Unix Systems Administrator
    Sentai Advanced Research Corp.
    (780)423-3113 ext 42
    -----Original Message-----
    From: [email protected]
    <[email protected]>
    To: [email protected] <[email protected]>
    Date: Wednesday, January 27, 1999 8:35 AM
    Subject: Running Escript from a UNIX script
    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to getto
    the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I need
    to find the subagent for the installed partition & pass that name to the
    findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Running Escript from a UNIX script

    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to get to
    the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I need
    to find the subagent for the installed partition & pass that name to the
    findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>

    Escript is pretty dumb, in that it doesn't have any
    looping or conditional expressions itself. I drive
    escript from a korn shell script also.
    Basically, I make two passes when doing things with
    escript in cases like this. One pass I send the
    commands to get the necessary info out of escript,
    and redirect to a file.
    Second pass, I awk/grep/whatever the info out of
    the temporary file and use it to build another
    set of escript commands to do the real work.
    [email protected]
    Unix Systems Administrator
    Sentai Advanced Research Corp.
    (780)423-3113 ext 42
    -----Original Message-----
    From: [email protected]
    <[email protected]>
    To: [email protected] <[email protected]>
    Date: Wednesday, January 27, 1999 8:35 AM
    Subject: Running Escript from a UNIX script
    I'm running a Korn Shell script that uses Escript to navigate down through
    an applications sub agents to get to the LoadBalancingRouter agent. Now I
    also need to get to the CommMgr agent in the same fashion. The problem I'm
    having is that once I get to the InstalledPartition level , I need to getto
    the ActivePartition level which requires the hex number as part of the
    subagent name. I've figured out a way to get the subagent name using awk &
    grep, but haven't been able to do it while I'm in escript. Basically I need
    to find the subagent for the installed partition & pass that name to the
    findsubagent command. Escript doesn't seem to understand grep or awk??
    Does anyone have any ideas or have you done something like this before??
    Doug Scurr
    HealthPartners
    8100 34th Avenue South
    Minneapolis, MN 55440-1309
    (612)883-7317
    [email protected] <[email protected]>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • When I test my animation it runs differently from when I drag the timline

    When I test my animation it runs differently from when I drag
    the timline.
    I have a mask with text under it and I reveal the text from
    left to right with a rectangular mask. I then squish and then
    desquish the test. In the movie it does none of this.

    Select the text field on the stage and in the properties
    panel at the bottom of the screen you will see a small drop down
    menu which will be displaying either static, input or dynamic. Just
    change it to static OR if you NEED to use dynamic text then you
    need to embed yopur font so select the text field and select embed
    from the properties panel, then select the oprion you need from
    there.
    Hope this helps
    Thanks Alan

  • How bapi different from session and call transaction?

    how bapi different from session and call transaction?
    thanks in advance.

    For one, Batch Data Communication (BDC) is older. Business Application Programming Interface (BAPI) came later, about 10 years ago (you can see this already from the name, which contains marketese like "business" ).
    More important though, they are different technologies. With BDC you build the "batch input transaction" yourself, with an ABAP program which creates the "batch input session" ("Batch-Input-Mappe" in german). You then take that session, like an object, and "run" it on a system (most of the time, this is done on a local system by the administrators, after it has been tested for correctness).
    With BAPI, a system (local or remote) exposes its interface to you through some kind of Remote Function Call (RFC). Practically, it tells you: "What do you want to do? Insert that data into Materials Management? Here is the function and the the parameters you have to use for each record". You only work with the Interface - the exposed function. How this function works does not have to interest you. You don't have sessions to "run", you fire your function calls filled with data, one after another and you're done.
    BAPI can be run remotely. With BDC, you probably have to call the administrators of the remote system and send them the session you created for them to run. With BDC you go through the whole transaction in one BDC session, with BAPI you may need more than one "BAPI calls" to do this.
    With BAPI you don't fill obcure field names with values, you just fill the parameters. You can use a BAPI from inside your ABAP program to let a "business object" do some clearly defined work for you, then you can continue with your code doing other things. You don't do this with BDC. With BDC you write a dedicated program that creates the "session", which is then executed separately.
    Batch Data Communication (BDC) is the oldest batch interfacing technique that SAP provided since the early versions of R/3. BDC is not a
    typical integration tool, in the sense that, it can be only be used for uploading data into R/3 and so it is not bi-directional.
    BDC works on the principle of simulating user input for transactional screen, via an ABAP program. Typically the input comes in the form of a flat file. The ABAP program reads this file and formats the input data screen by screen into an internal table (BDCDATA). The transaction is then started using this internal table as the input and executed in the background.
    In Call Transaction, the transactions are triggered at the time of processing itself and so the ABAP program must do the error handling.
    It can also be used for real-time interfaces and custom error handling & logging features. Whereas in Batch Input Sessions, the ABAP
    program creates a session with all the transactional data, and this session can be viewed, scheduled and processed (using Transaction SM35) at a later time. The latter technique has a built-in error processing mechanism too.
    Batch Input (BI) programs still use the classical BDC approach but doesnt require an ABAP program to be written to format the
    BDCDATA. The user has to format the data using predefined structures and store it in a flat file. The BI program then reads this and
    invokes the transaction mentioned in the header record of the file.
    Direct Input (DI) programs work exactly similar to BI programs. But the only difference is, instead of processing screens they validate
    fields and directly load the data into tables using standard function modules. For this reason, DI programs are much faster (RMDATIND - Material Master DI program works at least 5 times faster) than the BDC counterpart and so ideally suited for loading large volume data. DI programs are
    not available for all application areas.
    Business Add-In (BADI) are a new SAP enhancement technique based on ABAP Objects.
    They can be inserted into the SAP System to accommodate user requirements too specific to be included in the standard delivery. Since specific industries often require special functions, SAP allows you to predefine these points in your software.
    As with customer exits two different views are available:
    In the definition view, an application programmer predefines exit points in a source that allow specific industry sectors, partners, and customers to attach additional software to standard SAP source code without having to modify the original object.
    In the implementation view, the users of Business Add-Ins can customize the logic they need or use a standard logic if one is available.
    In contrast to customer exits, Business Add-Ins no longer assume a two-level infrastructure (SAP and customer solutions), but instead allow for a multi-level system landscape (SAP, partner, and customer solutions, as well as country versions, industry solutions, and the like). Definitions and implementations of Business Add-Ins can be created at each level within such a system infrastructure.

  • Font differs from Linux and Windows ?

    Hi, i just want to ask, are fonts different from windows and linux in applet. I use a standard courier font.
    For example, if i make an applet with courier font texts in linux, and make the texts wrap themselves, they will run ok in linux. But if i run the compiled applet in windows, the wrapped text somewhow got truncated.
    But if i compile the applet in windows, it will look ok in linux and windows.
    I've tried replacing my courier fonts in my /usr/java/jdk/jre/lib/fonts/cour*.ttf with the cour*.ttf from c:\windows\fonts with no effects .. Applets compiled and run ok in linux doesnt work in windows. They must be compiled in windows to run ok in both.
    Why is that ?
    Does the compilation use the fonts in the jdk lib or the system fonts ?
    I'm so confused T_T
    Please Help

    How do I get Mac OS 10.4.4 and Word X for Mac to see
    all the characters in the Word for PC document
    formatted in Times New Roman?
    There's no way with Office X, which can't do Unicode Greek. You need to upgrade to Office 2004 which is Unicode-savvy and installs in your Mac the same Times New Roman with Greek, Cyrillic, Hebrew, and Arabic which is used by WinXP. An alternative might be AbiWord or NeoOffice/J.

  • We are running aperture from cs4 and it keeps freezing the computer we running it on snow lepard

    We are running aperture from cs4 and it keeps freezing the computer . we running it on snow lepard help please!

    Hello,
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.

  • I brought a new ipad mini with retina. The color saturation is too low to me, especially the purple. My wife started to complain because the color is really different from iphone and ipad. Can user adjust that?

    I brought a new ipad mini with retina. The color saturation is too low to me, especially the purple. My wife started to complain because the color is really different from inphone and ipad. Can user adjust that?

    Other than a couple of minor adjustments, such as the one that Diavonex suggested above, there is nothing that a user can do in settings to adjust color. There is no way to calibrate the color like you can do with a computer monitor.

  • ExtendScript try/catch difference when script ran from ESTK and Illustrator

    Hello,
    I've written an ExtendScript for Illustrator using the ExtendScript ToolKit (ESTK).  This scripts works really well when running it in Illustrator from the ESTK (using the target application functionality).
    However when I run it directly within Illustrator (by selecting it from the dropdown File > Scripts) I get a run time error.  Is this normal?  Should I expect differences when running the script in these two different ways?
    The error is in this function...
    ```
    function itemUsable (arr, item) {
        var usable = true;
        try {
            arr[item];
            usable = true;
        } catch(e) {
            $.global.alert(e);
            usable = false;
        return usable;
    ```
    The point of the code is to get around Illustrator's issue of throwing errors when accessing properties that don't always exist.  Ran from ESTK the try/catch statement catches the error "No such element" and then sets the function to return false.
    When ran directly from Illustrator the error message fires but the try/catch doesn't seem to stop the script from exiting.
    The only difference I can see is when running the script from ESTK the dropdown menu next to the application target dropdown is always (and has only the option) "main".  Running the script directly from Illustrator, when the error is thrown this dropdown option is set to the value "transient".
    See this screenshot for an example what I mean
    Any help would be much appreciated.
    Thanks,
    /t

    Thanks Trevor.
    So it turns out that a script executed in Illustrator from ExtendScript has a different debug mode compared to a script that is opened directly by Illustrator.  Useful to know.

  • SQL Script working differently with 8i and 9i

    Hi
    I am facing strange problem with my simple SQL script called from a shell script. It bahaves differently with ORACLE 8.1.7.4 and 9.2.0.1. The machine is same.
    sqlplus -s / @Tech.sql WKC625 11 11 '11 22' ""
    This is working with 9i but it does't work with ORACLE 8.
    Actually what happens is that the argument in single quotes (') is taken as 2 separate argument.
    The Tech.sql is :
    spool add
    insert into TECH values ('&1','&2','&3','&4','&5','');
    commit;
    quit
    I tried putting double quotes also. Is something got changes between ORACLE 8 and 9i.
    Please help
    Surendra

    Are you sure it works in 9?
    If you are using UNIX, then the O/S will strip the quotes while processing the arguments. You need to use 2 single quotes around 11 22, just as you have around the empty string at the end.
    I believe that Windows does the same, but I do not use windows.
    John

  • Calc Script runs slow one day and fast the next?

    We are on Essbase 11.1.2.1. When we run calc scripts to load our actuals and run some allocation scripts, the difference in running time for the same exact script is very different day to day. One day three hours the next 45 minutes. Our servers are just for Essbase. We are on Windows 2008 R2. Has anyone else run into this or have any idea how we could figure out the reason for this. Thanks.

    Thanks.  In that case, I would try to grab the cube statistics - especially number of upper-level and input blocks, compression ratio and fragmentation (in EAS you can only see one of the two fragmentation statistics, 'Average Clustering Ratio', not 'Average Fragmentation Quotient') before each run, just to see if they're varying wildly.  Also, if your calc scripts log summary information (is there a SET MSG command in them?  If not you could try SET MSG SUMMARY) then Essbase will write high-level statistics on how much work was done to the application log.
    You can see which cubes are loaded (and consuming memory) in the EAS treeview - if they have a check (tick) mark they are loaded.  But you can also see current activity by right-clicking on the server in the EAS treeview and selecting Edit | Sessions.   That will show whether there are other operations (loads, calcs, reports, restructures etc) occurring at the same time.
    If none of the above give any clues and this is a virtual box (or you have SAN storage) you really will need someone who understands your infrastructure to help.
    I'm assuming these are BSO cubes, by the way!

  • How to load the object library at run time from within the script.

    What i am trying to do from my library is that I wanted to load the object library file (.properties) file at run time through the script. I know that open script has a deprecated method "ft.loadObjectLibrary". Is there any other method other than the deprecated one?. Also is there a way that I can unload the library?
    Thanks,
    Sri

    Object.border.fill.color.value = "255,255,255";
    if you want to use rawValue of textfields to insert in there you will have to do
    Object.border.fill.color.value = R.rawValue + "," + G.rawValue + "," + B.rawValue

  • CS3 script runs slow with CS4 and CS5

    I have written a table transformation script for InDesign CS3, which formats an imported Excel table.
    With InDesign CS3 the script runs well. Now I tried the same script with InDesign CS4 and CS5 and it runs very slow. It's about 10 times slower than with CS3.
    I tried to turn off redrawing, but this didn't help. It even got slower again!
    Does someone has made similar experiences? Could you solve the performance issue?
    Do scripts in CS4/CS5 generally run slower than in CS3?
    Does CS4 differ so much to CS3 that the script runs 10 times slower?
    What can I do to improve the execution performance?
    Thanks for any tips / advices etc.

    I now have made some tests with profile / timing. Here are the results.
    you find the code snipped below. It iterates first over all rows and then over all cells inside of the row. In the cell iteration, the function hasGapInLineBelow(...) does more iterations.
    The example is with a table of 42 rows and 9 cells.
    I have compared CS3 and CS5
    there are 3 test cases:
    for 1/1 means: first for-loop is in iteration 1 and second for loop is in iteration 1 (statements for first row and first cell done)
    for 1/9 means: first for-loop is in iteration 1 and second for loop is in iteration 9 (statements for first row and all 9 cells of the row done)
    for 2/9 means: first for-loop is in iteration 2 and second for loop is in iteration 2 (statements for second row and all 9 cells of the row done)
    it's strange that normal variable assignments take lot of time (like the statement startPos = indexLeftNeightbourOfCurrentCell;) -> I don't understand why this can be so time consuming!?!
    it's also strange why in "for 1/9" and "for 2/9" variable assignments take much longer than in "for 1/1"...
    could I use another data type than array for the variable isMergedRow? Which one?
    do you know any performance optimizations?
    in which time unit ExtendScript Toolkit shows the measured periods?
    how are the times calculated in loops? Are these the times sumed up over all iterations or is it just the time for a single statement?

  • New in Oracle Web form 9i : How to run fmx from web and login

    oracle form 9i from web.
    I am new in oracle form 9i (web form). Before I use oracle form client 6i. Just set icon with command (D:\ora6i\BIN\ifdbg60.EXE MYFORM.FMX). The login will be prompt out and user can log in to run many oracle 6i forms from oracle menu. In Oralce form 9i designer, I can open form designer and use run form from IE.
    1. How can I depoly these form with menu to other users.
    2. How can I define the url link to public (Application Server)?
    3. SHould there is any login prompt from web usage.
    Tks.

    solved.

Maybe you are looking for

  • I want .swf in InDesign to loop

    I created a slideshow in InDesign by placing each element on a different layer and then setting the timing and effects. There is no "Loop" setting when exporting a .swf from InDesign like there is in Illustrator. When the slideshow .swf was placed in

  • Sending PDF output attachment in e-mail to external users from BSP

    Hi All, Please gothrough the below requirement details : Requirement Details: Need to achieve the functionality of sending a PDF attachment of invoice to an external e-mail address from the BSP Application. Implementation Details: The Print out Outpu

  • Web / EDI Integration

    Dear friends How are you? I am developing a high volume, mission critical Web "B2B" Application for Customer Relationship Management (CRM) on OS - WindowsNT and database - MS SQL 2000 Enterprise. Future needs include integration with EDI Systems (Gen

  • Different section margins

    Hello, I have a document with several different sections in it. I need one of the sections to have different margins than the others but it seems that it's not possible. Is there an easy way to do this? Thanks!

  • I just want to burn some data...

    All I want to do, is backup some home movies I have stored on my mac. I import them from my camera (HDD camera) with iMovie, but I want to archive the original footage. The current event is 11GB, so I can't burn it onto one DVD, and there's no easy w