Differing object specifiers
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.