Is it possible to run a script each time a .CSV file is updated?

I am having trouble with a script I am trying to write, which is made up of two parts:
A .CSV file generated by PHP/MySQL whenever an RSS feed is updated. The contents of the .CSV are overwritten each time the PHP runs.
A DataMerge script, written in JavaScript.
What I would like to do is run the DataMerge script each time the .CSV file is updated. Is this possible, perhaps using an Event Listener within the PHP to trigger the DataMerge script? Or am I approaching this in the wrong way? I'm grateful for any thoughts you might have. Thanks, F.H.

I would use Rorohiko's APID ToolKit: http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
It has fileChanged event that is sent after the observed external file has changed.
sorry guys for "labouring the point", but I'm working on very advanced project - and I need to know what my tool can or can't do
and in this case - using APID will break point 2.3 of EULA, right ? interaction with external datasource - without user action ?
robin
www.adobescripts.co.uk

Similar Messages

  • Running Ecatt script multiple times

    I have created a ecatt script for ME21N. I need the script to run multiple times.So,i have used Do Enddo statement and put the number of times to be executed.
    The script is running fine for the first time. then its not running. From the second time,its putting blank values into the fields and not saving the data.
    How can i run the script multiple times.
    Thanks,
    Aparna.

    Hello,
    When you run the script multiple time then you will have to pass different values to the fields so that every time the script is run with new set of values and the data is created.
    So in the script you will have to parameterize the fields and then handle the position of the fields so that when the script is run for the first loop counter the data is maintained in the first line of the transaction(for example) and the increament the counter for the second run so that the control moves to the second line for the second execution similarly for the multiple runs.
    Alternatively parameterize the fields with the table containing so many entries as the number of times you want to run the script and for each execution one set of entry from the table is picked and used in the execution for the next run the second set of values is used and so and so forth.
    Hope it answers your question.
    Thanks and Best regards,
    Ajay

  • Last computer i was able to make 3 profiles and run 3 windows. each time it asked for the profile when i wanted to start each window. how can i set that up again

    ast computer i was able to make 3 profiles and run 3 windows. each time it asked for the profile when i wanted to start each window. how can i set that up again

    last time some1 set it up for me. i would only have 1 shortcut on my desktop. everytime i clicked on it, it would ask me which profile i wanted. even if i had 1 or 2 of the others open it would still ask me which profile i wanted to open. i want to be able to do it that way again.
    yes i already set up the 3 profiles. but once i open up the one profile, and click on the short cut to open another, it just opens a brwser window with the profile in use. so i could open 10 windows, its only 1 profile, the first profile i used.
    and yes i have the box not checked

  • Script to merge multiple CSV files together with no duplicate records.

    I like a Script to merge multiple CSV files together with no duplicate records.
    None of the files have any headers and column A got a unique ID. What would be the best way to accomplish that?

    OK here is my answer :
    2 files in a directory with no headers.
    first column is the unique ID, second colomun you put whatever u want
    The headers are added when using the import-csv cmdlet
    first file contains :
    1;a
    2;SAMEID-FIRSTFILE
    3;c
    4;d
    5;e
    second file contains :
    6;a
    2;SAMEID-SECONDFILE
    7;c
    8;d
    9;e
    the second file contains the line : 2;b wich is the same in the first file
    the code :
    $i = 0
    Foreach($file in (get-childitem d:\yourpath)){
    if($i -eq 0){
    $ref = import-csv $file.fullname -Header id,value -Delimiter ";"
    }else{
    $temp = import-csv $file.fullname -Header id,value -Delimiter ";"
    foreach($line in $temp){
    if(!($ref.id.contains($line.id))){
    $objet = new-object Psobject
    Add-Member -InputObject $objet -MemberType NoteProperty -Name id -value $line.id
    Add-Member -InputObject $objet -MemberType NoteProperty -Name value -value $line.value
    $ref += $objet
    $i++
    $ref
    $ref should return:
    id                                                         
    value
    1                                                          
    a
    2                                                          
    SAMEID-FIRSTFILE
    3                                                          
    c
    4                                                          
    d
    5                                                          
    e
    6                                                          
    a
    7                                                          
    c
    8                                                          
    d
    9                                                          
    e
    (get-childitem d:\yourpath) -> yourpath containing the 2 csv file

  • Gif - file help: i don't want to read the gif each time from the file.....

    Hello there guys,
    i'm making a game and therefor i need to read a gif file like 20 times.
    i don't want my program to read the gif each time from the file, but only once.
    so i load it into an image or something?
    cuz opening the gif 20 times from my hard disk is a lot of time loss....
    opening it once and store it is much more efficient
    thx in advance
    plz help me out, cuz i don't really know how to do it.
    (in Delphi it's easy, but Java......)
    greetz,
    SpeciesXX
    Ramon Ribbe

    yes, it works, i used this code, thx man
    void button1_ActionPerformed(java.awt.event.ActionEvent event)
              ImageIcon image = new ImageIcon("f:/a.gif");          
              JLabel label = new JLabel();          
              label.setIcon(image);                    
              this.getContentPane().add(label);
              label.setBounds(10,10,100,100);
    and there i see my image :-)
    but 1 more thing, should i display all those blocks (images) on an applet, or should i use something else? (like what??)
    a sort of frame?
    because later on i have the field where all the blocks are in, and i have an area surrounding it, displaying all kinda information about the game, like how many lives remaining....
    can i put 2 applets in eachother? like applet1 is the parent of applet2?
    or should i use something else?
    plz help me, cuz java is kinda new to me i see....
    in delphi i just used 2 forms, form 1 with the blocks, form2 with the rest of info, and also being the parent of form1
    thx again, soon i can help ya guys too, i hope..
    (im learning java at school, but way too slow and to ez)
    Ramon

  • Hi,each time i`m trying to update any program in my phone i got this messege(before you can make purchases you must tap continue to sign in,then u must verifty your payment information),and i wanna it for free,what i have to do please?

    hi,each time i`m trying to update any program in my phone i got this messege(before you can make purchases you must tap continue to sign in,then u must verifty your payment information),and i wanna it for free,what i have to do please?

    There are user-to-user public forums, you're not talking to iTunes Support - I've asked the hosts to remove your account id and password from your post, but you should change your password IMMEDIATELY.
    If you are getting a message to contact iTunes Support then you can do so via this link and ask them why the message is appearing (we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Is it possible to run a script through an action without adding them to a menu?

    Unlike with Photoshop, you can record an action to run a script from a path. With Illustrator, it seems that you can only insert menu item to run an "Other script", but it doesn't record the path, and isn't of much help. Yes, I can add this to the script menu, but I'm creating scripts for a group of people, and I didn't want to have to install anything on their local machines, other than an Action Set. Are there any alternatives?

    Nope, AI still won't remember paths to Scripts between restarts. Has been this way for at least 8 versions now so don't hold your breath for it to change.

  • Is it possible to run a script when changing Yoga modes?

    I'm currently working with a vendor of Restaurant reservation software and they have a customer that would like to implement the Yoga 13 for a chain of hotels. However, due to the fact that the software requires Silverlight, it's necessary to run a script so that they can use Google Chrome and have the software keyboard pop up automatically when a text field is entered or touched. 
    I can easily run the script at login and manually unload it when done, but since Lenovo already has software (Lenovo Transition) that can trigger things when the Yoga changes modes, is there some sort of developer tool or a system-wide event that can be used to automatically load and unload the script on mode change?
    Please let me know, some Yoga sales could depend on this....and I love the Yoga.

    Well, I'm looking for a means to activate a script through the active corners, I'm not asking any questions about the script itself, so I did not think it should be posted in the AppleScript categoriy, but sure, I'll give it a go.
    (New thread in AppleScript: http://discussions.apple.com/thread.jspa?threadID=2534773&tstart=0)
    Message was edited by: Max Ocklind

  • Is it possible to run a script through active corners?

    Is there any way or app that allows me to run a script when moving the mouse pointer to an active corner (the ones otherwise used by Exposé)?

    Well, I'm looking for a means to activate a script through the active corners, I'm not asking any questions about the script itself, so I did not think it should be posted in the AppleScript categoriy, but sure, I'll give it a go.
    (New thread in AppleScript: http://discussions.apple.com/thread.jspa?threadID=2534773&tstart=0)
    Message was edited by: Max Ocklind

  • Is it Possible to Run SQL Script from Java prog

    Hello
    Is there any API by which we can run SQl Script file ,
    Just by giving database configration parameters and SQL Script file Path ,it will execute that script automatically

    You can excute SQL statemetns throught JDBC, but that doesn't have a facility to read those statements from a file. You'd have to write code to read the file and create and execute statements through JDBC. That should be pretty straightforward though.
    It's conceivable that there's a third party library out there that does it, if you know what to look for.
    If you're not familiar with JDBC, check out http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/

  • Force used cached/local rather than download "script" each time

    in my jsp , i have this
    <script language="javascript" src="something.js"></script>
    so each time the jsp page is loaded, the browser will gurantee go to the server and download something.js . is there anyway to force something.js to remain in user browser cache as long as possible > 30 days or so... so that the next time user visit the website, this something.js can be skipped and speed up page load time?

    I doubt it. Once the user closes his browser, I image the cache is wiped out. Also, it is not likely to keep his browser open for 30 days straight. I don't think this is a good area to look into to speed up your application. Even if you could cache the *.js, I doubt it will speed things up much. In performance tuning, you normally identify the worst bottleneck, fix it, then move on to the next one. Bottlenecks often involve fetching too much data from the database at once (example: fetching all the records from a database table rather than a subset). Also, sending too much information to the display, so much that the user can't possibly use at one viewing. In code, its often creating too many objects.

  • How to remove # from the end of each lines of .csv file.

    Hi ,
    I have uploaded .csv file from my local m/c (windows) to application server (unix) thru. FM 'ARCHIVFILE_CLIENT_TO_SERVER'
    Issue is when I open the file in AL11 it is showing # at end of each line. Click below link to see the output file.
    [https://docs0.google.com/document/edit?id=1PzjhljdCC2Wgj9L1dZ51G4pHJ0G_7jJwQAMqcJHdggc&hl=en#]
    Pls. help me how to remove all the # from the file.
    Thanks in advance.
    Devinder

    Hi ,
    use this
    Declare this 
    that # value is actually use of   Tab in file 
    so in order to remove that  use below code 
    DATA :C_TAB(1) TYPE c VALUE   cl_abap_char_utilities=>HORIZONTAL_TAB .
    loop at it_data .
    refno = it_data-line .
    REPLACE ALL OCCURRENCES OF c_tab IN refno WITH ''.
    modify it_data .
    endloop.
    Regards
    Deepak.

  • Format check for each column in csv file

    i want to find out how to check each column value is correct or not while uploading flat file(csv).
    after uploading to internal table,
    it should display error record and line no of the record.
    ex matnr(18) type c,
        werks(4) type c.
    if we input matnr value more than 18 characters in csv file,
    the entire record of internal table should be displayed in log file.
    it should validate before sap database validations.

    Hi,
    Since the file format is csv, while uplaoding the data to the program using the function module, the importing FILE FORMAT is 'ASC' and not 'DAT'.
    For this the Internal table should contain only one filed of type C length (255 or 1024, upto you).
    Then after this using SPLIT command you will push into another Internal table.
    This is where you have to perform the validations.
    In my opinion instead of checking the number of characters, chcek whether the material or plant exists in SAP or not?
    This is because you have already fixed the filed length of material to 18 charecters, obvious when you try to move a variable with more than 18 charecters to this filed, it will automatically truncate and take only 18 charecters..
    Hope I haev answered you. If still have any questions. shoot.
    BR
    Sree

  • Run SQL Script from a a Batch File

    I'm trying to schedulling a SQL Script by Windows Scheduler:
    START 
    "C:\Program Files\Microsoft SQL Server\100\DTS\Binn\dtexec.exe" /FILE "C:\Users\tstjs\TESTESTESTES.sql" /MAXCONCURRENT " -1 " /CHECKPOINTING OFF  /REPORTING EWCDI
    PAUSE
    However, when I run the batch file it giving the error below:
    ...sql" due to error 0xC00CE556 "Invalid at the top level of the document. Line 1, Column 1". This happens when loading a package and the file cannot be opened o r loaded correctly into an XML document. This can be the result of either provid
    ing an incorrect file name to the LoadPackage method or the XML file specified h aving an incorrect format. End Error
    How can I solve that problem?
    Thanks!

    Hi SaQvl,
    As Scott metioned, you shall use sqlcmd to execute a tsql script. You can reference the below link
    Use the sqlcmd Utility
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Is there a way to run a script to create an RPD file from MDS XML files

    We would be interested in using the MDS XML format for the RPD file in saving it in our Subversion source code control system, and I have seen how to do this in the User documentation.
    Our question is whether or not there is a way to use a command line tool to recreate the rpd file without having to use the Admin tool, so that we can automate the deployment of the RPD file from source code control to QA and Production environments.
    If we check in the RPD file directly, then there is a way to automate the process, but we would prefer to use the MDS XML format since this allows us to save changes in text format, not binary, but we still need to be able to automate the process.
    In the Oracle Fusion Middleware XML Schema Reference for Oracle Business Intelligence Enterprise Edition document, I have found that there is a way to automate the creation of the MDS XML files from an RPD file using this command:
    biserverxmlgen -M -R repository_pathname [-P password] -D output_directory [-8] [-N] [-Q|-S]
    So my question is basically is there a way to reverse this process, to use some command line tool (or Weblogic Scripting or some other mechanism) to create the RPD file from the MDS XML files? Are there options on the biserverxmlexec command that will do what I am asking?

    Hey dmfairley,
    Thanks for the question. You can absolutely export the project as .mp3, as outlined in this resource:
    GarageBand Help: Export songs to disk
    http://help.apple.com/garageband/mac/10.0/#gbnd7cbf5ed9
    Export songs to disk
    You can export a project to your computer as a stereo audio file.
    Exported files can be reused in GarageBand to save processing resources by replacing or bypassing multiple regions, instruments, and effects. They can also be used with other music applications and devices, posted on the Internet (on a webpage, or in the iTunes Store, for example), added to an iTunes playlist, or uploaded to a mobile device such as iPhone or iPad.
    1. Choose Share > Export Song to Disk.
    2. To rename the exported file, select the name in the Save As field, then enter a new name.
    3. Choose a location to save the exported file from the Where pop-up menu.
    4. Select the format for the exported file (AAC, MP3, or AIFF).
    5. Choose the quality setting for the exported file from the Quality pop-up menu.
    6. Click Export.
    Thanks,
    Matt M.

Maybe you are looking for

  • HELP I purchased an album with 2 songs and it won't download

    Help! I purchased an album with 2 songs and it won't download.I have a Windows XP.When i try to download it I get this message: There was a problem downloading"the songs i Tryed to download".An unknown error occurred(-50). Please check that the conne

  • Mac Mini - Lost IP Address

    I'm trying to help my dad who just got a Mac mini. Today he was cruising the Net just fine until shortly after dinner when he tried to get online and had no luck. The old Mac (eMac) was working fine connected to a router. The router is fine, the Comc

  • How do I add a pause to the beginning of TTS audio file ?

    Hello,   I am using Captivate 6, and I am having adding a pause to the beginning of my TTS audio file.  I would like to like up the text with the video.  I've attached a video to show you the problem.  Thank you!

  • Calculating fields in forms

    Help -- I am tryiing to get certain fields in a form to calculate based on selection of other fields.  The fields to be selected already have values in them.  (The same format I have used for several years, just new set of forms) I get through the po

  • Securing a BPEL Process with username/password in 10g

    securing a BPEL Process with username/password in 10g