Can't get getOSAID of «script»
Can't get getOSAID of «script»
- Subject: Can't get getOSAID of «script»
- From: Neil Faiman <email@hidden>
- Date: Sun, 14 Aug 2016 17:58:46 -0400
- X_cmae_category: , ,
I’ve got a moderately sized ASOC app that I wrote some years ago. I hadn’t run it for the better part of a year, and now it gets errors. (I.e., I suspect that the problem is some system software change in the last year, but I can’t pinpoint it better than that.
The app has a single AppleScript source file, ZBAAppDelegate.applescript, and a MainMenu.xib. The app has a single window containing a tab view, and the AppleScript file is organized with an AppDelegate class script, a controller class script for each tab, and some other utility stuff. Communication between the class scripts is via outlet properties.
In particular, there is a NewCaseController class:
script NewCaseController
property parent : class "NSObject"
global zbaLib
global meetingLib
-- Outlets
property AppDelegate : missing value
property caseDescriptionView : missing value
property meetingDateComboBox : missing value
. . .
In the Objects list of the MainMenu.xib editor, I have drawn a connection from the AppDelegate outlet of the New Case Controller object to the App Delegate object.
The AppDelegate class has some properties that it initializes in applicationWillFinishLaunching_:
script AppDelegate
property parent : class “NSObject"
. . .
property zbaLib : missing value
property meetingLib : missing value
The NewTabController class has an “enterTab” method, and the applicationDidFinishLaunching_ method of the AppDelegate class calls it:
on applicationDidFinishLaunching_(aNotification)
tell tabView to selectTabViewItemAtIndex_(0)
tell NewCaseController to enterTab()
end applicationDidFinishLaunching_
enterClass() uses NewCaseController’s AppDelegate outlet to fetch these properties from the AppDelegate class:
to enterTab()
log "NewCase: enterTab"
set zbaLib to AppDelegate's zbaLib — <<<<<< Error here
set meetingLib to AppDelegate's meetingLib
. . .
Only, at the marked line in enterTab(), I get this error in the console:
2016-08-14 17:21:45.069 Case Manager (new)[42086:37391716] *** -[NewCaseController enterTab]: Can’t get getOSAID of «script». (error -1728)
(Yes, that really says “Can’t get getOSAID”.) That’s pretty much the end. (The app doesn’t crash, but nothing works.)
Any suggestions?
Thanks,
Neil Faiman
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden