Finding the domain deployment directory from servlet

I need to open a properties file and would like to do it in the domain deployment directory. is there a way to find this directory at runtime? this is not a clustered system.

OK, I found the answer myself.
The property is available via app.GetProps ( ), which is what I expected in the first place. But the following code just gave an invalid object as result:
var MyProps = app.GetProps ( ) ;
var i = GetPropIndex ( MyProps, Constants.UserSettingsDir ) ;
var TheProp = MyProps [ i ] ;
It seems that the Constants.UserSettingsDir value is NOT defined in ExtendScript, or not correctly defined. Replacing it with the value 152 (which is listed in the Frame Scripting Guide) does give me access to the property:
var MyProps = app.GetProps ( ) ;
var i = GetPropIndex ( MyProps, 152 ) ;
var TheProp = MyProps [ i ] ;
Adobe, please get your documentation in order. It might also be useful to have a list of values translating to Constants.<Something>, so that we can at least track back from the numeric value in the Data Browser to a symbolic value to be used in the scripts.
Ciao
Jang

Similar Messages

  • When i integrate Mac client to the domain open directory, he don't ask me account DirAdmin, Why ?

    When i integrate Mac client to the domain open directory, he don't ask me account DirAdmin, Why ?
    I don't want all people can integrate mac client to the open directoy without authentification
    I want he ask me account diradmin for integrate client mac os x to the domain open directory of Lion Server
    I have made a magic triangle
    Thanks

    Malik-O wrote:
    When i integrate Mac client to the domain open directory, he don't ask me account DirAdmin, Why ?
    I don't want all people can integrate mac client to the open directoy without authentification
    1 ) I want he ask me account diradmin for integrate client mac os x to the domain open directory of Lion Server
    Authentication (with open directory admin username & password) is off by default. In Mountain Lion there is no longer a GUI to manage that and some of the other binding options. In Lion, I think you could use Server Admin (or was it Workgroup Manager) -- I can't remember, but there were little checkboxes.
    To make authentication mandatory in Mountain Lion, you can use this on the Server:
    sudo slapconfig -setmacosxodpolicy -binding required
    Use the following to check the binding policies:
    slapconfig -getmacosxodpolicy
    You might want to check the slapconfig man page, you'll find some of the other options that were in Server Admin in Lion, e.g. disable cleartext, block man-in-middle, etc.
    Edit, I just saw you're still using Lion Server, not Mountain Lion. I'm pretty sure the above commands will work on Lion Server as well.

  • I just installed Lion OSX. Where can one find the "domain" for iWeb?

    With Snow Leopard one could find the "domain" for one's iWeb in Admin+Library+application support+iWeb. When one changed computers, one simply had to save this domain and then put it in the right place in the new computer. Things have changed with Lion OSX - and I can't find the "domain" for my web site.
    Anyone know where to look (Scripts?)
    Thanks,
    T...

    The reason Apple has hidden the User/Library folder is that there is not longer any reason to get into it what with iWeb (and iDVD) being discontinued and no longer supported. 
    We now know iWeb, and iDVD, have been discontinued by Apple. This is evidenced by the fact that new Macs are shipping with iLife 11 installed but without iWeb and iDVD.
    On June 30, 2012 MobileMe will be shutdown. However, iWeb will still continue to work but without the following:
    Features No Longer Available Once MobileMe is Discontinued:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    ◼ MobileMe Gallery
    All of these features can be replaced with 3rd party options.
    If a site is published  to a folder on the hard drive and then uploaded with a 3rd party FTP client to an ftp server subscriptions to slideshows and the RSS feed will be broken.  If published directly from iWeb to the FPT server those two features continued to work correctly.
    There's another problem and that's with iWeb's popup slideshows.  Once the MMe servers are no longer online the popup slideshow buttons will not display their images.
    Click to view full size
    Roddy McKay and I have figured out a way to modify existing sites with those slideshows and iWeb itself so that those images will display as expected once MobileMe servers are gone.  How to is described in this tutorial: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    The iLife suite of applications offered on disc is now a discontinued product and the remaining supported iApps will only be available thru the App Store from now on. However, the iLife 11 boxed version that is still available at the online Apple Store (Store button at the top of the page) and those still on the shelves of retailers will include iWeb and iDVD.
    This may be of some interest to you: Life After MobileMe.
    OT

  • IWeb works, but I can't find the domain file!!!!

    OK - this one has had me stumped for a few days now... I have iWeb (vs. 1.1.2 - from the '06 iLife). I need to find the domain file. It isn't in the home/library/app. support/iWeb folder. I didn't move it. I searched for it using command-F and using spotlight on my computer.
    iWeb is to reset and start from scratch if there isn't a domain file on your hard drive. So I know it's there somewhere (at least, I think it is?). My site is there. I can publish. I can make changes, however I can't find the domain file to make a back up of it. I don't think that I made it invisible - could I have somehow done that? And if so, is it possible to find it? I believ the program only works if the file is named "domain" so I don't think that I could have accidentally renamed it.
    Is there someone out there who can help me? I don't want to have to start from scratch and rebuild the websites.
    Thanks for your input!

    This is from Multisite's Technical Page:
    Technical Information
    While you don’t need to understand how data is stored to use Multisite for iWeb it can be helpful occasionally to understand what is going on behind the scenes. At a nuts and bolts level Multisite for iWeb stores all of its sites in your home folder’s Documents folder in a single package (which is really a fancy folder dressed up to look like a file) called “Multisite for iWeb Data.mfi.”
    You can open that package like this.
    Once you get your domain file straightened out I'd definitely get Varkgirl's Automator application to make frequent backups of that file. You can get it Varkgirl's iWeb Tips and Tricks site.

  • HT1711 how do I find the top 5 songs from a single artist!!

    How do I find the top 5 songs from a single artist?

    If you have unchecked the compilation tag on the CD tracks before you ripped them, then what you are describing shouldn't be happening. Are you sure you are unchecking the compilation tag for all of the tracks on the CD before you rip them?
    Unfortunately, you cannot change the default directory structure that iTunes rips albums into. You can feel free to move files after they are ripped, but iTunes will always rip them into its Artist/Album/Track #_Track Name format.

  • Create New gives an error "Could not find the user document directory"

    Fresh installed Adobe Edge Animate CC (2014). When I try to Create New, I get an Error popup "Could not find the user document directory"

    I think this worked!
    I just downloaded an example file and tried opening from outside of the program. At first it gave me some errors but then loaded it up.
    After that I've re-saved it and now I can create new files and open files.
    Before that I also uninstalled old CC programs that were not showing in the Adobe Creative Cloud apps.

  • How to find the file that delete from time capsule?

    How to find the file that delete from time capsule?

    I mean I saved JPEG file in Time capsule and unfortunately delete the file. Can I get it back
    IF.... .no other backups have occured since you deleted the file, you might be able to retrieve it using an application like Disk Warrior. It's about $100 as I recall, and there are no guarantees that it will work.
    DiskWarrior 4 - The Disk Utility for Mac  Disk Repair, Mac Directory ...
    Any of the free or low priced utilities that you might see or try will not be able to retrieve a deleted file from a Time Capsule.
    If any backups have occured since you deleted the file, the deleted file has almost certainly been overwritten. No way to retrieve it in that case.

  • How do I find the music I uploaded from a cd

    Ever since I downloaded the update for itunes i can't find the music I uploaded from a cd...help

    Backup drive?
    Subscribe to iTunes Match?
    If neither of the above and you don't have the CD and can't find your tracks on the computer then they you're stuck.  A file recovery utility will cost $100, plus another $100 for an external drive to which to resue the files, and may not even work.  You can buy a lot of CDs for $200.

  • How do i find the music i sync from my ipad to imac

    how do i find the music i sync from my ipad to imac

    How did you sync the music from the iPad to the iMac? Did you plug the iPad in and choose File -> Transfer Purchases from <name of iPad> in iTunes?
    B-rock

  • I want to find the image tag name from Image layer name InDesign JavaScript?

    I want to find the image tag name from Image layer name InDesign JavaScript?

    Hi,
    You can use following script to fetch image tag name and the layer name on which it lie:
    var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
    for(var i = 0; i< imgBox.length; i++)
      if(null != imgBox[i].associatedXMLElement )
                var b = imgBox[i]
               alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
    Hope this would help you to resolve your problem.

  • Where Do I Find The 2.2 Update From November ?

    I have iphone 2g. My last update was 2.1 - - I never updated to 2.2 or 2.2.1 - - Do I need to update to 2.2 or can I skip that and update to 2.2.1 ? And if I need to update both where do I find the 2.1 update (from last November, I believe. Thanks.

    Just download 2.2.1

  • Error when opening a new file: "Could not find the user documents directory"

    Why can't I create a new file and I get this error everytime: "Could not find the user documents directory"?

    Hi Team,
    Please check this forum thread with similar issue.
    Create New gives an error "Could not find the user document directory"
    Regards,
    Devendra

  • Help find the Last run date from previous month

    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMK

    Welcome to the forum!
    user2931503 wrote:
    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
    Normally, the "previous" month means the month before the current month. In April, the previous month is March.
    By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMKTry this:
    WITH   got_real_date   AS
         SELECT     TO_DATE ( SUBSTR (date_ran, 1, 14)
                   , 'MM/DD/RR-HH24:MI'
                   )     AS real_date
         FROM     table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    SELECT     TO_CHAR ( MAX (real_date)
              , 'MM/DD/RR-HH24:MI'
              )     AS last_date
    FROM    got_month_num
    WHERE     real_date     < (
                               SELECT  TRUNC (MAX (real_date), 'MONTH')
                         FROM    got_real_date
    ;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM

  • How to find the third highest salary from deptno20,from employee table

    how to find the third highest salary from deptno20,from employee table

    SELECT *
      FROM emp;
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO
    7369
    SMITH
    CLERK
    7902
    12/17/1980
    1000
    3
    20
    7499
    FEDERAL
    SALESMAN
    7654
    2/20/1981
    2000
    4
    30
    7521
    WARD
    SALESMAN
    7698
    2/22/1981
    3000
    4
    30
    7566
    JONES
    MANAGER
    7839
    4/2/1981
    4000
    3
    20
    7839
    MARTIN
    SALESMAN
    7698
    9/28/1981
    5421
    4
    30
    7698
    BLAKE
    MANAGER
    7698
    5/1/1981
    6222
    4
    30
    7782
    CLARK
    MANAGER
    7839
    6/9/1981
    5222
    2
    10
    7788
    SCOTT
    ANALYST
    7566
    12/9/1982
    5463
    3
    20
    7839
    KING
    PRESIDENT
    7902
    11/17/1981
    8543
    2
    10
    7844
    TURNER
    SALESMAN
    7698
    9/8/1981
    2124
    4
    30
    7876
    ADAMS
    CLERK
    7788
    1/12/1983
    2125
    3
    20
    7900
    JAMES
    CLERK
    7698
    12/3/1981
    5462
    4
    30
    7902
    FORD
    ANALYST
    7566
    12/3/1981
    2132
    3
    20
    7934
    MILLER
    CLERK
    7782
    1/23/1982
    5165
    2
    10
    SELECT sal, deptno
      FROM (SELECT   a.*,
                     DENSE_RANK () OVER (PARTITION BY deptno ORDER BY sal DESC) r
                FROM emp a
          ----  ORDER BY sal DESC
    WHERE r = 3;
    SAL
    DEPTNO
    5421
    30
    5165
    10
    2132
    20
    Regards ,
    Friend
    Message was edited by: MostWanted!!!!

  • Script to find the Concurrent Request ID from its associated SID

    Hi,
    In one of my production system, my server load is going very high. From the top used process ID of server, I found the SID and found out that the program running is "ora_rw20_run@acgerp (which is a concurrent program)
    How do I find out the Request ID using the SID/PID? Can someone please provide me the script to find the Concurrent Request ID from its associated SID?
    Thanks!

    There has been no new changes in the report server or in the database. Suddenly of late, we have been observing this program running and it never ends, consuming major part of the cpu load. Not sure what this program is -> ora_rw20_run. There is no mention about it in metalink or in google.
    I followed MOS Doc 1058210.6 and tried to debug more. But the formatted output doesnt give any info either.
    TKPROF: Release 10.2.0.2.0 - Production on Tue Oct 20 09:44:21 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Trace file: prod_ora_15721.trc
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    0 statements EXPLAINed in this session.
    Trace file: prod_ora_15721.trc
    Trace file compatibility: 10.01.00
    Sort options: default
    1 session in tracefile.
    0 user SQL statements in trace file.
    0 internal SQL statements in trace file.
    0 SQL statements in trace file.
    0 unique SQL statements in trace file.
    96507 lines in trace file.
    0 elapsed seconds in trace file.
    When I use the below query, I can find that the session is running a module named "PAXMGSLS" and the action is Concurrent Request.
    But I am not sure how to find out the Concurrent Request ID using this info to dig more (look into the concurrent request log files etc)
    select s.sid,s.serial#,p.spid os_pid,s.status,
    s.osuser,s.username,s.COMMAND,s.MACHINE,s.MODULE, s.SCHEMANAME,
    s.LOCKWAIT,s.action
    from v$session s, v$process p
    WHERE s.paddr = p.addr
    and s.sid = 823
    SID     SERIAL#     OS_PID     STATUS     OSUSER     USERNAME     COMMAND     MACHINE     MODULE     SCHEMANAME     LOCKWAIT     ACTION
    823     47     4559     ACTIVE     applprod     APPS     3     acgerp     PAXMGSLS     APPS          Concurrent Request

Maybe you are looking for

  • BPM: Confirming Alerts - pro's and con's.

    Hi all, In Business Process Monitoring in the alerts view, you have the option to confirm alerts - primiarly I assume to remove the yellow or red alert status from the summary screen of alerts, so that operators can see at a glance which monitors hav

  • Mass upload of route determination

    Hi, I have a question with regards to a configuring the route determination, our question is not about configuring the route but having to replace one of the old routes records to a new route. SPRO  LE  Shipping  Routes  Route Determination  Mai

  • Nexus 5010P-BF does not load system image

    Hi experts, We have a N5K-C50510P-BF. When these nexus starts that didn't booting any further than the kickstart. Here's the boot sequence log User break into bootloader Loader Version pr-1.3 loader> loader> boot bootflash:n5000-uk9-kickstart.5.2.1.N

  • If I upgrade to Firefox 4 can I regain control of my browser's look, feel and functionality? Or would I be stuck with that incredibly stupid new interface?

    I checked out Firefox 4 and was horrified by the new look. I'd like to have the latest version of Firefox, but I don't want to lose the look and functionality of my browser. I want my menu bar at the top, my bookmarks toolbar directly above the main

  • CS01 User Exit

    I need to calculate the total weight of the BOM Components and show it in the customer fields tab of the BOM Header in Transaction code CS01, CS02 and CS03. Whenever the user enters the quantity of the BOM components in CS01 and clicks the BOM header