Wrong start directory when launching sh script from Dolphin

When I try to launch a small sh script from Dolphin, the start directory is ~ instead of the current directory.
I wrote the script to be able to easily launch a java app from the gui.
It's basically:
cd bin
java NAME
But since the start directory is my home directory, this obviosly doesn't work.
It does work when launching it from a terminal.
What to do?

I have run into a similar situation.. that was when Viritas was the clustermanager for 9I and we tried to install Oracle clusterware for 10g. Also the cluster was configured to user Veritas propriatory interconnect tech... LLT
Are you on a similar configuration?

Similar Messages

  • Apple TV3 doesn't start automatically when i select airplay from my iMac and Ipad 3. i have to manually turn it on then it works fine after that! what is wrong with which setting.

    Apple TV3 doesn't start automatically when I select airplay from my iMac (Yosemite) and Ipad 3( iOS 8.1.3) i have to manually turn it on then it works fine after that! what is wrong with which setting.

    You need to re install OSX. If you have the dmg file downloaded via torrentz this is how you can create a bootable external HD or Flash drive (8 GB+)
    https://discussions.apple.com/message/23957654#23957654
    Peace
    Harry

  • Error when launching promoted app from RemoteAPP

    Hi:
    We are receiving this error when launching any application from RemoteAPP, we tried promoting Calculator, Notepad, etc. and received the same error as well.
    "Personalization:
    This theme can't be applied to the desktop.
    Try clicking a different theme"
    Help!
    Thank you,
    Stangride

    If you launch the app directly from the session hosts using the same account that your using with remoteapp what are you getting? Try and RDP to the session host when you attempt it. I would also check rsop.msc to see if you have any GPO or scripts that
    are manipulating themes.

  • Mantaining closed the query structure when launching a query from "query mg

    Hi,
    Is it possible to maintain closed the query structure window when launching a query from the "Query manager" menu?
    As say, if I want to see the query syntax, I must click on the "Display query structure" symbol.
    Now the query results windows, always starts with the "query structure" opened. 
    Thanks
    Antonio

    Hi Antoni,
    Only system built-in queries allow that.  We could not control this button to hide query by default.  You may post it as a DRQ on this forum:
    /community [original link is broken]
    Thanks,
    Gordon

  • IPad2 apps have started crashing when launched

    Several of my iPad2 apps have started crashing when launched: flipboard and neflix, to be exact. I have turned off the apps, restarted and done a reset, but that has not helped.

    If it's happening on all the apps that you've downloaded from the App Store, but not the Apple built-in ones, then try downloading any free app from the store (as that appears to reset something) and then re-try them - the free app can then be deleted.
    If it's happening on all apps then try closing them all completely and then see if they work when you re-open them : from the home screen (i.e.not with any app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of each app to close them, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • Error when launching BEx analyzer from Portals

    BI Gurus...
    We are working on an initiative to migrate our user interface from SAP GUI to Enterprise Portal.
    Bex Analyzer is primary mode of reporting at this time.
    After importing the Roles into EP, I am able to execute the web queries successfully, in the BEx Wen analyzer. But, I get an error when I click on any of the excel workbooks. Our expectation was that once we click on the excel workbook name, the BEx analyzer will launch from EP. But it seems like the issue is with launching BEx Analyzer from BI Portal.
    Has anyone faced this issue before?
    Is it possible to launch BEx Analyzer from EP?
    Are their some key portal settings we have missed out on to enable launching BEx analyzer from EP?
    Please provide your thoughts/experience.
    Thanks,
    Ajay.

    Hi WernerS,
    Thanks for your response.
    The RRMXP Transaction works and it launching the BEx Analyzer as expected.
    Now, as per our research, I think there are 2 ways of launching BEx analyzer from BI Portals.
    1) Call via a URL
    You can call BEx Analyzer via the following URL: http(s)://<server:port>/sap/bc/bsp/sap/rsr_bex_launch/bexanalyzerportalwrapper.htm
    You can modify the URL to open BEx Analyzer with either a workbook, a query or a query view. You can use the following parameters to do this:
    ●      Parameter to open the workbook: ?WBID=<wb_id>
    I have tried calling via URL iView, but instead of launching the BEx Analyzer, it just throws a dialog box to "save" or "open" a file, RRMX.bex. When I try to open this file, it says "Invalid File Format".
    I tried opening the file in notepad and I see the following parameters passed.
               test
               Data=BX2,CONAJP,EN,mikoyan,17,,,250,
               9
    Any clue about what I am doing wrong?
    2) Calling via a Transaction
    You can generate BEx Analyzer in Portal Content Studio as an SAP Transaction iView.
    The iViews are of type SAP Transaction iView and have the code link com.sap.portal.app integrator.sap.Transaction.
    The most important properties are System, Transaction Code (TCODE) and ApplicationParameter.
    ●      The Transaction Code for all workbooks is RRMXP.
    ●      The ApplicationParameter property contains the value WBID=<WORKBOOK_ID>.
    I have tried this approach as well. When I open this iView, I see the RRMXP transaction in the Internet explorer, but the workbooks still does not open in the BEx Analyzer (Excel)
    Any thoughts on where am I going wrong ?
    Thanks,
    Ajay.

  • Error when launching .rdp file from RDWebAccess with RD Gateway "NtlmWebAuthException: 2" on Mac Version 8.0.8 (Build 25010)

    When launching a .rdp file that has been download from an rdwebaccess session, the following error is generated "NtlmWebAuthException: 2". I have tested this on the Mac Microsoft Remote Desktop client version  8.0.8 (Build 25010).
    The following is the use case:
    Download the .RDP file for a published app "notepad.exe", on rdwebaccess (2012R2), accessed through the gateway (2012R2) VIA the connection broker (2012R2) on a RDSH server (2012R2). NLA is enabled everywhere.
    This same setup works on Windows using the Remote Desktop Connection client.
    I found that if you edit the .rdp file and add the following line (no quotes):
    "username:s: "
    Then the user is prompted for credentials. You may also set it to be "username:s:domain\username".
    This issue here appears that the Mac client is either ignoring the "prompt for credentials on client:i:1" setting, or it is passing blank credentials... or both.
    I appreciate all the work the MS team (and iTap) have done on this product... keep up the great work.
    Example failing RDP file:
    redirectclipboard:i:1
    redirectprinters:i:1
    redirectcomports:i:0
    redirectsmartcards:i:1
    devicestoredirect:s:*
    drivestoredirect:s:*
    redirectdrives:i:1
    session bpp:i:32
    prompt for credentials on client:i:1
    span monitors:i:1
    use multimon:i:1
    remoteapplicationmode:i:1
    server port:i:3389
    allow font smoothing:i:1
    promptcredentialonce:i:1
    videoplaybackmode:i:1
    audiocapturemode:i:1
    gatewayusagemethod:i:1
    gatewayprofileusagemethod:i:1
    gatewaycredentialssource:i:0
    full address:s:RDCB.COMPANY.COM
    alternate shell:s:||Notepad
    remoteapplicationprogram:s:||Notepad
    gatewayhostname:s:rdgateway.COMPANY.com
    remoteapplicationname:s:Notepad
    remoteapplicationcmdline:s:
    workspace id:s:RDCB.COMPANY.com
    use redirection server name:i:1
    loadbalanceinfo:s:tsv://MS Terminal Services Plugin.1.Notepad
    alternate full address:s:RDCB.COMPANY.COM
    signscope:s:Full Address,Alternate Full Address,Use Redirection Server Name,Server Port,GatewayHostname,GatewayUsageMethod,GatewayProfileUsageMethod,GatewayCredentialsSource,PromptCredentialOnce,Alternate Shell,RemoteApplicationProgram,RemoteApplicationMode,RemoteApplicationName,RemoteApplicationCmdLine,RedirectDrives,RedirectPrinters,RedirectCOMPorts,RedirectSmartCards,RedirectClipboard,DevicesToRedirect,DrivesToRedirect,LoadBalanceInfo
    signature:s:ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB ABCXXX123xDummyDataHerex321XXXCAB

    Hi,
    I too have this problem but I am unsure of how you fo about adding the "username:s:domain\username"
    into the file as it is downloaded via the RD Web Access page.
    I know that I can edit the RDP file after the event and then send it to my users but I don't want the
    hassle of doing this,
    The weird thing is that ver 8.0.8 release notes say that there is a "Fix for the issues of starting remote connection from RDP files that included gateway information" 
    Anybody have any ideas?
    Thanks,
    Jaggie

  • Logon failed error when launching Web Intelligence from InfoView

    After changing the Web Intelligence preferences in BusinessObjects Enterprise XI 3.0 Java InfoView to launch the desktop or rich client option, I get a "logon failed" error message. However, when I launch Web Intelligence Rich Client from 'Start > Programs >...' directly, the same logon information is successful. The logon is set to use Enterprise authentication which is the same logon information used to launch InfoView and Web Intelligence.
    Why does the logon fail when I launch Web Intelligence from InfoView?
    Edited by: Ana on Mar 31, 2009 3:43 PM

    I deleted the report completely and rebuilt it from scratch, and also added names for the data table and data set generated within the project and finally, success!
    Jason, thanks so much for your help which got me moving on this again.

  • Javascript error when launching XFA pdf from browser

    Hi all,
    I am trying to use my XFA PDF from a browser. On my local system I have  set up a web server and am launching my PDF from there. However, I am getting a ReferenceError with regards to one of my Javascript functions.
    My PDF has dependency on a javascript file that resides in the Acrobat path as follows:
    C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts\
    When I use my PDF directly from an Acrobat instance, everything works fine. The issue comes up only when launching from server. How do I link the javascript file to my PDF?
    Edit: The user is going to be launching the PDF from the server via a web browser. In such a case where do I place the javascripts?
    Help appreciated,
    Thanks

    @George: thanks for the quick response!
    My JS code contains a readFileIntoStream which I learnt is also to be run under privileged context. (still learning the ropes here.. ).  I have been trying to incorporate the JS code directly into the PDF to get around this privileged context..  but I am unable to find a non-privileged equivalent for readFileIntoStream..
    Basically my users would be accessing the PDF from the server direct via the browser. For my testing purposes I am able to run the PDF directly from my desktop via an Acrobat instance without any hitch as the scripts are folder level like you mentioned. Is it possible for the users to be able to access the javascripts from anywhere on the server rather than directly from the PDF?  Please note, users will not be saving copies of the PDF on to their local machines (in which case we could have pushed the JS file along to their machines) . I need to ultimately run the PDF from browser.
    I hope I am clear..
    Thanks.

  • Parameters not set error, when launching jdev 9i from Unix

    Hi,
    I have downloaded the patch to install jdeveloper ( p4141787_11i_GENERIC.zip )
    and ftp'ed to Unix directory and unzipped.
    I have modified the jdev.conf to the location where SDK is installed. we are using SDK version 1.4.2.06
    I have set up the variable, JDEV_USER_HOME
    When I run the jdev.exe script from jdevbin/jdev/bin
    . jdev
    I get the below error, saying that the parameters are not set.
    Oracle9i JDeveloper
    Copyright 1997, 2003 Oracle Corporation. All Rights Reserved
    sh: JDEV_NATIVE_PATH: Parameter not set.
    sh: JDEV_VERBOSE_MODE: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_NATIVE_PATH: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_CLASSPATH: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JDEV_APP_OPTS: Parameter not set.
    sh: JDEV_VERBOSE_MODE: Parameter not set.
    sh: JDEV_JAVA_VM: Parameter not set.
    sh: JDEV_VM_OPTS: Parameter not set.
    sh: JAVA: Parameter not set.
    Appreciate your help.
    Thanks
    Srini Pendem

    Hi,
    If this is happens only with services view bills, view consumption history.. or this happens for every other service if you are trying to access 5 minutes after logon.
    Have to restarted your ITS server after changing these parameters.
    well i am not aware of any ITS based service Bill.. can you please help me out.. if this is part of ESS/MSS service.
    regards,
    Sudhir

  • PC session hangs when launch a query from Oracle 9i client to 10g database

    I have a pc with Oracle 9.2.0.1.0 client installed. The database server level is 10.1.0.5.
    When I launch a query from a client session the pc sesssion locks up and doesn't return any results. When I launch the same query from the database server , or from other pcs with Oracle client 10 installed , I get results almost immediately from the query.
    The pc in question is running Windows XP Service pack 2. Other queries run fine from the pc.
    Are there are any known issues with Oracle 9 clients querying an Oracle 10 database ?

    Thank you for your reply. No, I must admit I didn't think of looking at the wait events. I will look at this as soon as I get a chance.
    Thanks again for your suggestion.

  • ExtendToolscript opens when I call script from photoshop

    Hey,
    I asked this question over in general discussions by mistake so I though I would re-ask it here.
    I have a Javascript that I have written that builds a interface of buttons in organised groups based on the contents of certain folders. Everything works fine but when you call it from photoshop and extendtoolscript isn't running it always opens it up. I have written a lot of scripts with interfaces and I have never had this problem. Its not a huge problem for me as I usually have this program open anyway but I intend to have a team of people using this script so if I could stop it somehow it would be much better.
    Has anyone experienced this before? Or perhaps knows of functions that cause extendscript to open?
    I can't see anything unusual in the script...
    Any help would be appreciated!
    Thanks,
    Mark
    var strtRulerUnits = app.preferences.rulerUnits;
    var strtTypeUnits = app.preferences.typeUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    app.preferences.typeUnits = TypeUnits.PIXELS;
    var templatepath = "~/Desktop/BANNERS/";
    var bannerfile = ""
    var docRef = app.activeDocument;
    var fileArray = new Array();
                    var sourceFolder = Folder (templatepath + "MAIN/");
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArray.push(doc);
                var w = new Window ("dialog", "Choose a Banner");
                w.preferredSize = [400, 100];
                w.orientation = 'row';
                w.alignChildren = "left"
                w.alignChildren = [ "fill", "fill"];
                w.btnPnl = w.add('panel', undefined, 'MAIN');
                w.btnPnl.btn = w.add ("group");
                w.btnPnl.btn.alignChildren = "left"
                var buttonarray = new Array ();
                var key = {};
                for (var i = 0; i < fileArray.length ; i++) {
                    var delimeter = '/';
                    var string = String (fileArray[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");   
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    var counter = (counter + 1);
                if (fileArray.length > 6){
                        var divider = 2
                    else{
                        var divider = 1
                    var remainder = (i % divider);
                    if (remainder == 0){ 
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    key = (String (fileArray[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    function button_pressed (e)
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");   
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    var counter = (counter + 1);
                    bannerfile = new File (templatepath + "MAIN/" + buttonname + '.png');
    var fileArrayneon = new Array();
                    var sourceFolder = Folder (templatepath + "NEON/");
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArrayneon.push(doc);
                w.btnPnl = w.add('panel', undefined, 'NEON');
                w.btnPnl.btn = w.add ("group");
                var buttonarray = new Array ();
                var key = {};
                for (var i = 0; i < fileArrayneon.length ; i++) {
                    var delimeter = '/';
                    var string = String (fileArrayneon[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");   
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    var counter = (counter + 1);
                if (fileArrayneon.length > 6){
                        var divider = 2
                    else{
                        var divider = 1
                    var remainder = (i % divider);
                    if (remainder == 0){ 
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    key = (String (fileArrayneon[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    function button_pressed (e)
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");   
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    var counter = (counter + 1);
                    bannerfile = new File (templatepath + "NEON/" + buttonname + '.png');
    var fileArray180 = new Array();
                    var sourceFolder = Folder (templatepath + "180/");
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArray180.push(doc);
                w.btnPnl = w.add('panel', undefined, '180');
                w.btnPnl.btn = w.add ("group");
                var buttonarray = new Array ();
                var key = {};
                for (var i = 0; i < fileArray180.length ; i++) {
                    var delimeter = '/';
                    var string = String (fileArray180[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");   
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    var counter = (counter + 1);
                   if (fileArray180.length > 6){
                        var divider = 2
                    else{
                        var divider = 1
                    var remainder = (i % divider);
                    if (remainder == 0){ 
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    key = (String (fileArray180[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    function button_pressed (e)
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");   
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    var counter = (counter + 1);
                    bannerfile = new File (templatepath + "180/" + buttonname + '.png');
    var fileArraymisc = new Array();
                    var sourceFolder = Folder (templatepath + "MISC/");
                    var extRE = /\.(?:png|gif|jpg|bmp|tif|psd)$/i;
                    // get all files in source folder
                    var docs = sourceFolder.getFiles();
                    var len = docs.length;
                    for (var i = 0; i < len; i++) {
                                    var doc = docs[i];
                                    // only match files (not folders)
                                    if (doc instanceof File) {
                                                    // store all recognized files into an array
                                                    var docName = doc.name;
                                                    if (docName.match(extRE)) {
                                                                    fileArraymisc.push(doc);
                w.btnPnl = w.add('panel', undefined, 'MISC');
                w.btnPnl.btn = w.add ("group");
                var buttonarray = new Array ();
                var key = {};
                for (var i = 0; i < fileArraymisc.length ; i++) {
                    var delimeter = '/';
                    var string = String (fileArraymisc[i]);
                    var splitted = string.split(delimeter);
                    var thelength = ((splitted.length) - 1);
                    var bannername = splitted[thelength];
                    var delimeter = '.';
                    var splitted = bannername.split(delimeter);
                    var bannername = splitted[0];
                    var checkdelim = "%20";
                    var checkthat =  bannername.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = '%20';
                    var splitted = bannername.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var bannername = (splitted[counter] + " ");   
                    else if (counter == ((splitted.length) - 1)){
                    var bannername = (bannername + splitted[counter]);
                    else{
                    var bannername = (bannername + splitted[counter] + " ");
                    var counter = (counter + 1);
                    if (fileArraymisc.length > 6){
                        var divider = 2
                    else{
                        var divider = 1
                    var remainder = (i % divider);
                    if (remainder == 0){ 
                    w.btnPnl.btn = w.btnPnl.add ("group");
                    w.btnPnl.btn.alignChildren = "left"
                    } else {
                    //x is not a multiple of y
                    key = (String (fileArraymisc[i]));
                    w[key] = w.btnPnl.btn.add("button", undefined ,bannername );
                    w[key].alignment = 'left';
                    buttonarray.push(w[key]);
                    w.btnPnl.btn.addEventListener('click', button_pressed);
                    function button_pressed (e)
                   if (e.target.type == "button")
                    $.writeln (e.target.text + " from panel " + e.target.parent.text);
                    w.close()
                    var buttonname = e.target.text;
                    var checkdelim = " ";
                    var checkthat = buttonname.indexOf(checkdelim);
                    if (checkthat == "-1") {}
                    else {
                    var delimeter = ' ';
                    var splitted = buttonname.split(delimeter);
                    var counter = 0;
                    while (counter < splitted.length){
                    if (counter == 0){
                    var buttonname = (splitted[counter] + "%20");   
                    else if (counter == ((splitted.length) - 1)){
                    var buttonname = (buttonname + splitted[counter]);
                    else{
                    var buttonname = (buttonname + splitted[counter] + "%20");
                    var counter = (counter + 1);
                    bannerfile = new File (templatepath + "MISC/" + buttonname + '.png');
    w.show();
    if (bannerfile == ""){}
    else{
    var targetDocumentName =  docRef.name;
    var tempfile = app.open (bannerfile);
    var sourceDocumentName = app.activeDocument.name;
    var thewidth = tempfile.width;
    var theheight  = tempfile.height;
    app.activeDocument = docRef;
    docRef.resizeImage (null, theheight, null, ResampleMethod.BICUBIC);
    if ((String(thewidth)) == (String(docRef.width))){
    var thelayer = docRef.activeLayer;
    copyLayers(sourceDocumentName, targetDocumentName );
    docRef.activeLayer = thelayer;
    else {
    alert ("Document width Incorrect")  
    docRef.activeLayer.name = "main";
    var thelayer = docRef.activeLayer;
    docRef.resizeCanvas (thewidth, null, AnchorPosition.BOTTOMCENTER);
    copyLayers(sourceDocumentName, targetDocumentName );
    docRef.activeLayer = thelayer;
      imageView ("FtOn");
    function copyLayers(sourceDocumentName, targetDocumentName) {
      var sourceDoc = app.documents[sourceDocumentName];
      var targetDoc = app.documents[targetDocumentName];
      var sourceLayer, targetLayer, sourceGroup;
      if (app.activeDocument != sourceDoc) {
        app.activeDocument = sourceDoc;
    var thelayer = tempfile.layers[0];
    var layersToCopy = thelayer.name;
      if ( typeof layersToCopy === 'string' ) {
        sourceGroup = tempfile.layers[0];
        targetLayer = sourceGroup.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING )
      else if ( Object.prototype.toString.call( layersToCopy ) === '[object Array]' ) {
        for (var i = 0; i < layersToCopy.length; i++) {
          sourceLayer = sourceDoc.artLayers.getByName( layersToCopy[i] );
          targetLayer = sourceLayer.duplicate( targetDoc, ElementPlacement.PLACEATBEGINNING );
    tempfile.close(SaveOptions.DONOTSAVECHANGES);
    function imageView (view) {
        desc= new ActionDescriptor();
            ref = new ActionReference();
          if (view.length < 5){
             var viewID = charIDToTypeID( view );
          }else{
             var viewID = stringIDToTypeID( view );
          ref.putEnumerated( charIDToTypeID( "Mn  " ), charIDToTypeID( "MnIt" ), viewID );
        desc.putReference( charIDToTypeID( "null" ), ref );
       executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );

    $.writeln ( ) writes the specified text to the JavaScript Console in ExtendScript Toolkit.
    You probably need to comment out the 4 occurences of the following line, apparently used for debugging purposes:
    $.writeln (e.target.text + " from panel " + e.target.parent.text);

  • When launching Bus rules from certain dataforms get Planning login prompt

    HI,
    I have a strange problem only on certain forms in my planning application.
    I find on some data forms when the user launches an associated business rule, after selecting the rule, and clicking launch, instead of the normal progress bar window appearing, in that popup window, and new planning login prompt appears with a message saying the session has timedout. If you close that window , you can continue using Planning as normal, but you just can't launch that rule from that particular form.
    The same Business rule, has been linked to another dataform, and actually runs normally there.
    Has anyone else also experienced this problem?
    Regards,. Imran

    turned out to be an internet explorer issue.Thanks.

  • Error-code when launching Time Machine from MacBook Pro

    I´ve get this error-code when launching Time Machine: An unaspected error has acourd (errorcode -6584)
    Solution on this?

    Sounds like OSX has lost track of where it is.  Try a "full reset" of Time Machine, per #A4 in Time Machine - Troubleshooting.
    If that doesn't help, try repairing your backups, per #A5 there.

  • How to launch Calc Scripts from Analyzer

    Hello all,Just wondering if that there is an easier way to launch calcs from analyzer... what are some of the ideas -using a executable lauch button, hyperlink, via Analyzer API? Any other ideas appreciated. regards, Ray

    This message has resolved my query by setting a larger MAX_PROPERTY_VALUE_LENGTH to "30"Thanks.I have come across this problem before. If it is the same problem it is to do with the length of your calc scripts. Obviously Essbase calc scripts are stored as .csc files, if these are too big Analyzer can't read them. This issue is caused by the ADM layer that Analyzer uses. Search on the server for a file called adm.properties .You should find the file in the following directory \\hyperion\analyzer\adm\lib .You may find you have more than one copy on the Server in which case edit them all. In the file find a string called MAX_PROPERTY_VALUE_LENGTH. You will find this is currently to 4 (this respresents 4kb). Increase the value to say 20. Save changes, restart Analyzer Service and hopefully this should have fixed the problem. I would love to know if this works. Paul Armitage. Analitica Ltd. www.analitica.co.uk

Maybe you are looking for

  • How to connect to a Remote Oracle Database

    Hi Friends, The error I encountered while connecting to a remote database is ���DataSource name is too long String url="jdbc:odbc://abc:1523/test"; con = DriverManager.getConnection(url,"xyz","xyz1"); Here Remote Host-name = abc Port = 1523 DataSourc

  • HT1222 I can't open Itunes10 on macair 10.5.8

    Every time I try to open new itune on my computer it show me I need quicktime 7.5.5 or later, but I have it on my macair 10.5.8 . anyone can tell me how to open it?

  • DVD software doesn't work for Windows 8

    I bought a new Lenovo Slim USB Portable DVD Burner. With the drive came the following software: BurnNow, DVD Movie Factory, WinDVD. Unfortunately that software will work in Windows 7, but it won't install in Windows 8. How can I get the software for

  • ITUNES NOT WORKING! IM LOSING CONTROL!

    I really need help with this. okay ever since like a month ago our iTunes hasn't been working. When you click on the icon for iTunes it says: iTunes has encountered a problem and needs to close. Sorry for the inconvenience. Then it says to tell Micro

  • How do I rename Trackpad in Mavericks 10.9.5?

    I'm unable to rename my new Trackpad according to the instructions in the User Guide. There's no Action pop-up menu in the lower left corner of the Bluetooth pane in System Preferences. Does anyone know what to do?