diff --git a/Mac/Scriptability/NSApplication+Scriptability.swift b/Mac/Scriptability/NSApplication+Scriptability.swift index 14ad11ecb..c49f92de3 100644 --- a/Mac/Scriptability/NSApplication+Scriptability.swift +++ b/Mac/Scriptability/NSApplication+Scriptability.swift @@ -42,9 +42,9 @@ extension NSApplication : ScriptingObjectContainer { func selectedArticles() -> NSArray { let articles = appDelegate.scriptingSelectedArticles let scriptableArticles:[ScriptableArticle] = articles.compactMap { article in - if let feed = article.feed { - let scriptableFeed = ScriptableFeed(feed, container:self) - return ScriptableArticle(article, container:scriptableFeed) + if let feed = article.feed, let account = feed.account { + let scriptableFeed = ScriptableFeed(feed, container: ScriptableAccount(account)) + return ScriptableArticle(article, container: scriptableFeed) } else { return nil }