[js] [cs4] How do I enter a date link changed using a script

When I interactive check Info link, the modified date is Tuesday, January 17, 2012 07:18 but my script returns the date that the link has been updated rather than the date of the file. For example, it may be yesterday's date even if the file has been updated a few minutes ago.

I tried docRef.links [i].linkXmp.properties.modificationDate and docRef.links [i] .date, but I can't check the date of the link of the file.

I was able to get the date using vb script, but I am wanting to use JSON to information to add a link to in different files depending on the conditions.

Thank you. I was able to find this answer since I posted the question in the "Guide of tools JavaScrip.

I used:

var file = File (docRef.links [i] .filePath);

I was then able to get the date and time using: "file.modified."

indesign #target
main();
main() {} function
If (app.documents.length == 0) {}
Alert ("Please have a"Indesign"document before running this script.");
return;
}

listLinks (docRef);
};

function listLinks (docRef, myStopCounter) {}
var myCurrentTime = new Date;
var myCalculatedMinutes = Date;

for (var i = docRef.links.length - 1; I > = 0; i--) {}
var file = File (docRef.links [i] .filePath);
If (file.exists)
alert (docRef.links [i] .name + '-' + DateDiff_inMinutes (myCurrentTime, file.modified), "Linking the name");
} / / for / * /.
}

function DateDiff_inMinutes (/ * Date * / date1, / * Date * / date2) {return (date1.getTime () - date2.getTime ()) /(1000*60) ;}}

Tags: InDesign

Similar Questions

  • How do MANUALLY enter you data into the application of health 10 IOS? There is no symbol and touch edit only gives you the option to delete existing data.

    I checked in the application of the health and read the Apple support page. They show the screen for 10 IOS on an iPhone, but their instructions don't work. There is not a Plus symbol to add data manually. It has only an editing tool that you can touch and only allows you to delete data.

    Hi, rmetzker!

    To manually enter the data points in the application of health, first go to the display of data on health as shown below.

    Then select category to which you want to enter data in (I'll use body measurements for example), then press on what data you enter (measurements > weight). In the upper right corner, it will be a plus + icon for you to manually enter your own data points.

    I hope this helps!

  • How to determine if a data type is used in the comic book?

    Background:
    I am currently planning to install GoldenGate proof of Concept and have questions about the data types supported by the capture mode (pg 1-5, 1-6 in the installation guide). Is not in itself a matter of GoldenGate.

    Our source and target databases are 11.2.0.2
    The GG server will be 11.2.0.3
    I'm new to the environment and want to confirm that we needn't upgrade the source and target the DBs to 11.2.0.3 in order to use the integrated capture mode. This forces me to know if 3 specific types of data are used in the comics. The problem is, Oracle docs aren't clear to me, when they refer to 3 specific data types.

    Here's the question:

    Does anyone know how I can confirm that the following 3 data types are used in the DB by querying the dictionary: "XML stored in binary form',"XML stored as object-relational","abstract data Type "?

    If I select the types of data separate from dba_tab_columns, I see no data enumerated type that indicates, for example, that an XML string is stored as a ' binary '.

    For me, when Oracle made reference to a "stored as binary XML" on page 1-6 on the installation guide, I guess that makes Oracle refers to a BLOB that contains an XML reference, but I can't be sure.

    Someone has an idea that they could share? I just want to confirm that we do not have to upgrade our source and target DBs at 11.2.0.3 by searching in the database is possible to confirm that the above 3 data types are not used by the application.

    Thanks in advance for any help.
    Tony G

    You should find XML columns stored in binary form or CLOB using the DBA_XML_TAB_COLS view referenced in http://docs.oracle.com/cd/E11882_01/appdev.112/e23094/xdb01int.htm#g644983.

    You should find XML tables using storage relational object in the view DBA_OBJECT_TABLES with:

    select
    owner,
    table_name,
    table_type
    from
    dba_object_tables
    where
    table_type='XMLTYPE';
    

    To abstract data type, you can query DBA_TAB_COLUMNS using ADT as literal for DATA_TYPE column:

    SQL> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE    11.2.0.2.0      Production
    TNS for 32-bit Windows: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    
    SQL> drop table t purge;
    
    Table dropped.
    
    SQL> drop type adt;
    
    Type dropped.
    
    SQL> --
    SQL> create type adt is object
      2  (
      3   c1 number,
      4   c2 varchar2(30)
      5  ) final
      6  /
    
    Type created.
    
    SQL> show errors
    No errors.
    SQL> create table t
      2  (
      3  c adt
      4  )
      5  /
    
    Table created.
    
    SQL> show errors
    No errors.
    SQL> --
    SQL> column table_name format a10
    SQL> column column_name format a10
    SQL> column data_type format a10
    SQL> select
      2  table_name,
      3  column_name,
      4  data_type
      5  from user_tab_columns
      6  where
      7  table_name='T';
    
    TABLE_NAME COLUMN_NAM DATA_TYPE
    ---------- ---------- ----------
    T          C          ADT
    

    Edited by: P. Forstmann on 8 Apr. 2013 20:28

    Edited by: P. Forstmann on 8 Apr. 2013 21:05

  • How can I update the data in mysql using the button defined in the table?

    Hello

    right now I am doing my project for the online election system using dreamweaver cc14. I create a table using php code to bind the data to mysql, and in this painting, I create also a button "vote" for voters to vote. My question is, how can I update my polling data in the mysql database when voters push button "vote" based on the id of the candidates? Here is my code I try:

    <form method="post" id="form1">
          <?php
    $servername = "localhost";
    $username = "root";
    $password = "pass";
    $dbname = "ses";
    
    
    // Create connection
    $conn = new mysqli($servername, $username, $password, $dbname);
    // Check connection
    if ($conn->connect_error) {
         die("Connection failed: " . $conn->connect_error);
    } 
    
    
    $sql = "SELECT No, Calon, ID, Jurusan, Image FROM candidates";
    $result = $conn->query($sql);
    
    
    if ($result->num_rows > 0) {
         echo "<table >
      <tr>
      <th>NO</th>
      <th>Candidate</th>
      <th>INFO</th>
      <th>Vote</th>
      </tr>";
         // output data of each row
         while($row = $result->fetch_assoc()) {
             echo "<tr>
      <td>" . $row["No"]. "</td>
      <td><img src=" . $row['Image'] . "></td>
      <td><br/>-" . $row["Calon"]. " <br/>-" . $row["ID"]. " <br/>-" . $row["Jurusan"]. "<br/></td>
      <td><input type="."submit"." name=".$row["Calon"]." id=".$row["No"]. " value="."Vote"."></td>
    
      </tr>";
      if(isset($_POST["".$row['No'].""])){
    
      $vote_sachin = "UPDATE candidates SET Undi=Undi+1 WHERE No=".$row["No"]. "";
    
      $run_sachin = mysqli_query($conn, $vote_sachin);
    
    
    }
        }
      echo "</table>";
    } else {
         echo "0 results";
    }
    
    
    
    
    
    
    $conn->close();
    ?>
    
    
    
    
        </form>
    

    I hope someone can help me in this area, because I'm still new in this programming language.

    Thank you.

    Youre probably going to insert a 'radio button' next to the names of candidates and recover the database ID of that (I guess that the ID is the primary key in your database that uniquely identifies each record.

    His great confusion because you seem to update the database to aid WHERE no = "." $row ["no"]. so I don't know that ID is the primary key?

    IF "No" IS your master database key, you need to change the code below:

    TO:

    Here's the complete code based on the ID of your primary database key.

    <>

    $servername = "localhost";

    $username = 'root ';

    $password = "pass";

    $dbname = 'his ';

    Create the connection

    $conn = new mysqli ($dbname, $servername, $username, $password);

    Check the connection

    If {($conn-> connect_error)

    Die ("connection failed:".) $conn-> connect_error);

    }

    $sql = "SELECT No, Calon, ID, Jurusan, Image OF candidates";

    $result = $conn-> Query;

    If you click on the button "vote" form run the code to update the database below

    {if (isset($_POST['vote']))}

    Get the value of the ID of the radio button form field and store it in a table.

    $update_vote = $_POST ['candidate_id'];

    loop in the table and update the database

    foreach ($update_vote as $value) {}

    $vote_sachin = ' candidates UPDATE SET Undi = Undi + 1 WHERE ID = ".". " $value. » « ;"

    $run_sachin = mysqli_query ($conn, $vote_sachin);

    }

    }

    ?>

    <>

    If ($result-> num_rows > 0) {}

    ECHO '.

    ";

    each line output

    While ($row = {$result-> fetch_assoc())}

    ECHO '.

    ";

    }

    ECHO '.

    ";

    ECHO '.

    NO. Candidate INFO To the vote
    " . $row ["no"]. "
    -" . $row ["Calon"]. "
    -" . $row ['ID']. "
    -" . $row ["Jurusan"]. "
    ";

    } else {}

    echo "0 results."

    }

    $conn-> close();

    ?>

  • How to reference the Javascript data link data?

    Hello

    I have a specific question-

    I have a PDF template I design in Livecycle Designer ES2. Data binding is the XML schema. For one of the fields, I need to link data with formatting.

    For example: if my XML (based on the schema) is as follows

    .

    .

    .

    < name xml:element = "EffectiveDT" value = "29/01/2011" / >

    < name xml:element = "ExpirationDT" value = "29/01/2012" / >

    .

    .

    I want to connect a tabled text named "term" on the model of PDF to be set as < EffectiveDT > - < ExpirationDT >

    I couldn't understand how to bind it in the binding for the text field tab, so I thought that maybe I can have a JavaScript code that can make me to be concatenated to the TextField and I can let the empty link.

    Is this possible? What would be a good solution for these use cases? If we can go way of JavaScript, could someone please share a snippet on how to access the element of JavaScript data binding?

    Thanks in advance!

    Hello

    Is the expression field will be used as a label, or the authorized user to update?  If it's just a label so that you can use a text object with two floating fields related to dates.

    If you do not want to use a TextField object, you can use JavaScript as follows, where initialization;

    this.rawValue = parent.dataNode.resolveNode("element[0].value").value + "-" + parent.dataNode.resolveNode("element[1].value").value;

    This code assumes that your xml file looks like.

    And that the the TextField object has a parent subform, which is bound to the element xml:term (so the parent.dataNode resolves to xml:term).

    Also, I found also that it can cause problems using element and attribute names that are in conflict with the names of the XFA objects.  Normally, I would have written the resolveNode argument used above something like;

    parent.dataNode.resolveNode ("element. ("(name) == 'EffectiveDt'] .value ') .value

    But because the object XFA representing the element also has a name property I never found a way to refer to the attribute called xml name in JavaScript.

    So the tricky part will be if they can update the values and you can then update your xml file the fields manually, not which in fact updated it is hard, it's going to be analysis of the new value that will be difficult.

    Hope this helps,

    Bruce

  • How to export Unicode application data to aid ESSMSH maxl script?

    Hello

    I have a problem with Chinese characters in a Unicode application.

    I am trying to export data from a Unicode application using the maxl script syntax:
    EXPORT of DATABASE ' ' Sales. " To the SERVER HELP fichier_journal sales 'Backup' OF DATA_FILE 'D:\Backup.txt ';

    1. I have run this MaxL script using the MaxL editor in the Administration Console. It returns the data with members in the Chinese characters correctly.
    2. I call this MaxL script from a script of commands using ESSMSH 'D:\Backup.mxl '. It returns the data but members in Chinese character is displayed as? instead of Chinese characters.

    I need this MaxL script to run in a batch script and I need the text file must be loaded in a cube later. But because the Chinese character is displayed as?, it will return the error when loading data.
    How to solve this problem?

    Thanks and greetings

    Not that I have ever done this (English and Dutch use the same character, and that's the limit of my languages), but by the Tech Ref:

    MaxL Shell and Unicode
    MaxL Shell is in native mode to start in interactive mode.
    MaxL Shell is native mode when a script without a header byte UTF8 processing.
    MaxL Shell is in UTF8 mode when a script with the header bytes UTF8 processing.
    For more information, see the section of Oracle Essbase database administrator's Guide titled "Compatibility between different Versions of the Client and the server software."

    http://download.Oracle.com/docs/CD/E17236_01/EPM.1112/esb_tech_ref/maxl_utf8shell.html

    See the SER60 here:
    http://download.Oracle.com/docs/CD/E17236_01/EPM.1112/esb_dbag/duniover.html

    And then perform a search in the section for this:

    If you use the Services Administration Console or another tool to create a MaxL script and save it as UTF-8 and then run the MaxL Shell script, MaxL Shell assumes the role of a client in Unicode mode. You can use this approach, for example, to update the contours across generations of dimension. When you create the script, don't forget to include the signing of UTF-8. See indicators of encoding.

    Check out the kaleidoscope of Glenn Schwartzberg since 2009 WORLD tour. I think this is the presentation I recommend the more - he has covered a lot of valuable land, including using the unicode utility. It is available at the section www.odtug.com technology resources. Look under Essbase/Hypeprion, then search for his name.

    You will have to join if you are not already a member. Associate membership is free and will allow you to download the presentation.

    Kind regards

    Cameron Lackpour

    P.S. If find you this point, could you post your solution for the edification of everyone?

  • How do you choose the data in tables using EBS web page?

    Hi friends,


    I'm in the URLs of the web pages EBS 11i > http://vision.abc.com:8000.
    using the SA account.

    Is there a counter part based on web module/menu to display the data in the table?

    As
    Select * from fnd_tables;
    or
    Select * from po_vendors;

    something like that which allow the display of data


    Thank you very much

    Yes, but I want a web tool that uses the URL, not the client server those. :), which are not allowed by the security check.

    As a development tools, I believe that developer SQL and TOAD (in addition to SQL * more) are what you need (although these are client/server tools).

    Oracle Enterprise Manager is a good tool tracking (but not for development), as a DBA you use EM, and access it via a URL.

    I might not necessarily use sqlplus command. but a program stored as programs simultaneous fnd.

    There is no standard concurrent requests that can help achieve this goal.

  • Extract data from database using php script and entry for datagrid.

    Hi all

    I intend to use the php script below to extract data from a database.

    I want to then display it in a datagrid control, the datagrid control has Ref columns job, the company and the position.

    The php script I have is

    <? PHP
    $hostname_conn = "localhost";
    $username_conn = "";
    $password_conn = "";

    $conn = mysql_connect ($hostname_conn, $username_conn, $password_conn);

    @mysql_select_db ("videochat");

    $query = "SELECT * FROM work."

    $result = mysql_query ($query);

    $row = mysql_fetch_array ($result);

    $ref = $row ["jobref"];
    $company = $row ['company'];
    $position = $row ["position"];

    echo "< Ref > $ref < / Ref >";
    echo "< company > $company < / company > ';
    echo "< location > $position < / location >."

    ? >

    Could someone show me how I chuck this data in a grid?

    Thank you

    Hello

    You should start using the authority, either zendamf which is used by the data wizards in flashbuilder 4 or with amfphp which is probably better than zend but has not all nicities such as the creation of objects of value.

    http://flashhub.NET/filter/

    This project uses amfphp, basically, it uses remoteobjects so returned php is in a ready to put directly into a grid or a datagroup arraycollection collection.

    If you need help with this sort of thing PM me and I can do a login session...

    the PHP services for calls used in the application

    <>

    class pets

    {

    var $db_host = "localhost";

    var $db_name = "flashhub_pets";

    var $db_user = "flashhub_david";

    var $db_pwd = "david";

    function pets()

    {

    Define the methodTable for this class in the constructor

    $this-> methodTable = array)

    "getPets"-online (table)

    'description' => 'Pets, database',

    'access' => 'remote '.

    )

    );

    }

    function getAllPets()

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from pet;

    $Result = mysql_query ($Query);

    return ($Result);

    }

    function getTypeOfPets ($category)

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from pet where CATEGORY = $category;

    $Result = mysql_query ($Query);

    return ($Result);

    }

    function getCategories()

    {

    $mysql = mysql_connect ($this-> $this-> db_user, db_host), $this-> db_pwd;

    @mysql_select_db ($this-> db_name);

    $Query = "SELECT * from category";

    $Result = mysql_query ($Query);

    return ($Result);

    }

    }

    ?>

    David

  • How to create a strictly typed control refnum using LabVIEW scripts

    I want to use LabVIEW to create a strictly typed refnum control that is bound to my custom control (a defined cluster), but I'm not familiar with scripts and can't see how to do it.

    If I create a new object of VI, with Refnum of control as the Style, how can I give my custom class object VI control terminal? When I try to use a reference to my control.ctl file customized (using the Open VI reference) I get an error: 'error 1057 occurred... ". Type mismatch: object cannot be cast to the specified type. »

    Alternatively, if I create a new Refnum of control as above, using a standard Cluster as the object of VI class, how I can convert this refnum control to a strictly typed refnum, which is related to my custom cluster control type?

    Thanks in advance for any advice,

    I tried, and as usual, things were slightly different.  The big problem is that a constant control reference becomes a node, not a constant, so cannot be converted to a control.  The good news is that you simply move to the front of the new control, as you would in the dev environment.  Here is the raw code (always needs cleaning to close the refs and add save of the new control, and more, you don't need to show the FP control if you do not want).

  • How to copy files on the USB key using batch script even if the drive letter for the USB v.

    Hello!
    I am trying to create a batch file that will copy: C:\My Folder\myfile.txt on a USB key. I created the file "Tango.spe" on the USB and used the "If exist' readers in order to search for the file on USB connected." "

    Here is my code so far:

    off @echo

    If exist D:\Tango.spe set variable = % BKPDRV %

    If exist E:\Tango.spe set variable = % BKPDRV %

    If exist F:\Tango.spe set variable = % BKPDRV %

    If exist G:\Tango.spe set variable = % BKPDRV %

    If exist H:\Tango.spe set variable = % BKPDRV %

    If exist I:\Tango.spe set variable = % BKPDRV %

    If exist J:\Tango.spe set variable = % BKPDRV %

    If exist K:\Tango.spe set variable = % BKPDRV %

    If exist L:\Tango.spe set variable = % BKPDRV %

    If exist M:\Tango.spe set variable = % BKPDRV %

    xcopy/y/i/h/k/e 'C:\My Folder\myfile.txt' % BKPDRV %


    Can someone tell me what I am doing wrong?

    Thanks in advance :)
    Andes

    Salvation, Andes,
    Please go to the Microsoft Community Forums.
     
    This problem would be better suited to the MSDN Forums community.
    Please visit the link below to find a community that will provide the support you want.
    http://social.msdn.Microsoft.com/forums/en-us/categories
     
    Thank you.
  • How can I make an external link and use it to open not only Dreamweaver but also to open to a specific line (say 100 line)?

    Hello!

    I am new to this site and I tried to find a solution to this problem for some time, but avast, I have not found anything.

    Here's what I want to do, I want to be able to send someone a link via my email, and when they click the link. It will open Dreamweaver and also bring to the line that I specify.
    The research I've done shows that other programs such as Notepad ++ can do this by typing something like this


    C:/Users/[username]/Desktop/Notepad/Notepad++.exe C:/Users/[username]/Desktop/Notepad/new.txt-n7

    and I guess I wonder if Dreamweaver has something similar. I've looked everywhere and if you don't understand what I'm trying to please let me know if I can explain it better.

    Any information will be helpful, just know that I am new in this area, so some jargon/lingo will be above my head.

    Thank you!

    I'm reasonably sure there is nothing in DW, which would allow you to do this. DW has 7 settings or interface as possible...

    Code

    Split (Code/Design)

    Split (Code/Live)

    Split (Code / Live + Live Code)

    Design

    Live

    Code Live + live

    Only 3 of them will allow you to change the code of a page. You would not only need to say which line you are looking for DW, but you also potentially set option to open a file in a display that allows to use line numbers. Some of them do not exist in some versions of the program or are made differently than a current or previous version.

    It's a Pandora's box much more than opening a text editor and specifying a line of text.

  • How to enlarge all images in the document using a script?

    Hello

    I used the script ImageCatalog to place a 1000 + images of different dimensions in the document. In the ImageCatalog dialog box, I unchecked the proportional and the frame option content to place images at 100%. I'm looking for a way to extend all the frames graphics to reveal images that he placed on the document. When you double-click the bottom right handle, will expand the framework to see all the content. (it would be your time when you do this one by one)

    Let me know. Thank you very much.

    If I understand you correctly, you have placed images without using frame to adapt to the content and that you now try fix this? Do you find that a fair executives greater and, at this point, can do their overlap others? If this is going to be a problem, just run the script again but this time with the correct settings...

    In any case. Typing on my iPad so I can't check. but something in the lines of

    g = app.activeDocument.allGraphics;

    for (i = 0; i

    g [i] .fit (FitOptions.FRAME_TO_CONTENT);

    See http://jongware.mit.edu/idcsjs5.5/pc_Graphic.html#fit

  • How to use the script to display the number of columns contain no data

    I have a requirement. There is a source that is the excel, the excel file file, we need to load data into the staging table. There are 5 columns mandatory ones must not be null. We used "No. Data Check" for this. The logic is so mentioned previously mentioned 5 columns don't contain any record that the record will be moved to without data. So far, it is fine. Now the requirement is to show what column or columns contain no data. We used a script to do this like:

    RES =' '

    RES = input1 [0] + ": failed because values null in required columns;"

    INPUT1 [1] = res;

    Output 1 = res;

    But it shows message "down because of nulls in the required columns", which is a generic message. We must show what column or columns does not contain the value "failed because of null values in a column required columnA, columnB or columnC. Can someone help me in this regard. Any kind of help is appreciated.

    You can use the variable inputname1, which keeps an array of names of the entry for the script processor attribute. For example:

    var result = "";

    var first = true;

    for (i = 1; i< input1.length;="" i++)="">

    If (input1 [i] == null | input1 [i] == ' ') {}

    If {(first)

    Firstly = false;

    } else {}

    result += "";

    }

    lead inputname1 += [i];

    }

    }

    If (result.length > 0) {}

    result = "failed due to null values in the following mandatory columns:"+ result; "

    }

    Output 1 = result;

    Kind regards

    Nick

  • How can I enter data apple fitness?  I swim and take aerobics classes.  I don't wear my Apple Watch during this operation.

    How can I enter data of fitness on my Apple Watch?  I swim and take water aerobics classes and not wear my watch in the water.

    Hello

    It is not currently possible to enter data of fitness on Apple Watch.

    Health and fitness data Apple Watch, iPhone and any other source are rather grouped by health on your iPhone app. Combined data is reflected in the health app charts (which can be added to the dashboard), which adjust the results to avoid any double counting of data from different sources.

    To add a workout that has not been registered by your watch, iPhone, or other existing data source:

    -On your iPhone, in the application of health (icon: red heart on a white background), go to: data on health (tab) > Fitness > training > add a data Point > enter the result of your workout.

    Activity types available when you add a workout currently including swimming, but do not include aerobics (other can be used instead).

  • How can I enter BIOS compaq610 screen and set the date, time

    How can I enter BIOS compaq610 screen and set the date, time

    Hello

    See Page 94 or Page 100 (according to what's relevant) of your & Maintenance Guide.

    Kind regards

    DP - K

Maybe you are looking for