• 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
How to find out more about the app(s) you're trying to script.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to find out more about the app(s) you're trying to script.


  • Subject: How to find out more about the app(s) you're trying to script.
  • From: Alex Zavatone <email@hidden>
  • Date: Thu, 06 Dec 2012 11:23:35 -0500

I just stumbled across this while using the Script Debugger app to debug an iTunes script that writes out the current song that I'm listening to.

The caveat here is that you need to have a copy of the Script debugger app from LateNightSW.

What I did was define a property as the application I want to tunnel in to and see all the properties it has that I can mess with.

Then, I just made a main loop and set a breakpoint in the loop after turning on debugging for my script.

Since I don't want to upgrade to iTunes 11, I renamed my copy of iTunes 10.7 as "iTunes 10.7" so that should explain the name change of the app in the script below.

In any case, I just ran the script and in the debugger all the properties of iTunes that are exposed are listed in the debugger under pApp. It's fantastic.


property pApp : application "iTunes 10.7"

on run
repeat while true
true -- breakpoint here
do shell script "sleep 1"
end repeat
end run


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Checking on the existence of a file
  • Next by Date: Re: AppleScript-Users Digest, Vol 9, Issue 506
  • Previous by thread: Re: Problem with Help Book
  • Next by thread: Re: AppleScript-Users Digest, Vol 9, Issue 506
  • Index(es):
    • Date
    • Thread