• 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 do I explore Applescript objects???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I explore Applescript objects???


  • Subject: How do I explore Applescript objects???
  • From: Michael Shantzis <email@hidden>
  • Date: Wed, 02 Jul 2003 09:44:27 -0700

I have a beginner's question. I'm hoping someone out there can answer it.
I've searched the web, looked through tons of books, and I still haven't
been able to find the information I'm looking for. I'll explain it in
terms of what I'm actually trying to accomplish.

I'm trying to write an applescript that will find the current file I'm
editing in Xcode, and pop it up in a vi/emacs/whatever window. The part
I'm having problems with is finding the file name.

So I go into Script Editor, I open the Dictionary, I see all these objects
that are available. I'm certain that one of them has such information. What
I'd like to do is "explore" the objects that are provided by the application.
But how do I do this? For instance, is there a command I can type in to
get references to all the objects in the application? And then is there a
command to type in for each of these objects to get all of its sub-objects?

To return to my example, I would expect that if I could do this, I could
navigate through the object hierarchy to try and find the name of the file
of the top window. I just can't figure out how.

Any pointers would be very helpful.


Michael A. Shantzis
Software Engineer
Pixar Animation Studios
email@hidden
(510)752-3503
_______________________________________________
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.

  • Follow-Ups:
    • Re: How do I explore Applescript objects???
      • From: Christopher Nebel <email@hidden>
    • Re: How do I explore AppleScript objects???
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Re: applescript-users digest, Vol 3 #1798 - 3 msgs
  • Next by Date: Reply to "Re: Displaying 'Get Info'."
  • Previous by thread: Re: applescript-users digest, Vol 3 #1798 - 3 msgs
  • Next by thread: Re: How do I explore AppleScript objects???
  • Index(es):
    • Date
    • Thread