Re: AppleScript Timed Events
Re: AppleScript Timed Events
- Subject: Re: AppleScript Timed Events
- From: Simone Manganelli <email@hidden>
- Date: Mon, 23 Jun 2003 23:11:47 -0700
OK, sorry to rehash this topic, but I didn't see it explained in any
more detail later (and I was a bit busy this week, so I didn't have
time to follow up in a timely fashion).
If you can use the value of agenda as whatever you want, how does
AppleScript know when to activate the scripts at a specific time? I'm
trying to wrap my head around this, since it's been a while since I've
been doing AppleScript stuff...
If I missed a message, please don't hesitate to point me to the correct
message that will help me figure out the problem.
I suppose it would be easier if I clarified what I was trying to do.
Basically, I'm trying to start recording using an audio application at
a specific time, and then have the app stop recording at another
specified time. Previously what I was doing was that I was just doing
a repeat loop, which kept calling the current date, parsing it for the
time, and then comparing it to a user-given string that was defined in
the script itself. When the time was reached, it would break out of
the loop and tell the app to start recording, and I did the same thing
for stopping the recording.
The problem is that I wanted to have this work across different days,
which didn't always work in the way I was doing it, so I was wondering
if there was a way to simply issue a one line command a specific time,
and then another one line command at another time.
Maybe that helps in explaining the problem, and maybe there's a better
way to do it than using an idle handler -- but if that's the best
solution, then I still need some more explaining. :\
-- Simone Manganelli
On Wednesday, Jun 18, 2003, at 02:56 US/Pacific, John Delacour wrote:
At 6:06 pm -0700 17/6/03, Simone Manganelli wrote:
(congratulations, John, you win this awesome new Alfa Romeo car and
a trip to the Caribbean.......).
Can I swap that for a DS 23 Pallas please? I've finally decided to
send mine to eBay and let someone else see to the welding :-)
John: I do have a few more questions, though. You used this code as
an example:
tell app "appname" to set end of agenda to {tstring:"25/12",
_script:"Noel"}
But later you use:
property agenda : {{tstring:"17 jun 03, 9am", _script:"beep.scpt"}}
See my recent message in another thread
Date: Tue, 17 Jun 2003 23:49:23 +0100
To: <email@hidden>
From: John Delacour <email@hidden>
Subject: Re: A script to create another script
The value of agenda _as_stated_ can be whatever you like or just
property agenda: {}
So what's the format I'm supposed to use so that it registers as an
event? Also, where is the "beep.scpt" located
In the same folder as the applet, which the applet keeps in _folder
property _folder : ""
on run
tell app "Finder" to set _folder to "" & container of _me
idle
end run
I've got to get some work done now, so I'll try to explain in more
detail this evening.
JD
_______________________________________________
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.