Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Differing object specifiers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Differing object specifiers



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.