mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-11 01:04:05 +01:00
Make read/starred read/write via AppleScript
This commit is contained in:
parent
3e0f70f43e
commit
3e8e7113c0
@ -202,10 +202,10 @@
|
||||
<property name="modified date" code="MDat" type="date" access="r" description="date the article was last modified">
|
||||
<cocoa key="dateModified"/>
|
||||
</property>
|
||||
<property name="read" code="Read" type="boolean" access="r" description="has the article been read">
|
||||
<property name="read" code="Read" type="boolean" access="rw" description="has the article been read">
|
||||
<cocoa key="read"/>
|
||||
</property>
|
||||
<property name="starred" code="Star" type="boolean" access="r" description="has the article been marked with a star">
|
||||
<property name="starred" code="Star" type="boolean" access="rw" description="has the article been marked with a star">
|
||||
<cocoa key="starred"/>
|
||||
</property>
|
||||
<property name="deleted" code="Delt" type="boolean" access="r" description="has the article been deleted by the user">
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user