Forcing Dates

I'm after an applescript that will allow me to force dates that fall on a weekend back to a weekday. For example we have a recurring event that happens on the 7th of every month, however if the 7th falls on a Saturday we need to force it to the previous Friday, and if the 7th falls on a Sunday we need to move it forward to the next Monday.
Does anyone know how to do this or even if it is possible? We're using iCal 1.5.5 on Mac OS X 10.3.9.

If you prefer the short answer: No. The longer answer is a good bit longer but gets you no further.
It SHOULD be possible, but I don't think it is.
Applescript won't do it for you. You may not be aware that setting up a recurring event puts only a single event in your calendar file. Every time iCal displays a window with a time frame it calculates which recurring events should be displayed, and displays them. If you modify one of the recurrences iCal makes a copy of the event with the changes and saves it as a detached recurrence. Applescript doesn't know how to make a detached recurrence. Indeed, Applescript has to start with the first occurrence and work forward, parsing the recurrence details, to find whether there is a recurrence in the current time frame. It can be done in simple cases. This is not a simple case.
iCal's interface for setting recurrences does not allow you to set all the possibilities that it can handle. For example, you can't set a recurrence on the last day of the month, but if you have one, iCal will properly display it. The easiest way of "fooling" iCal for such things is to make a close approximation to what you want, drag it to the desktop, delete it in iCal, edit the desktop copy with TextEdit (or similar) to get the correct RRULE (recurrence rule) then drop the edited file back on to iCal.
I think (and here I would welcome correction from an expert!) that editing the rule to
RRULE:FREQ=MONTHLY;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR;BYMONTHDAY=7,8,6;BYSETPOS=1
should work, if iCal was fully compliant with the calendar specification - but there are certainly instances where iCal is not fully compliant, and either this is one of them, or I am not correctly interpreting the standard - or both!
AK

Similar Messages

  • What else must I do to force data entry other than making the field required in LC 9 Forms Designer?

    I am trying to make sure that fields are populated with data prior to moving to the next field, but it seems that simply making the field required is not sufficient.  What else must I do to enforce data entry within required fileds?
    Thank you,

    There are a variety of scripting techniques that can be used based upon the form requirements, UI aesthetics, designer preference,... The script below forces data entry into a text field object called 'tf1' but it is a dangerous practice and should be used carefully. You may find yourself in a infinite loop based upon the tab order. A safer pattern includes global field validation upon submit.
    // form1.page1.subform1.tf1::exit - (JavaScript, client)
    if (this.isNull) {
      xfa.host.messageBox("tf1 is a mandatory field.","Text Field 1 Error",0);
      xfa.host.setFocus("form1.page1.subform1.tf1");
    Steve

  • Iphone 5s and "forced data useage"

    Hi all,
    I was an android guy for years but finally went for an iphone 5s this time around and signed up with Verizon for the new $45 plan. Unltd Text, talk, and 250MB of data or AKA "The Wifi Only Plan." I came from metro PCS and enjoyed the same deal, but now I get with a better carrier with better coverage. I am fine with a low data amount plan because I have wifi at home and work. But this iphone 5s is forcing me to use data and I believe that it is not fair and want a rep to chime in on this situation. Some of the points may be able to be fixed on my end - so let me know how, but i think most are in a catch 22.
    1) Most importantly... Voicemail. I go to the voicemail icon on my phone and if my cellur data is disabled... then I can not reach it. This forces me to turn on my data just to fetch voicemail which is a basic service and should be inclusive into my unlimited voice portion of the plan. Is there a way in the iphone 5s to get around this?
    2) iMessage. This is sent across the data line of the carrier. I have had a few problems sending and receiving messages iphone to iphone because I have supposedly turned the data feature to iMessage off. Not good, not reliable service.
    3) System Services. Eventhough it is only KBs of data it is still my data pool and should not have to pay for the auto system services that run on the phone. If I can control this on Iphone, lemme know where, but it seems that if I turn my data on for my phone these will auto send and receive data to where as individual apps I can block.
    Also is there a data warning text I can receive when I get close to my monthly alotment?

    I'm not a rep, but ....
    1. Dial *86 instead of using the built in Visual Voice Mail.
    2. Don't use iMessage. Unassociate your device with iMessage. Turn it off and just use SMS.
    3. You can't change that.  And as you noted, it doesn't use much data.
    Yes.  Log in to your My Verizon account you can set data alerts.

  • FORCED DATA PACKAGE WITH PHONE UPGRADE

    I have been a verizon customer since cell phones were cool.  I started with a bag phone in my car.   I have 5 verizon phones.   Four on a family plan and one through a work plan.  
    My son wanted to upgrade his phone today which is eligible for early upgrade.  I was very disappointed to find out that any decent phones available come with a mandated data package.   There are two options - for the really nice phones it is $29.99/month, for the basic phones like the LG Envy which I have now it is $9.99/month.   
    So right now I spend on the family plan about $2000 per year on cell phones.  (It used to be about $3,500 before I got my work phone).   If we renewed to the basic LG Envy phones (which I like)  it would be an extra $40/month or $480 per year.  If we upgraded to the nice phones it would be an extra $120/month or $1,440 per year.  For unlimited data usage this is not a bad deal.  
    There is only one problem - I DONT WANT IT OR NEED IT!!!!!!!!   I have computers at home with wireless, a laptop with wireless, an i-touch with wireless.   Also, my spouse or children do not need unlimited data or the internet on their phones!   Who wants to pay for a 16 and 13 year old to have unlimited data and wireless? 
    I  spoke to Verizon customer service and they told me which phones are available with no data package.  Nothing against LG and Samsung but the phones available under those plans are garbage.   They have small screens and are pathetic little phones with limited features.  Even though I don't use the internet on my phone why wouldn't I want one  with a great camera, a large screen for pictures and video messaging?   
    I realize from talking to customer service that they did surveys to see what customers wanted.  I guess I am one of the only people out there that likes advanced features on a phone with out the internet available to me at all times.  I don't agree with this.  Or is it just that it is more convenient to squeeze another $500 or $1500 per year from a family?   Why not double your sales when you can.  I know every other carrier is doing it which is why Verizon can force this on its customers.   Customer service reminded me of this several times. 
    Could we afford donating this money to Verizon for no purpose? Probably but why the {word filter avoidance}
    would we?  No wonder so many people are in debt.  I think our money could be used better to send kids to college, pay the mortgage or invest it.   I think this policy is hostile towards customers.  If they really want to serve their customers offer the phones at higher price without a data package.  I guess that wouldn't work since Verizon makes its money from service agreements not the equipment.  
    - Unhappy Verizon Customer looking for other options......

    Ryder435 wrote:
    I have been a verizon customer since cell phones were cool.  I started with a bag phone in my car.   I have 5 verizon phones.   Four on a family plan and one through a work plan.  
    My son wanted to upgrade his phone today which is eligible for early upgrade.  I was very disappointed to find out that any decent phones available come with a mandated data package.   There are two options - for the really nice phones it is $29.99/month, for the basic phones like the LG Envy which I have now it is $9.99/month.   
    So right now I spend on the family plan about $2000 per year on cell phones.  (It used to be about $3,500 before I got my work phone).   If we renewed to the basic LG Envy phones (which I like)  it would be an extra $40/month or $480 per year.  If we upgraded to the nice phones it would be an extra $120/month or $1,440 per year.  For unlimited data usage this is not a bad deal.  
    There is only one problem - I DONT WANT IT OR NEED IT!!!!!!!!   I have computers at home with wireless, a laptop with wireless, an i-touch with wireless.   Also, my spouse or children do not need unlimited data or the internet on their phones!   Who wants to pay for a 16 and 13 year old to have unlimited data and wireless? 
    I  spoke to Verizon customer service and they told me which phones are available with no data package.  Nothing against LG and Samsung but the phones available under those plans are garbage.   They have small screens and are pathetic little phones with limited features.  Even though I don't use the internet on my phone why wouldn't I want one  with a great camera, a large screen for pictures and video messaging?   
    I realize from talking to customer service that they did surveys to see what customers wanted.  I guess I am one of the only people out there that likes advanced features on a phone with out the internet available to me at all times.  I don't agree with this.  Or is it just that it is more convenient to squeeze another $500 or $1500 per year from a family?   Why not double your sales when you can.  I know every other carrier is doing it which is why Verizon can force this on its customers.   Customer service reminded me of this several times. 
    Could we afford donating this money to Verizon for no purpose? Probably but why the {word filter avoidance}
    would we?  No wonder so many people are in debt.  I think our money could be used better to send kids to college, pay the mortgage or invest it.   I think this policy is hostile towards customers.  If they really want to serve their customers offer the phones at higher price without a data package.  I guess that wouldn't work since Verizon makes its money from service agreements not the equipment.  
    - Unhappy Verizon Customer looking for other options......
    Dittos to TedKord!
    There are many with situations similar to yours.  Our first of 5 lines just went month-to-month this week as there are NO UPGRADE OPTIONS to upgrade from an enV2 without the mandatory data surcharge of $120 per year.  If you are a facebook member you can do a search for Verizon and you will find a group there, several thousand strong now, that also agree and share your frustration.  You can also find links there to contact the FTC, FCC, Verizon, etc.   Take a look and join us if you haven't already.

  • InDesign CS6 interactive doc (pdf): how to force DATE to be entered?

    In the past I have made a few interactive pdf's which was a chore and horrible to do because you had to do a lot of work in Acrobat. With CS6 things are a LOT better! Really great! I have ONE problem though...
    With Acrobat I could FORCE a user to enter a date in a specific format (dd-mm-yyyy) and if you didn't do that, a popup would show up (not made by me but a default Acrobat popup). But with InDesign I can't get this done: I can only create frames in which you can type text and that's it...
    Is it possible to somehow force a user to enter a date?

    You can drag the Date month sample form elements into your indesign document. Modify the labels according to your design and then add one more list box for year type. Finally export to interactive PDF to see the result. Its kinda FORCING user since user will have to select from drop down and not type anything they want.

  • Verizon OUTRAGEOUS with forced data plans

    I've used Palm products since the pilot. I've had a centro for 2 yrs with verizon...now I want to upgrade to Palm Pre 2, but verizon is forcing me to buy a $30/month data plan that I don't want and will never use. I love my palm devices for reasons other than internet access. If Verizon doesn't change this policy, I'll have to abandon palm and go with another carrier. Isn't Palm losing sales becaue of verizon's greed? They should put pressure on Verizon to abandon this outrageous, greedy tactic to abuse their customers.
    Post relates to: Centro (Verizon)

    Contact the FCC immediately and file an informal complaint.  As a communication company, Verizon should never by permitted by the federal government to deny internet access by its VZAccess Manager firewall and unreasonable charges.  You can find the FCC information online very easily.  Fill out the PDF and submit it.  The more of us who do that, the more responsive the federal agency will be to force Verizon to reverse its predatory scheme.

  • Forced Data Plan's

    Why must Verizon force a data plan on its customer's just because they want a nice phone.  I have 5 phones on my plan and its upgrade time.  If I get 3G Multimedia capable phones I must pay for a Data pkg that we do not want or will ever use.  This Data pkg is not used when making a normal calls or texting.  We looked at the Samsung Alias 2 when it orginally cameout and it didnot require a data pkg.  Now that we are ready to buy it suddenly needs a data pkg.  Verizon make the data plan optional or I'm going to take my 5 phones to sprint, along

    Bluedevil_2014 wrote:
    Maybe you know, is there a data charge for Back up Assistant?. I have been told yes and no.
    When you initially download and install backup Assistant to your phone, it uses a small amount of data ($1.99 will be the one time charge if you are on a PAYG plan, or it will be taken from your 25 BM allottment if that is what you have.  It's less than 1 MB though.
    After that, there is no charge for backup assistant when you have a MyVerizon account.  That only makes sense because part of Backup Assistant is to view your contacts, edit them, import and export to CSV files, through your MyVerizon account.  Your contact list is automatically backed up every day based on the schedule you set, and your contacts are always available online, or on a file you can save on your computer.

  • Forced data plan

    I'm eligible for a new phone in Jan 2010. I currently have 4 Samsung Alias 2's on a family plan. The Alias 2 phone is listed as a free upgrade, so I figured I'd get 4 more of them. But, now it lists a requirement to purchase a data plan for each Alias 2 phone. I called verizon and explained that I've had the Alias for almost 2 years now with no data plan. She at first said that the phone may be a "updated" version of the Alias,making it a smart phone,  which I politely informed her wastotal **bleep**. She then simply stated that the data plan is Verizons new policy and it' is take it or leave it. I can continue without a contract with no data plan, but if a phone breaks and I replace it with another Alias 2 I will be forced to purchase a data plan at that time. This makes NO sense to me, and although I've been happy with Verizon for the past 4 years, it looks like it's time to change companies. 

    Yes, unfortunately the Alias 2s are left over from the 3G/multimedia phone category, which required the $10 data plan. I noticed the Zeal, which is almost the same phone, does not indicate it requires the data plan. The Zeal is not free like the Alias 2, but it was recently released so I anticipate the price will drop eventually.
    I don't think there is any way to get out of adding the data plan if purchasing more Alias 2s. Sorry.

  • Forcing data to be writen from buffer to datafile

    HI,
    Could someone help me with the following, (using oracle 11g r2)
    If I conduct an experiment that updates a row in a table lets say the row has a column called 'test' and I update the value of test from 'a' to 'b'
    I then run another update and change 'b' back to 'a'
    I then repeat the process 2000 times
    Am I right in thinkin that this update will be carried by ammending the data in the buffer cache only? it will have nothing to do with the write speeds of the disk?
    how can I force the updata to be writen to disk each time?
    any help would be appriciated

    Maris Elsins wrote:
    For the recoverability purposes each commit makes sure changes are written to the redo logsChanges are written to redo logs when they happen regardless you commit or not later:
    SQL> create table t1(x number);
    Table created.
    SQL> select
      2    n.name, t.value
      3  from
      4    v$mystat   t join
      5    v$statname n
      6  on
      7    t.statistic# = n.statistic#
      8  where
      9    n.name = 'redo size';
    NAME                      VALUE
    redo size                119764
    SQL> insert into t1 select level from dual connect by level <= 100000;
    100000 rows created.
    SQL> select
      2    n.name, t.value
      3  from
      4    v$mystat   t join
      5    v$statname n
      6  on
      7    t.statistic# = n.statistic#
      8  where
      9    n.name = 'redo size';
    NAME                      VALUE
    redo size               1733608
    SQL> rollback;
    Rollback complete.
    SQL> select
      2    n.name, t.value
      3  from
      4    v$mystat   t join
      5    v$statname n
      6  on
      7    t.statistic# = n.statistic#
      8  where
      9    n.name = 'redo size';
    NAME                      VALUE
    redo size               2050424
    SQL>  SY.

  • Forcing data to appear as row headers

    How do I force a list of values from the SR Area to appear listed as row headers even if there's no data for that row? I tried writing a code to pick up the SR# for it and assign a null value in the # of SRs column so that it doesn't get counted in the totals. However, this will defy our business process since the report is required weekly and I can't be creating weekly SR's for the sole purpose of creating "dummy" data to force the row headers to show.

    So you actually want to outer join the LOV, to the fact table, or not?
    In this case I would advise you the following.
    Create one request with the actual data of that week, holding only the LOV values that have data.
    For example:
    LOV Value 1____10
    LOV Value 4____12
    LOV Value 6____8
    In the second request add all the LOV Types and use no fact but a dummy column, holding the formula: CAST(NULL as INT).
    LOV Value 1____NULL
    LOV Value 2____NULL
    LOV Value 3____NULL
    LOV Value 4____NULL
    LOV Value 5____NULL
    LOV Value 6____NULL
    Then use a UNION to combine both requests.
    Then you should get the following result:
    LOV Value 1____10
    LOV Value 1____NULL
    LOV Value 2____NULL
    LOV Value 3____NULL
    LOV Value 4____12
    LOV Value 4____NULL
    LOV Value 5____NULL
    LOV Value 6____8
    LOV Value 6____NULL
    This is still not what you want because you now need to remove the double records.
    You can do this by using the pivot table view, which will result in the following table:
    LOV Value 1____10
    LOV Value 2____NULL
    LOV Value 3____NULL
    LOV Value 4____12
    LOV Value 5____NULL
    LOV Value 6____8
    Regards,
    Stijn

  • Force date box to use popup.

    I would like to force users to have to use the date picker popup window to select dates, due to formatting issues. Is there a way to do this?

    Rodney:
    This is what we've thought of at our company. Unfortunately they want a better solution:
    put in a note for users "Date format must be MM/DD/YYYY or MM/DD/YY, or you can use MM-DD-YY, MM-DD-YYYY" and use the appropriate PL/SQL to convert to dates.
    select to_char(to_date('06-06-06','MM/DD/YY'),'MM/DD/YYYY') from dual
    comes out fine as I'm sure you already know. Processes conditionally based on length of the date.
    Problem is that our users are going to want to enter it as June 06, 2005. We can process this via SQL like (which converts easily to PLSQL again and can conditional process)
    select to_char(to_date('June 6, 2006','Month DD, YYYY'),'MM/DD/YYYY') from dual
    I'm just wondering if there's an easier way, since this means that there will be 4 processes for each date in theory.

  • Force Date "Display Pattern"??

    Greetings,
    We are having troubles with the "Display Pattern" of Date fields.  The scenario is that we receive data in XML, apply it to the form, and then want it displayed in a specific format on the Form, but it doesn't work like it should.
    For example,
    1. Our XML contains dates in the format MM/DD/YYYY (e.g. 05/11/2010).
    2. We want it displayed as MMMM D, YYYY (e.g. May 11, 2010)
    So we set the "Display Pattern" of the "Date" field in LiveCycle, to equal date{MMMM D, YYYY}
    But when we receive the data in the MM/DD/YYYY format from the XML, it still gets displayed on the Form as MM/DD/YYYY.
    If we re-select the date on the form itself, the correct pattern is displayed.  But we need these to be correct when the data is applied, and this doesn't seem to work.
    Suggestions?  Something we're missing?
    Thanks in advance!!
    GS

    The Date Control expects data in the format YYYYMMDD.. But your XML is sending the data in MM/DD/YYYY, so you need to convert the input data to the required format. Then only the Display pattern can work.
    Put the below code in the Initialize event of the Date control..
    Language: FormCalc
    $.rawValue = Ltrim(Rtrim($.rawValue));
    $.rawValue
    = Num2Date(Date2Num($.rawValue,"M/D/YYYY"), "YYYYMMDD");
    Thanks
    Srini

  • Force date to be stored as month 01, year

    I have a date field in a report.
    When I input or edit, a datepicker calender pops up and the user click on a date.
    What I like to do is when the user pick on any date, the database stored as the 1st of the month.
    So no matter what the date picked, the data captured is month 01, year.
    Is there a way to do this?
    Thanks.

    Hi,
    Maybe you could set up an insert/update trigger on your table.
    Something like this
    CREATE or REPLACE TRIGGER trigger_name
    BEFORE INSERT OR UPDATE
        ON table_name
        [ FOR EACH ROW ]
    DECLARE
    v_Month VARCHAR2(20);
    v_Year VARCHAR2(4);
    BEGIN
      v_Month := TO_CHAR(:new.date_column, 'Month');
      v_Year := TO_CHAR(:new.date_column, 'YYYY');
      :new.date_column:= TO_DATE (v_Month|| ' 01 ' || v_Year, 'Month DD YYYY');
    EXCEPTION
        WHEN ...
        -- exception handling
    END;--
    Paulo Vale
    http://apex-notes.blogspot.com

  • Data in one field requires data in another field

    I am trying to build a form that forces data entry (text)
    into a field if a previous ( or other ) field has data in it.
    Example: If there is data in the "Full Name" block, you have
    to put data in the "Crew Name" block.
    If the "Crew Name" block contains data, all is fine,
    otherwise an error message is created.
    Also, how do I validate this ( is it even required ? )
    Thanks ! ~The Noob~

    Droto wrote:
    > I am trying to build a form that forces data entry
    (text) into a field if a
    > previous ( or other ) field has data in it.
    > Example: If there is data in the "Full Name" block, you
    have to put data in
    > the "Crew Name" block.
    > If the "Crew Name" block contains data, all is fine,
    otherwise an error
    > message is created.
    > Also, how do I validate this ( is it even required ? )
    > Thanks ! ~The Noob~
    >
    Are you saying that "Full Name" is not required? But if there
    is data in
    the "Full Name" field, then "Crew Name" is required?
    Mick

  • No English language setting with European date formatting available

    The English language setting in my iPod bought in Finland forces date format to the American MM/DD/YYYY style. There is no English language setting that would result in the European DD.MM.YYYY or DD/MM/YYYY format.
    Either making date formatting separately configurable (as time formatting already is), or adding another English locale with European-style date formatting solves this problem.

    Yes I agree, date format should be language independant. This is very annoying!

Maybe you are looking for

  • [Solved] PCMCIA gprs/edge and wvdial, don't work

    Hi all... I have bought a pcmcia gprs/edge Lightspeed EDGE-100M, but don't work. I load the modules pcmcia, pcmcia_core, rsrc_nonstatic, yenta_socket (I have found they whit hwdetect --show-pcmcia). PCMCIA it comes recognized like ttyS0. I run wvdial

  • FW Upgrade on M5000 - Solaris 10 05/08

    Dears I have M5000 with solaris 10 05/08, FW (XSCF) version 1060. My question is "I am going to upgrade FW (XSCF) with 1071. so can I upgrade it?" because there are no any docs or suggestion for solaris 10 05/08. Any suggestion or help .... ///Tanvir

  • Not able to draw any AP Divs

    Hello everyone. I'm quite new to Dreamweaver so please bear with me. For some reason all of a sudden I can't draw any AP Divs anywhere except  on the background of a window. When I try to draw an AP div over another layer I can't; my mouse gets the b

  • Rename file server

    Hi experts, Can anyone help me in this I want to select one file from application server and rename it in same location. Or copy the same file with another name guide me friends Regards

  • Add SIP Domain to Lync 2013

    Hello, I'm looking to add an additional SIP domain to Lync 2013 Standard.  We plan to give a group of users a login with the new SIP domain and add them to an existing front end pool.  Aside from adding the SIP domain within Topology Builder, what ar