• 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 to tweak events in applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >how to tweak events in applications (From: "halloleo" <email@hidden>)

  • Prev by Date: Re: how to tweak events in applications
  • Next by Date: Re: AppleScript dictionary
  • Previous by thread: how to tweak events in applications
  • Next by thread: Re: how to tweak events in applications
  • Index(es):
    • Date
    • Thread