Make read/starred read/write via AppleScript

This commit is contained in:
Nate Weaver committed 2019-06-11 19:17:50 -05:00
1 parent 3e0f70f43e
commit 3e8e7113c0
2 files changed
+14 -4

No files matched your search

+12 -2
View File
@@ -107,12 +107,22 @@ class ScriptableArticle: NSObject, UniqueIdScriptingObject, ScriptingObjectConta
@objc(read)
var read:Bool {
return article.status.boolStatus(forKey:.read)
get {
return article.status.boolStatus(forKey:.read)
}
set {
markArticles([self.article], statusKey: .read, flag: newValue)
}
}
@objc(starred)
var starred:Bool {
return article.status.boolStatus(forKey:.starred)
get {
return article.status.boolStatus(forKey:.starred)
}
set {
markArticles([self.article], statusKey: .starred, flag: newValue)
}
}
@objc(deleted)