Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10.5 bug?: "The specified object is a property, not an element."



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?

Brian Bergstrand
<http://www.bergstrand.org/brian/>   PGP Key ID: 0xB6C7B6A2

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden


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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.