• 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 18:51:34 -0700


On Jul 12, 2005, at 11:56 AM, Brian wrote:

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


If your script run at 11PM (23), foo is not greater than 23 (it is equal), this is the same at 7AM,

foo is not less than 7...


Sometimes the simple thing gets past me; foo will never be greater than 23 because from 11:00 PM to 11:59:59 PM, foo will be 23, and at midnight, foo will be zero.

So, I changed the script to check whether foo is greater than 22.

Your script works very well here, I put it in the 'Mail Scripts' folder, as a compiled script like Matt say.


It works now, using test values, when run from script editor; I'll find out tonight whether it will work when run from iCal.

But I have to change the 


set foo to hours of (current date)


in


set foo to (time of (current date)) / 3600


That works fine for me as written, but I'm using Tiger, so that might make the difference.  Have you tried "hours of (get current date)"?

-- Michelle

--
Those who extol the "nobility of labor" mean the labor of others.

 _______________________________________________
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>
    • Re: How do you get iCal to run an Applescript
      • From: "Gary (Lists)" <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>)
 >Re: How do you get iCal to run an Applescript (From: Michelle Steiner <email@hidden>)
 >Re: How do you get iCal to run an Applescript (From: Brian <email@hidden>)

  • Prev by Date: Re: General question about what is possible re: AS driving JavaScript
  • Next by Date: Newbie to Applescript
  • 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