• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do you get iCal to run an Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you get iCal to run an Applescript


  • Subject: Re: How do you get iCal to run an Applescript
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 12 Jul 2005 11:26:01 -0700


On Jul 12, 2005, at 10:30 AM, Brian Dréau wrote:

set foo to hours of (current date)

tell application "Mail"

    if (foo is greater than 23) or (foo is less than 7) then

        set fetch interval to 60

    else

        set fetch interval to 5

    end if

end tell


iCal was set to run it at 11 PM and 7 AM.


Hello,


Maybe it will work better if you use : 


if (foo ≥ 23) or (foo ≤ 7) then



There's no difference, except for the equal sign, but I will change the times of execution iCal to see if that makes a difference.

However, it does not run even from the command line, when it's not near a boundary condition time of day.

-- Michelle

-- 
I am only one, but still I am one. I cannot do everything, but still I can do something; and because I cannot do everything, I will not refuse to so something I can do.  --Edward Everett Hale

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How do you get iCal to run an Applescript
      • From: Brian <email@hidden>
References: 
 >Re: How do you get iCal to run an Applescript (From: Matt Neuburg <email@hidden>)
 >Re: How do you get iCal to run an Applescript (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: How do you get iCal to run an Applescript
  • Next by Date: Re: Big lists in top level variables = stack overflow
  • Previous by thread: Re: How do you get iCal to run an Applescript
  • Next by thread: Re: How do you get iCal to run an Applescript
  • Index(es):
    • Date
    • Thread