• 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: assistance with script, part 2
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: assistance with script, part 2


  • Subject: Re: assistance with script, part 2
  • From: Ross Hunter <email@hidden>
  • Date: Tue, 11 Mar 2003 19:06:30 -0500

Thanks for the help in getting my script to work only between 6:55 and 7:05 am.

However, it didn't work this (Tuesday March 11) morning. Is that
because the script thought the day was Monday the 10th?

How do I make the script get today's date each time it runs so that
it will execute only between 6:55 and 7:05am?

Obviously, I'm very new to writing Apple Scripts.

Ross Hunter
Orange, Virginia
------------------------------------------------------------------------


set my_time to current date
set start_time to date "Monday, March 10, 2003 6:55:00 AM"
set end_time to date "Monday, March 10, 2003 7:05:00 AM"
if my_time is greater than start_time and my_time is less than end_time then
tell application "Finder"
activate
select startup disk
open selection
select folder "Internet" of startup disk
open selection
select file "Eudora" of folder "Eudora Application
Folder" of folder "Internet Applications" of folder "Internet" of
startup disk
open selection
tell application "Eudora"
connect with checking
end tell
end tell
end if
tell application "Finder"
return
end tell
-- disconnect PPP connection
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: assistance with script, part 2
      • From: Michelle Steiner <email@hidden>
    • Re: assistance with script, part 2
      • From: Andrew Oliver <email@hidden>
References: 
 >Re: Printing PDF (From: nino <email@hidden>)
 >assistance with script (From: Ross Hunter <email@hidden>)

  • Prev by Date: Re: Determining item number matching "x" in a list
  • Next by Date: Re: Determining item number matching "x" in a list
  • Previous by thread: Re: assistance with script
  • Next by thread: Re: assistance with script, part 2
  • Index(es):
    • Date
    • Thread