Odd and even years with Time Windows?

Hi All,
Does anybody know how to implement a time window for even years / ode years?
For example, a script A that needs to be executed every 1st January of even years and a script B that needs to be executed every 1st January of odd years.
At last, it possible to :
- specify hard coded dates in TW for these scripts,
- use particular pre conditions (which script from A or B has to be executed) with a common yearly TW
but better solutions are welcome
Thanks a lot.
Regards,
Yi Jiang

Hi Yi,
If you need this for only one case, I'd go for the one-off setup of specific dates.
If you have multiple cases, a simple way to achieve your goal is the following set of time windows:
- TW_EVEN_YEARS: from 1-1-2010 to 31-12-2010, 1-1-2012 to 31-12-2012, 1-1-2014 to 31-12-2014, ...
- TW_ODD_YEARS:  from 1-1-2009 to 31-12-2009, 1-1-2011 to 31-12-2011, 1-1-2013 to 31-12-2013, ...
and then
- TW_DAY1_EVEN_YEARS: day 1 enabled during TW_EVEN_YEARS
- TW_DAY1_ODD_YEARS: day 1 enabled during TW_ODD_YEARS
- TW_LAST_FRIDAY_EVEN_YEARS: last friday enabled during TW_EVEN_YEARS
- TW_LAST_FRIDAY_ODD_YEARS: last friday enabled during TW_ODD_YEARS
etc.
This way, you do not need to specify the dates for each case, only once.
Regards,
Anton.

Similar Messages

  • Printing odd and even pages separately (manual duplex)

    Hi
    I searched the forum and found some similar problems regarding Adobe Reader 8.1.2 : Adobe Reader 8.1.2 doesn't print odd and even pages correctly
    This was posted more than a year ago. A few days ago I encountered the same problem with Adobe Acrobat 8.1.2. I suspected that it could be beacause of outdated software. I then applied incremental patches up to 8.1.5. But the problem still persists.

    The link was about Reader, but I tried it with AA8.1.5 on a 3 page document and did indeed find the same problem. The 1st page printed out, but the 3rd page was missing when printing the odd pages. When printing the even pages, the 2nd page printed out 2 times. The 3rd page never showed up. I think this is what you are talking about. Wonder if they fixed it in AA9?

  • Time Machine spends hours partially backing up and then fails with "Time Machine couldn't complete the backup due to a network problem."  Tried suggestions I've seen on the forum.

    Time Machine spends hours partially backing up and then fails with "Time Machine couldn't complete the backup due to a network problem."  I've tried various suggestions I've seen on the forum but nothing has worked.  TIme Machine worked fine for the last two years and just suddenly started having this problem every time.  The only thing that was a little different is that the computer was off for a week while on vacation and then I added a large amount (20 GB) of photos. Now the requested backup size is 82GB, which is large, and process proceeds very slowly for 2-3 hours before failing with the message mentioned.  I have more than enough available backup storage space for it.  Before failing, Time Machine has backed up no more than 12GB or so of the backup.  It fails during different files each time.
    I've turned off the computer sleep feature, and I've checked that the NAS is set to never automatically power down. I normally backup over Wi-Fi, but I've also tried connecting to Ethernet and it still has the same problem.  It's odd because I also have a MacBook Pro that is still backing up fine to the same NAS using the MacBook's Time Machine. 
    I am using an iMac with OS X 10.6.8 and an Iomega StorCenter ix2-200 NAS.
    I have system logs that I can share if helpful.  The logged messages vary a bit from run to run, but here are some messages that I've been seeing:
    I always get this message near the beginning of the backup:
    Event store UUIDs don't match for volume: Macintosh HD
    I've gotten this messsage a number of times:
    Bulk setting Spotlight attributes failed.
    One Day
    Stopping backupd to allow ejection of backup destination disk!
    Another day
    1/7/12 10:44:20 AM
    mDNSResponder[18]
    PenaltyTimeForServer: PenaltyTime negative -112916, (server penaltyTime -1132397006, timenow -1132284090) resetting the penalty
    1/7/12 10:46:37 AM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0x1106be94
    1/7/12 10:46:37 AM
    kernel
    AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 0 currTrigger 1
    Another Day
    1/6/12 8:03:22 AM
    Google Chrome[164]
    Cannot find function pointer CMPluginInFactory for factory 3487BB5A-3E66-11D5-A64E-003065B300BC in CFBundle/CFPlugIn 0x16f99e20 </Users/smarmer/Library/Contextual Menu Items/Google Notifier Quick Add CM Plugin.plugin> (not loaded)
    1/6/12 8:04:02 AM
    com.apple.backupd[193]
    Copied 7.5 GB of 67.0 GB, 8866 of 8866 items
    1/6/12 8:06:58 AM
    /System/Library/CoreServices/CCacheServer.app/Contents/MacOS/CCacheServer[1013]
    No valid tickets, timing out
    1/6/12 8:29:44 AM
    mDNSResponder[19]
    PenaltyTimeForServer: PenaltyTime negative -148702, (server penaltyTime 2056822773, timenow 2056971475) resetting the penalty
    1/6/12 8:59:22 AM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0xa5ac380
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect started /Volumes/TimeMachine prevTrigger 0 currTrigger 1
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  doing reconnect on /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  soft mounted and hidden volume so do not notify KEA for /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  Max reconnect time: 30 secs, Connect timeout: 15 secs for /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    AFP_VFS afpfs_DoReconnect:  connect to the server /Volumes/TimeMachine
    1/6/12 8:59:22 AM
    kernel
    ASP_TCP asp_SetTCPQoS:  sock_settclassopt got error 57
    Another day
    1/5/12 3:48:55 PM
    mdworker[2128]
    CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary.
    1/5/12 4:24:54 PM
    mDNSResponder[19]
    PenaltyTimeForServer: PenaltyTime negative -42698, (server penaltyTime 1148718961, timenow 1148761659) resetting the penalty
    1/5/12 4:29:58 PM
    com.apple.backupd[2074]
    Copied 586.4 MB of 67.0 GB, 9891 of 9891 items
    1/5/12 4:39:00 PM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0xa1c0380

    bokon0n wrote:
    1/11/12 8:53:30 AM
    com.apple.backupd[1169]
    Warning: Destination /Volumes/TimeMachine does not support TM Lock Stealing
    1/11/12 8:53:30 AM
    com.apple.backupd[1169]
    Warning: Destination /Volumes/TimeMachine does not support Server Reply Cache
    Those indicate that your NAS is not fully compatible with Snow Leopard. 
    1/11/12 8:53:35 AM
    kernel
    jnl: disk2s2: replay_journal: from: 67182592 to: 78680064 (joffset 0xa7b8000)
    1/11/12 8:53:39 AM
    kernel
    jnl: disk2s2: examining extra transactions starting @ 78680064 / 0x4b09000
    1/11/12 8:53:39 AM
    kernel
    jnl: disk2s2: Extra txn replay stopped @ 79056896 / 0x4b65000
    1/11/12 8:53:49 AM
    kernel
    jnl: disk2s2: journal replay done.
    1/11/12 8:53:49 AM
    fseventsd[41]
    event logs in /Volumes/Time Machine/.fseventsd out of sync with volume.  destroying old logs. (253512 14 253512)
    1/11/12 8:53:50 AM
    kernel
    hfs: Removed 1 orphaned / unlinked files and 0 directories
    That looks like a problem was found with the file system (data) on the TM disk.  I don't know the details, but OSX tried to recover it from the journal, and found extra data on the drive.    Likely a result of the incompatibility mentioned above.
    1/11/12 9:47:40 AM
    com.apple.backupd[1169]
    Bulk setting Spotlight attributes failed.
    That's a problem writing to the NAS drive.
    But the backup continued after all this.
    1/11/12 1:25:07 PM
    kernel
    ASP_TCP Disconnect: triggering reconnect by bumping reconnTrigger from curr value 0 on so 0x9d00b44
    Something caused a disconnect.  Can't tell from the log what it was.
    I doubt it's a problem with something in OSX being damaged or corrupted, but reinstalling OSX isn't a major hassle, so might be worth a try.
    To be incompatible with Snow Leopard, this NAS must be at least a couple of years old.  It may be beginning to fail.
    Contact the maker.  See if there's an update to make it compatible with Snow Leopard.  If so, that might fix it.
    If not, or if that doesn't fix it, see if they have any diagnostics that will shed any light.

  • Different margin for odd and even pages

    Hi there,
    I am writing a book which will be printed in 2 sided paper. Therefor I will need different margin (left and right) for the odd and even pages.
    How is it possible in Pages? I am using Pages 5.2 (1860).
    Thank you.
    Sebastian.

    Indesign & Xpress are professional DTP applications. They can layout pages in any order you can imagine with custom margins. They are also complex to learn & expensive in comparison to Pages.
    There is a trial of Indesign IIRC…
    https://www.adobe.com/uk/products/indesign.html
    Quark also has a trial too…
    http://www.quark.com
    I expect there may be cheaper 'layout' software that is capable of arranging facing pages correctly (possibly from a single pages PDF export from Pages), but I just avoid apps like Pages if I need a finer level of output control.

  • TS4212 can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.  I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work

    can anyone help please..  since iCloud  came on the scene  My all in one printer  keeps saying  it is not USB connected.   what do I do
    I have been  looking for over a week now   and even chatted  with the USA  but cannot get it to work.
    I am really struggling

    Thanks
    someone named  Eloisa   she gave me   a phone no.   or visit hp.com/uk
    cannot make head nor tale of it all.  I am old.  and find everything hard to undertstand

  • Odd and Even Headers in Pages 5

    I think this has been asked before, but is it possible to making different odd and even-paged headers in Pages 5? I can't figure it out.

    You can take this to be the answer for most things Pages 5…
    … No!
    Use Pages '09 instead.
    Peter

  • I NEED TO SHARE MY LR CATALOGS FROM LAPTOP TO MAC AND EVEN IPAD WITH NO EXTERNAL DEVICES - I WOULD LIKE ANY EDIT I MAKE FROM ONE COMPUTER TO BE MADE ON THE OTHER - HOW DO I DO THIS ?? THANKS!!

    I NEED TO SHARE MY LR CATALOGS FROM LAPTOP TO MAC AND EVEN IPAD WITH NO EXTERNAL DEVICES - I WOULD LIKE ANY EDIT I MAKE FROM ONE COMPUTER TO BE MADE ON THE OTHER - HOW DO I DO THIS ?? THANKS!!

    All the info you do with your image files is stored in the Lightroom Catalog file. The Catalog file cannot be located on a network it must have a physical connection to the computer.
    While the Catalog is in use a LOCK file will be temporarily placed alongside which prevents its use by any other device.

  • I bought a new mac and i migrate with time machine...but the backup was a little bit old and weren't save the latest modify i made in my website.. is it possible take the uploded site in iweb? sorry but i don't speak english very well.

    I bought a new mac and i migrate with time machine...but the backup was a little bit old and weren't save the latest modify i made in my website.. is it possible take the uploded site in iweb? sorry but i don't speak english very well

    But what can I cut and paste? the html code or image and text directly?
    depend on which template you used.
    if you use iweb photos page template then you need to search for my photos page solutions in this forum.
    @ot: cut and paste from the online version
    @rw: You can drag an image from the website to the Desktop
    have your try your methods in iweb photos page?

  • Is it possible to have different margin settings for odd and even pages?

    Hi guys.
    I am formatting a book I want to get printed and it would be very helpful to have different margin settings on the odd and even pages so the text won't fall too close to the gutter (as happened in the proof copy I ordered!).
    It's possible to do this on Word, but I can't seem to do it on Pages? Am I missing something?
    Any help would be greatly appreciated. Thank you

    Thanks Peter. I upgraded to Pages 5 a while back. I guess my next question is.....is there any way I can downgrade to Pages 09...anywhere I can still download it from?
    Seems a bit of a backward step, but needs must

  • Suppose I have two identical laptops loaded with my current time machine back up. I take one on a trip and update it with time machine but leave it. I come back w time machine HD and connect the home laptop, will it just update or start over from scratch?

    Suppose I have two identical laptops loaded with my current time machine back up. I take one on a trip and update it with time machine but leave it behind. I come back with the time machine HD and connect it to the home laptop, will it just update or start over from scratch? is there a way to make it just update it?

    You might have better luck using a clone.
    Clone  - Carbon Copy Cloner          (Often recommended as it has more features than some others)
    Clone – Data Backup
    Clone – Deja Vu
    Clone  - SuperDuper
    Clone - Synk
    Clone Software – 6 Applications Tested
    Commonly Used Backup Methods

  • Just moved to new home, updated router and new system with Time Warner and now we cannot get the appl

    just moved to new home, updated router and new system with Time Warner and now we cannot get the apple any ideas?

    Castle15 wrote:
    just moved to new home, updated router and new system with Time Warner and now we cannot get the apple any ideas?
    Cannot get the Apple.. what?
    Model and actual device you are talking about?
    Apple covers a pretty huge range.. If you mean extreme.. did you reset it to factory and start over.. that is always necessary when you change a network. You cannot pick up a router from one home and network and plonk it into another and have it work.. aint gonna happen.
    You also need to power down any pure cable modem for 20min or so to get it to forget the old MAC address that captured the IP so the Apple ??? has a chance to work.

  • Odd and even rotating pages by file name

    Hi all,
    Hoping someone can help me trouble shoot my script below.
    The aim is to determined if the last two digits of the file name are odd or even and then rotate the file accordingly.
    I have been able to get the page rotation work by it's self but it seems to do nothing at all when trying to get the last two digits of the filename and use them as the variable "pgNum".
    Files will be named using the following convention....
    aa-02-02.pdf
    Thank you in advance for you help.
    =======================================================================================
    var re = /.*\/|\.pdf$/ig;
    var filename = this.path.replace(re,"");;
    var pgNum = filename.substring(-2);
    try {
        if(pgNum % 2) {
            var crtpagerotate = this.getPageRotation({nPage:i});
            this.setPageRotations({nStart: i, nEnd: i, nRotate:(270+crtpagerotate)%360});
        else {
            var crtpagerotate = this.getPageRotation({nPage:i});
            this.setPageRotations({nStart: i, nEnd: i, nRotate:(90+crtpagerotate)%360});
    catch (e)
        console.println("Batch Aborted: " + e )

    Try this:
    var re = /\.pdf$/i;
    var filename = this.documentFilename.replace(re, "");
    var pgNum = +filename.slice(-2);

  • Odds and evens

    Hi,
    How can i determine when a number is odd or even?.
    Rgds,
    Jose

    hi,
    Just divide by 2, and check the remainder.
    report ztest.
    data:
          rem type p decimals 2,
          val type i value 657.
    rem = ( val mod 2 ).
    if rem = 0.
      write:/ 'Even'.
    else.
      write:/ 'Odd'.
    endif.
    Hope this helps !!!
    Cheers
    Alfred

  • Can I do a fresh install of os x to new SSD and restore applications with time machine?

    I am upgrading to a new ssd.  I have my current system backed up with time machine.  Can I install/format (extended journaled) and then recover my time-machine stored application to my new ssd?

    "BTW, you should NEVER use the Finder to copy items from TimeMachine. Use the TimeMachine application to recover files and applications."
    I don't know how to use the finder to copy files.  I am assuming I will be propted to use the TimeMachine application as a part of the clean install from snow leopard ( I am not upgrading to lion as of yet...).  I will have my mac os x disk, time machine partition on a seperate external hard drive, BlacX 2.5/3.5 HDD usb docking station and new blank crucial m4 ssd at my avail.  save for my wits...

  • How do we define a Web ADI integrator and Associate it with a window?

    Hi,
    I'm on Oracle HRMS 12.1.3. I would want to export data into Excel from a form window (Navigation Path is: Leave Management > List Employees By Absence Type > Query).
    When I try to export data, it says: APP-PER-289792: Before you can run a mail merge or data extraction from this window, your system administrator must define a Web ADI Integrator and associate with the window ...
    I've tried looking around for articles on how to create Web ADI integrator s, but couldn't find one that explains how to associate the integrator with a given window. Any advise will be highly appreciated.
    Dula

    Hi Rajen and all,
    The sample tutorial you and Aj gave me seem for older version like 11i or 12.0. Can i still apply or follow it for 12.2?
    You also mentioned:
    My approach when I started was more like the "baby step" method ... started with something simple with these 2 responsibilities and a simple integrator and then continued by adding new features (like LOV, PopLists, Contents, playing with layouts, using FNDLOAD, etc....). It's  an interesting experience.
    Do you have the docs you follow to do the above process? What 2 responsibilities are you referring to? It is "Desktop Integration" & "Desktop Integration Manager"?
    I thought "Desktop Integration Manager" is the super-user and has all the "powers" needed for adi?
    What powers does "Desktop Integration Manager" have,  that "Desktop Integration" does not have? and vice-versa.
    Thanks a lot,

Maybe you are looking for

  • UNLIMITED DATA PLANS! PLEASE BRING IT BACK VERIZON TO EVERYONE!

    I think Verizon should bring back the Unlimited Data Plans because, many students uses so much Data for Videos for their homework and Videos takes up so much Data and there is no way an average family can afford to pay over $100 for a 20GB more Data

  • Connecting chrome to hp printer

    Hi  I've just bought a hp deskjet 2540 series and not having much joy in connecting it to my chrome book. Is there something that I'm not doing right? 

  • Synched video doesn't appear on iPod

    I tried converting some mpegs and noticed they played ok in iTunes but didn't even appear on the 30 GB video iPod (though they showed up on the iPod's listing under iTunes). Thinking there was something wrong w/ the conversion (some spec that was off

  • Problem invoking short-lived processes involving Document object

    I have two LiveCycle instances on two different server environments(Dev and Test). I have a few common short-lived processes and forms. All these processes involve Document objects. These processes run fine on one environment(Dev) and have problem in

  • Correctly defining site in Dreamweaver to accomodate Contribute

    I am getting ready to set up a new Dreamweaver site to work with Contribute and am hoping to avoid the problem I have with my current site. Right now, the site definition points to an "off-line" copy of the site on a local network drive. I make all p