I have a scriptable object defined as a property of the application
object. This is a Cocoa app. In 10.4.10, the following script works
great:
tell application "MyApp"
set obj to object controller
tell obj
get value
end tell
end tell
However, on 10.5 that same script fails with "The specified object is
a property, not an element." I am now building the app against the
10.5 SDK but with 10.4 as the target OS. This build works on 10.4 the
same as it did when built against the 10.4 SDK.
Here is the script event log on 10.5:
tell application "MyApp"
get object controller
object controller id "5482A687-CF01-46D3-875C-706488A9058E"
get value of object controller id "5482A687-
CF01-46D3-875C-706488A9058E"
"MyApp got an error: The specified object is a property, not an
element."
As you can see, the object is accessed via the ID property.
Any ideas of what's going on and how I can fix it?