Script that returns the name of the user

Hello, I have a fairly complex script that exports the text of an InCopy document. Is InCopy CS3 and is running on a Windows 2003 platform. It would be useful as this script to find out who is the user, that is who runs the export. Has anyone written a script that removed the username and group ads, the OS, or in fact InCopy. The solution, I think, perhaps by calling an external script that queries the operating system and returns this kind of data. Any thoughts on this topic would be appreciated. Thks, Wil

On Windows, you can get the name of the user like this:

Alert ($.getenv ("username"));

or

alert ((Folder.temp + "") .slice (12, -14));

Kasyan

Tags: InCopy

Similar Questions

  • Link to the report that returns the user to the original browser window

    Greetings:

    I have a link in the browser that opens a new browser window B and run a report. In the present report in browser B, I have a column whose values have links. When the user clicks on the link, I want to redirect the browser to run a query that displays detailed information about their selection. Browser B would remain open.

    In the link in browser B, how can I redirect the browser to run this query?

    Any help would be appreciated.

    Thank you
    Stan

    P1_XYA is a text element on the page that is in the browser.

    the report of the browser request is

    Select col1, col2, col3 from myTable
    where col1 =: P1_XYA and: P1_XYA is not null

    Kind regards
    shijesh

  • Pass the protected script that allows the user to edit the content

    I work with a number of local groups but get busier with my schedule, I can't take the time to do the weekly band concerts or hourly updates. I saw a script a few years ago, allowing an end user (the band) to change their own webpage (in particular, the page of the annex). It is password protected so that only you can access the configuration of the page with the appropriate authorization. I forgot since the code and can't seem to find one similar to it. The unfortunate side effect was the page was very simplistic and did not much markup.

    Does anyone know of a code or a script like this?

    Thanks in advance.

    Anurag,
    That's what I have in mind. I'm a programmer/designer old enough, when I started writing code, it was all by hand and the concept of the CMS is really new to me. I've seen a few articles about it but did not know about the process. I definitely take your advice and looking around sourceforge and some other resources. The idea of the timetable is a good starting point, and I think that will be what I'm after.

    Thanks for the advice,
    Txwebman

  • Link on the Web page that returns the user to a specific slide in CBT?  CBT "named anchor"?

    Is there a way to give a user a Web page link that sends a user to a specific slide in a CBT?  (a bit like "named anchors" in HTML)

    I have a list of tasks that users can watch simultaneously OR individually.  Accessing the CBT of emails and Web sites.  Emails, he will lead them to a stage in the diagram below.  On the site, they can choose to start at the beginning, or choose a specific step.

    If this isn't the case, then I will have 2 versions.  One of the versions has all the sections in a single file.  The other version is a bunch of separate files in order to link the individual.

    Overview: Capture, manage, and complete performance objectives with employee (process with links to the different sections below diagram... like shortcuts)...
    Create / suggest new objectives of performance to the employee what to do / are not aligned with organizational objectives
    Approve, revise or reject the goals created by employee
    Change the approved objectives:
    Add or modify objective comments
    Change the alignment on organizational objectives
    Change objective rating criteria
    Complete the objective
    Mass create goals
    Enter objective filled

    Micky

    Hey Micky,

    You may need to use javascript to achieve this.

    Please visit this link: http://captivatedev.com/2011/05/01/how-to-jump-to-a-specific-slide-in-a-separate-course/

    Do you want what it this way, if I understood your query?

    Thank you

  • Function that return the name of the current report

    Hello

    Anyone know if there is a function that returns the name of the current report?, similar to GET_APPLICATION_PROPERTY (CURRENT_FORM) in the forms.


    Tnks,


    LEFM

    Hello

    You can use the builtin: SRW. GET_REPORT_NAME
    This function returns the file name of the running report

    http://www.Oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwrefex/PLSQL/builtins/SRW/srw_get_report_name.htm

    NOTE: it is not the name of the RDF file. Is the name defined in the reporting name property.

    Concerning

  • How to create a button that allows the user to check their form to find errors?

    Hello

    I use LiveCycle ES3.  I would like to add, at the end of my form (independent, NOT on a web form), a button that allows the user to check their form for errors, and then display a list of errors and highlight areas with errors.  Finally, he must turn off highlight these fields when the errors have been corrected.

    Also, in the form, if the user makes selections, they must include an attachment with their form.  I want to make sure when they make selections that requires an attachment, a field is generated at the end of the form that lists all required attachments.  Is this possible?

    Thank you.

    The button validate calls a Script called "controller" object If you look at the hierarchy of the form Variables example there are two Script objects: controller and validation. Script objects are used to maintain the reusable script functions.

    You have to re-create those for validation to work. If you right click on 'form1' (or whatever your node in the foreground is called in the hierarchy), you can select "insert a Script object. You will need to do it twice.

    In the hierarchy, there is then a node Variables with two Script objects. Name them even as the form of the sample and copy and paste the sample form scripts in them.

  • Do stuff to PL/SQl that returns the value and redirect to modal page by setting this value

    Hello

    a button click Page1 I would perform a PL/SQL procedure that returns a value in P1_ITEMVAL and then redirect to a page 2 (modal page) and the value of an item on this page with the value previously returned. To do the same thing with a normal page is quite easy:

    Button action is present, then process of PL/SQL that returns the value in the P1_ITEMVAL element and, finally, a branch at page 2 that sets P2_ITEMVAL with P1_ITEMVAL. I really have no idea how to do the same thing when the target is a modal page.

    I created a unit test on https://apex.oracle.com/pls/apex (application 1554 - redir_to_modal)

    Workspace: tests

    USER: supporter

    PWD: supporter1234

    Any help would be much appreciated.

    Kind regards

    Pavel

    Pavel

    If you prepare a URL using the value calculated in the PLSQL of DA part you can then use a subsequent stage of javascript to set the location of the window.

    This will jump to the top of the page of the modal dialog box

    : P1_URL: = apex_util.prepare_url)

    ' f ? p ='|| : APP_ID - Application id

    |': 2' - Page id

    ||': ' || : APP_SESSION - Session id

    ||':'                      -- Request

    ||':NO'                    -- Debug

    : ': ' - Clear Cache

    : ': ' - Settings

    ||' P2_ITEMVAL'

    : ': ' - Parameter values

    || (: P1_ITEMVAL);

    then in the action of javascript

    Window.Location.Replace ($v ('P1_URL'));

    Hope this is of some use

    Concerning

    Kelvin

  • I need help to write a script that detects the first instance of a paragraph style and then change

    I need help to write a script that detects the first instance of a paragraph style and then he goes to a different paragraph style.  I don't necessarily need someone to write all this, by the biggest problem is to find how to find just the first instance of the paragraph style.  Any help would be greatly appreciated, thank you!

    Hello

    then try this with your active doc:

    ....................

    myDoc var = app.activeDocument;

    mStyle var = myDoc.paragraphStyles.item ("PS_NameToFind"); change the name to paraStyle

    var mStyle_1 = myDoc.paragraphStyles.item ("PS_NameToChange"); change the name to paraStyle

    var mFrames = myDoc.pages.everyItem ().textFrames.everyItem () .getElements ();

    app.findTextPreferences = null;

    app.findTextPreferences.appliedParagraphStyle = mStyle;

    for (var k = 0; k)< mframes.length;="">

    {

    currFound = mFrames [k] .findText ();

    If (currFound.length > 0)

    currFound [0] .paragraphs [0] .appliedParagraphStyle = mStyle_1;

    }

    app.findTextPreferences = null;

    ................

    Rgds

  • Method that returns the bb::cascades:Application?

    Hi, is there a method that returns the bb::cascades:Application?

    I solved the problem by simply passing the request of my class that needs it. If its solved because there is no such method I think.

  • How to send an email with the link that has the user id?

    Hello everyone, I'm trying to send an email with the link that includes the user id. After users click the link, they should be able to see the form with their information that has been previously fulfilled. So my question is after I have send email how and what is the best way to get information and show it to the user. What should be separate page with the cfquery limited on the id user or something else? If anyone has an idea of what is the best way to do it please let me know. I already have my code who send e-mails.

    You save all the fields submitted initially to a database?  If so, run a query and then convert them to the form field, query values. I don't know what looks like your data (or database), but a simplified version might look like this.

    SELECT FirstName

    OF SavedFormTable

    WHERE ID =

  • How to use the progress indicator that block the user for editing?

    Hi all

    I have a requirement where I need to display a round progress bar while processing the database. For example:-I have a stubborn taskflow and in it, I have a two jspx page called 'First.jspx' and 'Second.jspx '. And I have two text boxes and a button 'Save' on the first.jspx page.
    Now, when the user puts the values in the text boxes and click the 'Save', my ticker or the progress indicator should say "Please wait while running" and as soon as the transaction is complete, I need to show another page which is the page of "Second.jspx". The 'Save' button action has method within a managed bean that has some features and then it executes the VO (View object) and validates the data.


    How can I implement the indicator?

    I read this article:- http://www.oracle.com/technetwork/developer-tools/adf/learnmore/42-progressbarcolor-169184.pdf , but it does not match my needs. I need indicator that holds the user to change anything on the page. Like what we get when we do any operation on the banks when navigating to the payment gateway.

    Please suggest!
    Thank you and best regards,
    Shah

    Hi Shah,

    The answer was around the same are looking in. http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/27-long-running-queries-169166.PDF, but the sample was 27.

    -Juan Camilo

  • Can I add an image field that allows the user to insert a picture on the form?

    I use LiveCycle CS3 and I would like to create a form that allows the user to add an image. Is this possible and if so, how?

    In LiveCycle, you can add an ImageField object library to the form...

    Execution, the user can click on the image and choose an image file in the local system and the display of the form.

    Make sure you check the image embed checkbox in the properties of the ImageField. Otherwise, the image may not be retained if you open the same file in another machine...

    Thank you

    Srini

  • How do know us that now the user using the server component

    Hi all

    Suppose a user loged in to the siebel application.and requested for an object manager/component.and as the user who got. But this particular component is active in a portion so how do we know that now the user using the component.means Server user is in what server to use this object manager component.


    Concerning
    Remy

    Using Server Manager, to connect without specifying a server, then run a command to sessions list for your device and you will see the user and the server.
    Best regards
    EvtLoglvl

  • I need a query that returns the average amount of characters from text colum in MS SQL.

    I need a query that returns the average amount of characters from text colum in MS SQL.

    Could someone show me how?

    Sorting, I need of the

    DATALENGTH

    function

  • Looking for an example of "function that returns the error text.

    Environment: APEX 3.1.1.00.09 on AIX 5.3

    I'm looking for an example implementation of the posting of the "function that returns the error text.

    I would like to write a database function that does the validation logic and return the text of the error.

    Is it possible to create multiple lines of text of error based on error conditions?

    I'm trying to use it at the end of the input data to go on the set of the 'document' to the entry and highlight all error conditions encountered before the 'document' is subject to additional processing.

    I wrote the function and reference it in a posting as ' validate_stuff (: P3_DOC_SEQ); »

    I have an error message "validate_stuff is not a procedure or is not defined.

    The object is a function, not a procedure. It is defined to return a parameter VARCHAR2 hoped posting if it is not NULL.

    When I run the SQL function * more and spend in a number of documents are returned the correct error messages.

    Any direction is greatly appreciated.

    -gary

    Hi Gary,.

    You must RETURN the result of the function:

    BEGIN
     RETURN validate_stuff(:P3_DOC_SEQ);
    END;
    

    Andy

Maybe you are looking for

  • HP 17-w033dx omen: keyboard keys stuck (when you play)

    About four days ago, I bought the laptop HP Omen. The next day, I bought it, I started to play games. Occasionally (about every 15 minutes), my WASD keys would be stuck and repeat themselves in the games (my character would keep walking). I have to p

  • Firefox 6 crashes when you access bookmarks menu.

    Gentoo/Linux/GNU Firefox crashes when you access bookmarks or history via the toolbar. Unresponsive and must be killed. This is a new installation, there was no previous installation of firefox before 6 was installed.

  • Satellite C660-13R - wireless and Ethernet are not working after format

    Hello I just formatted my laptop and I only get the Internet connection with a wireless usb antenna... Ethernet, or wireless appear to work. Before the format, that it worked fine. Here is the product http://www.Toshiba.co.UK/discontinued-products/sa

  • Looking for software for a Canon Rebel XS

    Is it possible to get the software from Canon for my Canon Rebel XS?  Mine was lost in a move.  Thank you!

  • upgrade to 7

    can I switch to 7 Home premium 64-bit for vista Home premium 32-bit, 64-bit capable pc.what I have to take care of...