Re: assistance with script, part 2
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.