Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #94874

Re: How to display count of repeating events

From Snit <usenet@gallopinginsanity.com>
Newsgroups comp.sys.mac.system
Subject Re: How to display count of repeating events
Date 2016-09-28 12:46 -0700
Message-ID <D4116C09.7EC38%usenet@gallopinginsanity.com> (permalink)
References <2016092805322540488-garyw1@hotmailcom> <D411604C.7EC11%usenet@gallopinginsanity.com>

Show all headers | View raw


On 9/28/16, 11:55 AM, in article
D411604C.7EC11%usenet@gallopinginsanity.com, "Snit"
<usenet@gallopinginsanity.com> wrote:

> On 9/28/16, 2:32 AM, in article 2016092805322540488-garyw1@hotmailcom,
> "Gary" <gary_w1@hotmail.com> wrote:
> 
>> It is important to remember to take 30 pills, one a day, starting
>> October 1.  I want to create a daily repeating event in my Mac calendar
>> that says something like Pill 1, Pill 2, ... up to Pill 30.  Is there
>> some way to accomplish this in either MacOS or in IOS?
>> 
>> It's easy enough to create annual birthdays and show age, but it
>> surprises me there isn't a straightforward way to do this with other
>> than annual events.
>> 
>> Any suggestions (other than creating 30 events)?
>> 
> 
> Use at your own risk and know I am NOT a programmer or scripter of any value
> AT ALL, but I tested this (with a loop of 5) and it worked for me:
> 
> --------
> tell application "Calendar"
>   activate
>   set theCount to 1
>   set theDate to date "Saturday, October 1, 2016 at 6:00:00 PM"
>   tell calendar "Test"
>     repeat 30 times
>       make new event with properties {description:"Take Pill " & theCount,
> summary:"Take Pill " & theCount, start date:theDate}
>       set theDate to theDate + 60 * 60 * 24
>       set theCount to theCount + 1
>     end repeat
>   end tell
>   reload calendars
> end tell
> --------
> 
> Loaded it in Script Editor, ran, and got five events. Be careful if the
> "make new event" line wraps around.
> 
> You would need to change the name of the calendar to something other than
> "Test" -- and no promises it will work, not give you acne, or anything else.
> 
I think it is clear, but just in case, yes, this does create 30 events...
which you said you did not want to do -- but it automates it so you have the
events you want without manually creating them.

As far as I know there is no way to create a recurring event with a counter
built in. Would be cool if there was.


-- 
* OS X / Linux: What is a file?     <http://youtu.be/_dMbXGLW9PI>
* Mint MATE Trash, Panel, Menu:     <http://youtu.be/C0y74FIf7uE>
* Mint KDE working with folders:    <http://youtu.be/7C9nvniOoE0>
* Mint KDE creating files:          <http://youtu.be/N7-fZJaJUv8>
* Mint KDE help:                    <http://youtu.be/3ikizUd3sa8>
* Mint KDE general navigation:      <http://youtu.be/t9y14yZtQuI>
* Mint KDE bugs or Easter eggs?     <http://youtu.be/CU-whJQvtfA>
* Easy on OS X / Hard on Linux:     <http://youtu.be/D3BPWANQoIk>
* OS / Word Processor Comparison:   <http://youtu.be/w6Qcl-w7s5c>

Back to comp.sys.mac.system | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How to display count of repeating events Gary <gary_w1@hotmail.com> - 2016-09-28 05:32 -0400
  Re: How to display count of repeating events Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-09-28 14:43 +0000
    Re: How to display count of repeating events Jolly Roger <jollyroger@pobox.com> - 2016-09-28 16:33 +0000
      Re: How to display count of repeating events Steve Carroll <frelwizzen@gmail.com> - 2016-09-28 13:58 -0700
    Re: How to display count of repeating events Steve Carroll <frelwizzen@gmail.com> - 2016-09-28 13:57 -0700
  Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-28 11:55 -0700
    Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-28 12:46 -0700
      Re: How to display count of repeating events android <here@there.was> - 2016-09-28 22:06 +0200
    Re: How to display count of repeating events Steve Carroll <frelwizzen@gmail.com> - 2016-09-28 13:59 -0700
  Re: How to display count of repeating events Your Name <YourName@YourISP.com> - 2016-09-29 08:23 +1200
    Re: How to display count of repeating events Steve Carroll <frelwizzen@gmail.com> - 2016-09-28 13:56 -0700
  Re: How to display count of repeating events Steve Carroll <frelwizzen@gmail.com> - 2016-09-28 13:55 -0700
  Re: How to display count of repeating events Davoud <star@sky.net> - 2016-09-28 18:40 -0400
    Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-28 17:02 -0700
  Re: How to display count of repeating events Gary <gary_w1@hotmail.com> - 2016-09-28 20:38 -0400
    Re: How to display count of repeating events Your Name <YourName@YourISP.com> - 2016-09-29 13:59 +1200
    Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-28 19:24 -0700
    Re: How to display count of repeating events Steve Carroll <frelwizzen@gmail.com> - 2016-09-28 19:57 -0700
    Re: How to display count of repeating events Lewis <g.kreme@gmail.com.dontsendmecopies> - 2016-09-29 04:30 +0000
      Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-28 21:44 -0700
    Re: How to display count of repeating events Davoud <star@sky.net> - 2016-09-29 08:19 -0400
      Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-29 09:41 -0700
        Re: How to display count of repeating events android <here@there.was> - 2016-09-29 20:38 +0200
          Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-29 11:57 -0700
            Re: How to display count of repeating events android <here@there.was> - 2016-09-30 03:11 +0200
              Re: How to display count of repeating events Snit <usenet@gallopinginsanity.com> - 2016-09-29 18:14 -0700

csiph-web