Re: how to tweak events in applications
Re: how to tweak events in applications
- Subject: Re: how to tweak events in applications
- From: Emmanuel <email@hidden>
- Date: Fri, 12 Sep 2003 15:01:07 +0200
At 10:49 AM +1000 12/09/03, halloleo wrote:
>
hi there
>
>
new to applescript (AS) i learned how to INITIATE actions in applications,
>
e.g. play next track in iTunes. works like a beauty! with my script i can do
>
what user would initiate by clicking on the next track button.
>
>
now i want to do the thing the other way round: is it possible way to hook
>
in the events of an app and run a AS-function when an event happens. e.g.
>
when somebody clicks the next track button in iTunes.
>
>
sounds challenging to me, but might be very simple?
Unfortunately not. Only what we called in the past "factored" applications could do that: applications that send (publicly) AppleScripts upon user's actions.
All you can do is installing (there are many different ways) some task which would monitor the application:
------------------ pseudo-code
on idle
if current track of iTunes is prevTrack then do nothing
otherwise do whatever required
end
------------------
Emmanuel
_______________________________________________
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.