• 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
Differing object specifiers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Differing object specifiers


  • Subject: Differing object specifiers
  • From: Brian Webster <email@hidden>
  • Date: Tue, 30 Jul 2002 12:17:48 -0500

I'm implementing the objectSpecifier methods on my scriptable objects in a Cocoa app, and there doesn't seem to be any way to return different object specifiers for different "paths" that get taken to the object.

For example, with the Finder, you can run the following scripts with different result:

tell application "Finder" to get file "foo.txt"
result: document file "foo.txt" of desktop of application "Finder"

tell application "Finder" to get file "foo.txt" of folder "Users:bwebster:Desktop:"
result: document file "foo.txt" of folder "Desktop" of folder "bwebster" of folder "Users" of disk "Mac OS X" of application "Finder"

Is there anywhere to hook into the Cocoa scripting system that would let me have a similar behavior with my application?

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: More memory allocation questions
  • Next by Date: Re: NSImageRep.imageFileTypes() doesnt work...
  • Previous by thread: Re: Favorite Fonts
  • Next by thread: Strange table view need... howto sensibly?
  • Index(es):
    • Date
    • Thread