URL download at timer interval

I want to capture the original JPG files posted by a webcam in the Arctic.
This webcam places a new JPG image on the following URL each second.
http://195.149.144.50/ImageHarvester/Images/icehotel_live.jpg
I have created a simple Automater Workflow that grabs and saves the JPG image. For now I have the press the "Run" button each time.
I want to embed it in a timer that runs the workflow each one or two seconds.
Q: How to do so and/or how to create the entire workflow in Applescript.
Regards
Coen

It's easy to do in AppleScript - either use a repeat loop or an idle handler.
Repeat loop:
repeat
 -- code here to fetch the image
  delay 2 -- wait 2 seconds
end repeat -- go back and do it all again
Or an idle handler:
on idle
 -- code here to fetch the image
  return 2 -- come back again in 2 seconds
end idle
Neither of them translate well into Automator.

Similar Messages

  • Reducing the time interval in file Adpt to write a flat file at a location

    Hi All,
    I hav a scenario where i hav to write a flat file (<b>XXX.txt</b>) to a location. b4 doing that, i hav to check whether <b>XXX.txt</b> already exists or not. If it doesn't exists then i hav to write the <b>XXX.txt</b> file there. if it already exists, then i hav to wait until that <b>xxx.txt</b> file gets deleted.
    In the receiver file adapter v hav an option <b>file construction mode = <u><i>create</i></u></b> which does the same thing. but the problem here is it is taking too long (<b>more than 5 min</b>) which is not at all acceptable in my case (it is ok <b>if it takes 1 min</b>).
    Is there any way to <b>reduce the time interval</b> using the same option?
    Or do we hav any <b>work around solution</b> for acheiving the same scenario?
    any help wud b appreciated.
    Thnx in Adv.
    Anil

    Anil
    As far as my knowledge goes I think it is not possible because we are not going to do anything from our end. XI is doing processing and creating a file for you. But you might be sending a large file at a time. So you have to improve the performance in your scenario. You check this urls on how to improve performance in XI:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/70ada5ef-0201-0010-1f8b-c935e444b0ad
    Improving performence in XI
    Maximum Permitted File Size in XI
    ---Satish

  • Changing images after time interval.

    Hi,
    I want to show images that am calling from xml file into flash, I want to show them each after a certain time interval, I want to do this in AS3 How it can be done?
    Thanks
    IceHero

    make use of Timer function
    var myTimer:Timer;
    //  timer_length=length_img;          //Total number of images in xml.
    and with each timer inteeval counter is increased by one to get the next image.
    Here is one sample.
    var xmlReq:URLRequest=new URLRequest("images.xml");
    var xmlLoader:URLLoader=new URLLoader();
    xmlLoader.load(xmlReq);
    xmlLoader.addEventListener(Event.COMPLETE,loadXML);
    function loadXML(e:Event)
        xml=new XML(e.target.data);
        length_img=xml.*.length();//Total no of images...
        //timer event is called on the COMPLETE event of the xml when the xml is loaded
        //then the timer event is called....
         timer();   
        loadImage();
      function timer()
        //to store the timer event.
         timer_length=length_img;
        myTimer=new Timer(7000,timer_length);
        //5000 means 5 sec delay and timer_length is the no of times this timer work.In this case it should work only up to the total no of images.Suppose       //  images are 12 in xml then timer will work 12 times.
        myTimer.addEventListener(TimerEvent.TIMER,timeLine);
        myTimer.start();
        function timeLine(e:TimerEvent):void
        //event listener of timer event.
        loadImage();
        counter=counter+1;
         function loadImage()
        //Loads the image by this function and various effects added here.
                urlImage=xml.image[counter].imgURL;
                var imgReq:URLRequest=new URLRequest(urlImage);
                //loads the image url and image in this request.
                imgLoader=new Loader();
                imgLoader.load(imgReq);
                //Loads the image in loader.
                mc_container.addChild(imgLoader);
                //loads the image in the mc_container movie.
                }//ends the load image function.

  • Set Time Interval with custom fields in generic list with view(SPViewCollection.SPViewType.Calendar)

    I need to set time interval range with custom date fields in sharepoint view SPViewCollection.SPViewType.Calendar. How to do that?
    My code is this:
    System.Collections.Specialized.StringCollection viewFields = new System.Collections.Specialized.StringCollection();
    viewFields.Add("FechaInicio");
    viewFields.Add("FechaFin");
    string query = @"<Query>
    <Where>
    <DateRangesOverlap>
    <FieldRef Name=""FechaInicio"" />
    <FieldRef Name=""FechaFin"" />
    <FieldRef Name=""RecurrenceID"" />
    <Value Type=""DateTime"">
    <Week />
    </Value>
    </DateRangesOverlap>
    </Where>
    </Query>";
    SPView newView = reserva.Views.Add("CalendarView", viewFields, query, 0, true, true, SPViewCollection.SPViewType.Calendar, false);
    "FechaInicio" and "FechaFinal" ara datetime fields in my generic list.
    Thanks.

    Hi,
    According to your post, my understanding is that you want to see the calendar view begin and end time for the time interval.
    We can use the SharePoint Manager to view the internal name for the begin and end time for the time interval.
    Open SharePoint Manager 2013->click your site->click
    Lists->select your list name->click Views->select your calendar view name->click the
    Schema Xml to check the internal name for the time interval begin and end.
    We can download the SharePoint Manager in here:
    http://spm.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Jitter Analysis Toolkit - Time Interval Error.vi

    Hi,
    I am having a requirement to find the Time Interval Error. I found that functions under jitter analysis toolkit is capable of finding the TIE(Jitter). I am not sure how to use these functions for my requirement.
    My requirement is: I will read the waveform data from a scope and have to process the data and find the Time Interval Error. My only input will be waveform data with jitter from a DUT.
    If anybody could help me with the flow how to use the Jitter analysis function for my requirement then it would be of great help. Also, a detailed description about the Tie Interval Error.vi also will be useful.
    Thanks,
    Mano

    If you are just Downloading to a Flat file then why dont you have logic in place for the program to dump the data read into  the file to that point depending on any criteria like accounts or customer then clear the internal table and run it in the back ground.
    try to use cursor to read the records from the table which will make it a bit more efficient than plain select stement.

  • The message to update to Firefox 4.1.0 keeps coming back even after I have downloaded it. How can I stop it??? It has been downloaded several times.

    This has been downloaded 3 times but the message to update keeps reappearing.

    Your UserAgent string in Firefox is messed up, probably by something that you installed. It shows that you have still have Firefox 3.6.17 installed. <br />
    [http://en.wikipedia.org/wiki/User_Agent]
    type '''about:config''' in the URL bar and hit Enter <br />
    ''If you see the warning, you can confirm that you want to access that page.'' <br />
    Filter = '''general.useragent.''' <br />
    Right-click the preferences that are '''bold''', one line at a time, and select '''''Reset'''''. <br />
    Then restart Firefox

  • How to set olite auto sync time interval

    Hi all,
    How to set the auto sync time interval for a publication item, publication or to a user.
    Can anyone tell me, which one is best among setting the auto syncing and syncing with the code.
    I am searching for the code to sync in java only upload or download and both. I tried with some code but it is giving me oracle.lite.mSync.SyncException: AES encryption error.
    Thanks in advance,
    Khadaree

    Bonjour,
    Même demande ;-)

  • Custom list - Calendar View - Time Interval

    Hi all,
    I have a custom list with "Project Start" and "Project End" columns. Then I have created a Calendar View. In the "Time Interval", I select "Project Start" for "Begin"
    and "Project End" for "End".
    In the programming code, how could I detect the column names that was chosen for "Begin" and "End" of the "Time Interval"? In this case, they are
     "Project Start" and "Project End".
    Thanks ^_^

    Hi,
    According to your post, my understanding is that you want to see the calendar view begin and end time for the time interval.
    We can use the SharePoint Manager to view the internal name for the begin and end time for the time interval.
    Open SharePoint Manager 2013->click your site->click
    Lists->select your list name->click Views->select your calendar view name->click the
    Schema Xml to check the internal name for the time interval begin and end.
    We can download the SharePoint Manager in here:
    http://spm.codeplex.com/
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to schedule a servlet to execute at a certain time interval?

    Hello,
              I have a requirement to publish content (xml file) based on a time interval
              (say, every 1 hour).
              This has to be done in a servlet/jsp environment.
              I have a servlet which creates the xml file and puts it in the right
              location.
              Is there a way to have this servlet execute every 1 hour (or whatever is the
              time interval)?
              Would appreciate any hints or pointers on this.
              Thnx.
              Mukul
              

    See Weblogic's time services or check out Flux (Sims Computing).
              Out of curiousity, why are you doing this with a Servlet?
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              Clustering Weblogic? You're either using Coherence, or you should be!
              Download a Tangosol Coherence eval today at http://www.tangosol.com/
              "Mukul Sood" <[email protected]> wrote in message
              news:3c4c8299$[email protected]..
              > Hello,
              >
              > I have a requirement to publish content (xml file) based on a time
              interval
              > (say, every 1 hour).
              > This has to be done in a servlet/jsp environment.
              > I have a servlet which creates the xml file and puts it in the right
              > location.
              > Is there a way to have this servlet execute every 1 hour (or whatever is
              the
              > time interval)?
              > Would appreciate any hints or pointers on this.
              >
              > Thnx.
              > Mukul
              >
              >
              >
              >
              

  • Time Interval for Daily Calendar in APEX 3

    Hi,
    we're looking at upgrading to Apex 3 and I have a question about the Daily Calendar time interval. Is there a way to change the interval to say, 15 minutes from the default 1 Hour?
    Cheers
    Kofi

    Hello Kofi,
    "Now looking at what I can see on apex.oracle.com, are you saying we'd just have to modify the daily calendar template?"The template only control the look of the calendar, not its functionality. If the default daily view meets your needs, you don't have to define any new templates.
    "I'd imagine that the whatever is creating the tags that will be displayed by the template needs changing to incorporate the other 15 minute cells I would add"Most of the calendar functionality you can control can be defined on the "Calendar Attributes" tab. The most important is the date column. If this column includes reference of time (on top of the date, of course) the APEX engine will automatically associate your entry with the proper "Hour" row. You are not adding cells. You are adding calendar entries. If several of these entries share the same hour slot, APEX will put all of then in the same row.
    The best way to understand it is simply define these entries. As I understand, you have access to apex.oracle.com, so it shouldn't be a problem.
    Regards,
    Arie.

  • Itunes wont open on my Dell laptop. I have uninstalled and re-downloaded several times. i would welcome any assistance on this matter. thank you.

    iTunes will not open on my dell laptop any more. I have uninstalled and downloaded several times but no joy. I would welcome assistance with this problem please. Thank you

    Hi jophis25,
    Thanks for visiting Apple Support Communities.
    If iTunes wont launch on your PC, the steps in this article can help:
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/ts1717
    All the best,
    Jeremy

  • Have a nice day. I can't open the books linked to the Adobe ID. Always the overallocation says. But some of the books I downloaded two times. Still, it gives a warning in the form of more installations.

    Have a nice day. I can't open the books linked to the Adobe ID. Always the overallocation says. But some of the books I downloaded two times. Still, it gives a warning in the form of more installations.

    I think you should ask in the Digital Editions forum, Adobe Digital Editions

  • My itunes does not want to work downloaded  5 times and still comes up with an error

    my itunes does not want to work downloaded  5 times and still comes up how can I fix this ?

    I have the same &*@#($@% problem....and I'm ******! I've tried everything. What error message are you getting? I am getting "Itunes folder could not be found or created. The default location is in my music folder". I've downloaded it a million times. It worked at first by going to a specific song and clicking it and/or plugging in my IPOD, but that stopped also.

  • How many times can I download Quick Time Pro once I purchased it?

    Last September I purched my update to Quick Time Pro. Now I bought a new Computer and re-formatted the old one, not being able to copy Quick Time Pro from the old to the new computer. Therefore I wanted to download again Quick Time Pro: In the settings window I introduced my program key and then "accepted". It said "Quick Time pro" below the registration line; however, the "apply" buttom was not operative. I checked and my Quick Time version was still "Quick Time 7", not Pro. My question is: how many times can I download Quick Time Pro once I purched it? If I can download it more often than once, how do I proceed? Thank you for your help.

    I started this thread:
    http://discussions.apple.com/thread.jspa?threadID=2454706&tstart=0
    but I'm afraid it's so involved that thus far, nobody has "touched" it.
    However, PART of my problem is similar to THIS person's.
    My problem is that I have QT on two different drives in one computer; the one I paid for [QT Pro?] and one I got for free; QT7. I fear the free QT7 might have "interfered" with my "Pro".
    So, taking your advice above, looking in the "Help" "About" menu, I find that BOTH of mine another "offer" above the word "About"; they suggest that I "Purchase QT Pro"...... so now, if BOTH of my QT's say THAT, then may I conclude that I do NOT have the Pro version? I'm meaning to say that if I already HAVE the Pro, they wouldn't suggest that I go and "Buy QT Pro".... right? Is this a safe conclusion? for ya'll that HAVE the Pro, and KNOW it, does it suggest to you that you could go and "purchase QT Pro"?
    Thanks,
    LarryR : )

  • Calendar time interval

    Hello,
    This is one of the questions asked in the forum by some one else too some time back.
    Using ADF 11g, By Default Calender component shows time interval of 1 hour. Can we configure it to show the time interval of 15 minutes.
    For example, default calendar shows
    1:00 AM
    2:00 AM
    3:00 AM
    But I would need something like
    1:00 AM
    1:15 AM
    1:30 AM
    1:45 AM
    2:00 AM
    Any input is greatly appreciated.
    Thanks....

    I am also in need of this feature, any inputs/suggestions are appreciated.

Maybe you are looking for