Number of the week in Ical

Howcome the number of the week isn´t shown in Ical????

there's no option for a week view in iCal, but John Maisey wrote this applescript.
paste it in the Script Editor (Applications --> AppleScript --> Script Editor) and run it once...
if your weekview starts on an other day change this line:
set daysText to "MonTueWedThuFriSatSun"
to (example)
set daysText to "SunMonTueWedThuFriSat"
--Copy below this line into Script Editor and click run --
--Annual Week numbers
--John Maisey
--4/2/5
set numberOfWeeks to 1000 -- change as needed
set daysText to "MonTueWedThuFriSatSun"
set aDate to (current date)
set day of aDate to 1
set month of aDate to January
set aDay to weekday of aDate
set weekNo to 1
--Day of week as num. starting with 0
set aDayText to (characters 1 thru 3 of (aDay as text)) as text
set dayOff to ((offset of aDayText in daysText) - 1) / 3 as integer
if dayOff is less than 5 then
set StartDate to aDate - dayOff * days
else
set StartDate to aDate + (7 - dayOff) * days
end if
tell application "iCal"
set newCal to make new calendar at end of calendars with properties {title:"Week No."}
set myCal to (count of every calendar)
end tell
repeat with myCount from 1 to numberOfWeeks
if (month of StartDate is December) and (day of StartDate is greater than 28) then set weekNo to 1
if (month of StartDate is January) and (day of StartDate is less than 5) then set weekNo to 1
set weekText to "Week No. " & weekNo
tell application "iCal"
tell calendar myCal
make new event at end of events with properties {start date:StartDate, allday event:true, summary:weekText}
end tell
end tell
set weekNo to weekNo + 1
set StartDate to StartDate + 7 * days
end repeat
--

Similar Messages

  • How to know the number of the week in iCal ?

    Hi !
    I'm very enjoying iCal. But, there is something very important for me that I can't find in iCal !
    I need to know the number of the week (in Month, Week or Day views).
    Is that a way to easily see it ?
    Regards,
    ant
    iMac G5   Mac OS X (10.4.2)  

    there's no option for a week view in iCal, but John Maisey wrote this applescript.
    paste it in the Script Editor (Applications --> AppleScript --> Script Editor) and run it once...
    if your weekview starts on an other day change this line:
    set daysText to "MonTueWedThuFriSatSun"
    to (example)
    set daysText to "SunMonTueWedThuFriSat"
    --Copy below this line into Script Editor and click run --
    --Annual Week numbers
    --John Maisey
    --4/2/5
    set numberOfWeeks to 1000 -- change as needed
    set daysText to "MonTueWedThuFriSatSun"
    set aDate to (current date)
    set day of aDate to 1
    set month of aDate to January
    set aDay to weekday of aDate
    set weekNo to 1
    --Day of week as num. starting with 0
    set aDayText to (characters 1 thru 3 of (aDay as text)) as text
    set dayOff to ((offset of aDayText in daysText) - 1) / 3 as integer
    if dayOff is less than 5 then
    set StartDate to aDate - dayOff * days
    else
    set StartDate to aDate + (7 - dayOff) * days
    end if
    tell application "iCal"
    set newCal to make new calendar at end of calendars with properties {title:"Week No."}
    set myCal to (count of every calendar)
    end tell
    repeat with myCount from 1 to numberOfWeeks
    if (month of StartDate is December) and (day of StartDate is greater than 28) then set weekNo to 1
    if (month of StartDate is January) and (day of StartDate is less than 5) then set weekNo to 1
    set weekText to "Week No. " & weekNo
    tell application "iCal"
    tell calendar myCal
    make new event at end of events with properties {start date:StartDate, allday event:true, summary:weekText}
    end tell
    end tell
    set weekNo to weekNo + 1
    set StartDate to StartDate + 7 * days
    end repeat
    --

  • How can I create the numbering of the week in ICal

    I want to know how I can adjust ICal with the numbering of the week. I really need the number of the week often.
    Can somebody give my an answer, I looked for it and I can't find the option?
    Regards,

    Teduister,
    Welcome to Apple Discussions.
    According to Hawk Wings, you may want to consider: NumSemaine...NumSemaine is a little app which adds the week of the year to “All Day Event” Section of your iCal window.
    Not least, this drives home how soon Christmas will be upon us.
    It can also generate a ics file containing all the weeks of the year and their date ranges.
    ;~)

  • Date - how to get the number of the week

    I have a Date - string - w/e can be convered thats not the problem
    but how do I get the number of the week cuz the database holds events per week so I need to know the number of the week.
    I tried going true the api but I failed to find the right fuction, aldoh I recall seeing it somewhere a while ago.
    anyways got a deathline so easy dukies, first come first serve.

    how's this then?int weekOfYear = 0;
    SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd"); //your String format
    Date date = null;
    String dateString = "2003/06/16";
    try {
      date = sdf.parse(dateString);
    } catch (ParseException pe) {
      //hande bad date format
    if (date != null) {
      GregorianCalendar calendar = new GregorianCalendar();
      calendar.setTime(date);
      weekOfYear = calendar.get(Calendar.WEEK_OF_YEAR);
    Warning: Be careful of your locale settings when using week of year, you may need to investigate setFirstDayOfWeek(int value) and setMinimalDaysInFirstWeek(int value) to ensure you get the results you expect.

  • Oracle reverse date : inupt (number of the week, number of the date, year)

    Hi experts,
    *I have a date that has been stored in three separated columns in a oracle data base 10g:
    -number of week: for example 30. (range 1-53)
    -number of the day: for example 5. (range 1-7).
    -year : for example 2010.
    *i need to write a SQL code which concate and convert this three columns to one signle date in the format dd/mm/yyyy.
    *This a concrete example:
    -input:
    number of the day: 2, number of the week :23, year 2010.
    -ouput:
    07/06/2010
    Any idea will be welcome
    Best regards.

    Hi,
    Here's one way :
    alter session set nls_date_language = "english";
    alter session set nls_territory = "america";
    WITH date_parts AS (
    select 2010 yr, 23 wk, 2 dy from dual union all
    select 2010 yr, 39 wk, 2 dy from dual
    SELECT next_day(to_date('0101'||yr,'DDMMYYYY')-7, 'SUN') - 1
           + 7*wk
           + dy
           AS dt
    FROM date_parts;You might have to make some adjustments due to your nls settings.

  • Can I change the first day of the week on my ipod touch

    I have a new Ipod touch, which i recently upgraded to OS 3.0. I was wondering if it is possible to set the first day of the week in Ical to Sunday instead of Saturday?
    Thanks

    The International Region Format controls the start day of your calendar display. UK region format sets the display to start on Monday. US region format will start the calendar on Sunday. However, that setting also controls your date, time and phone number formats, so using it would only cause you more problems.
    Tell Apple you want the option to set the calendar week start independent of the international region format using the feedback page. http://www.apple.com/feedback/ipodtouch.html

  • Setting the first day of the week

    Hi,
    Is there any other place in Mac OS X where I could set system's first day of the week, except iCal? In iCal it's set to Sunday, but in OmniFocus mini calendars show Monday as the first day of the week, although even there in OmniFocus preferences I've set it to use Sunday as the first day of the week. Developer says that OmniFocus is using system's settings, but nowhere in my system (except iCal) I can find where I could set the first day of the week. I have set English as the default language and order of list sorting in the International settings. Any ideas or suggestions?

    Unless it is set with the Country in the International preferences, I don't think their tech support knows what they are talking about. However, if that is where it would be set, you should be able to override it with the custom settings, but you can't.
    I'd ask them to tell you where that gets set, or is stored. Ask them what system call is used to get that value. My guess is they won't be able to tell you.

  • Sunday as the first day of the week in month view on the iTouch

    Does anyone know how to change Sunday to the first day of the wek in the month view of the calendar on itouch?
    BTW, I have selected Sunday as the first day of the week in ical on my imac which syncs the ipod itouch. Am I forgetting something or is there a hidden preferences page?
    Tom

    TLGreen58 wrote:
    Does anyone know how to change Sunday to the first day of the wek in the month view of the calendar on itouch?
    BTW, I have selected Sunday as the first day of the week in ical on my imac which syncs the ipod itouch. Am I forgetting something or is there a hidden preferences page?
    Tom
    Hi,
    OMG! How bizzarre, another quirk of the "Region Fortmats" setting.
    *Settings > General > International > Region Format*
    If I set mine to U.K. (where I happen to live), Monday is apparently the first day of the week on the calendar and I have no 12/24 hour clock option.
    If set to U.S., Sunday is the first day and the 12/24 hour clock option is available.
    I guess changing the Region is your answer.
    How odd! Not to say irritating.
    Dud.
    Message was edited by: Duddo

  • How do I change the start date for the week from Monday to Sunday on my iPhone 5?

    How do I change the start date for the week on iCal from Monday to Sunday on my iPhone5?

    Yes. On my new iPhone 5 the iCal week begins on a Monday not a Sunday and does not give me the option to edit in settings on the phone

  • Show number of a week in a month

    Dear all,
    I want to know a number of the week in a month of my transaction.
    The table has a field called transaction_date. How to write a sql which will show a number of week (1, 2, 3 or 4) in that very month where the transaction was made.
    Thanks and regards,
    Steve

    Hi Steve,
    I don't know if you know about it but there is a forum dedicated to PL / SQL which might be better for this type of question. In any case , browsing the SQL documentation at the moment there is a date time format W which appears to do what you want. There are in fact two week number formats WW and W. One is for week number in the year the other for week number in the month. Hope this helps. Here is a link:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96529/ch7.htm#5186

  • Why is the week number in iCal not ISO8601?

    why is the week number in iCal not ISO8601?

    Error "The serial number is not valid for this product" | Creative Suite

  • How do I set twice monthly events based on the week number

    Greetings all. I can't seem to navigate this help system, so hopefully I'm not reasking something that's already been asked. But I have a problem with iCal that I just can't figure out of find an answer to. I need to create a twice monthly event, but it's based on the week number, not every two weeks. For example, I need to be able to create an event for the 2nd and 4th Mondays of the month. Is that possible with iCal? Thanks for your help... and not laughing at me
    Steve

    No problem.
    Go to Monday select the day you want. Create new Event. Then select repeat and you will come up with how you want to repeate it. Select Monthly and then do the following:

  • HT2513 Changing First Day of the week shown in week view in iCal

    How do you change the week view of iCal from Sun to Mon. I have done it beofre ios 6. How does one do this since ios 6?
    I have iCal on iMac as Monday as first day showing in week view but I also want it to show on iPad the same way.
    Any information on this would be great.

    Bump

  • Ios 5 Update New Features says that iCal now has a week view for iPhone but after updating last weekend, I don't see any week view--just List, Day and Month..How do I get the week view?

    ios 5 Update New Features says that calendar now has a week view but after updating my iPhone 4 last weekend, I don't see any week view for iCal--just List, Day and Month as in the past. Is the weekly view available for iCal and if so, how do I access it?

    Rotate your phone to landscape.

  • Can't visualize the time on the weekly view on ical

    Can anyone help me out, I can't see the times on the left of the ical panel in the weekly view and I can't seem to change this in preferences. Has anyone had this problem?

    I have a similar problem, have endured several calls to apple care, two trips into the genius bar, had 2 computers rebuilt and after all that, the first sync with MobileMe restored the problem. My profile/preferences only recognises the hour 5:00AM and the hour markers on the day view and week view all say Sat AM, Sat PM in every hour. Please help. This is driving me crazy. I'm pretty sure it has to do with Preferences. If I create another account, iCal is fine on that account.

Maybe you are looking for

  • How can a video editor use an NTSC studio monitor on the new iMac without a Firewire 400 port?

    Looking at the new iMacs (hungrily) and wondering how I will be able to continue using my Sony DSR-11 and NTSC monitor in the absence of any Firewire 400 port.  I suppose there may be cables that will allow me to use the Firewire 800 port and am thin

  • PM 6.5 question

    I am using Pagemaker 6.5. Pasted a color TIFF image file into the PM Page. When I convert  the PM file into PDF, the image  looses it's color, turns into a black and white Image in the PDF file. How can correct?

  • Background step in workflow remains in process: Workflow gets stuck up

    Hi Gurus, I have custom workflow for organization management. The workflow takes information from e-forms(notifications) and updates the infotypes. The step which updates infotypes is run as background step.However in some cases the workflow gets stu

  • Regarding Peoplesoft HCM Client

    Hi all I will like to ask what shall I install in a client desktop? Must I install PeopleSoft PeopleTools 8.52 Client Only PeopleSoft PeopleTools 8.52 Verity PeopleSoft Human Capital Management 9.1 Feature Pack 2 Is it that I install Client Only will

  • Can't Send MMS Since Updating to 4.2 (USA, ATT)

    When I try to send an MMS with a picture that I took myself with my Iphone 4, the message would not go through. When I tried to send a picture that had been forwarded to me prior to upgrading, the message went through, but the recipient did not recei