Merge branch 'mac-candidate'

This commit is contained in:
Brent Simmons 2019-07-29 19:56:49 -07:00
commit e845e3bd35
2 changed files with 15 additions and 2 deletions

View File

@ -85,7 +85,10 @@
<property name="type" code="ATyp" type="account type" access="r" description="The type of the account">
<cocoa key="accountType"/>
</property>
<property name="contents" code="Cnts" access="r" description="The type of the account">
<property name="active" code="Actv" type="boolean" access="rw" description="Whether or not the account is active">
<cocoa key="scriptingIsActive"/>
</property>
<property name="contents" code="Cnts" access="r" description="The type of the account">
<cocoa key="contents"/>
<type type="account item" list="yes"/>
</property>

View File

@ -25,7 +25,17 @@ class ScriptableAccount: NSObject, UniqueIdScriptingObject, ScriptingObjectConta
let scriptObjectSpecifier = myContainer.makeFormUniqueIDScriptObjectSpecifier(forObject:self)
return (scriptObjectSpecifier)
}
@objc(scriptingIsActive)
var scriptingIsActive: Bool {
get {
return account.isActive
}
set {
account.isActive = newValue
}
}
// MARK: --- ScriptingObject protocol ---
var scriptingKey: String {