Swift 将应用商店启动到特定的应用列表

Swift 将应用商店启动到特定的应用列表,swift,macos,cocoa,Swift,Macos,Cocoa,我的应用程序要求用户安装Apple Pages。如果没有安装,我会启动应用商店让他们安装页面。是否有任何东西可以附加到“com.apple.AppStore”捆绑id中,以便将其打开到应用商店页面列表中 这是应用商店页面的web url 如果你想发表评论 @IBAction func itunesClicked(_ sender: NSButton) { let access = "macappstore://itunes.apple.com/app/id" let appId

我的应用程序要求用户安装Apple Pages。如果没有安装,我会启动应用商店让他们安装页面。是否有任何东西可以附加到“com.apple.AppStore”捆绑id中,以便将其打开到应用商店页面列表中

这是应用商店页面的web url

如果你想发表评论

@IBAction func itunesClicked(_ sender: NSButton) {
    let access = "macappstore://itunes.apple.com/app/id"
    let appIdee = "409201541"
    let more = "?action=write-review&mt=8"
    let str: String = access + appIdee + more
    if let urlStr = URL(string: str) {
        NSWorkspace.shared.open(urlStr)
    }
}

伟大的非常感谢。
@IBAction func itunesClicked(_ sender: NSButton) {
    let access = "macappstore://itunes.apple.com/app/id"
    let appIdee = "409201541"
    let more = "?mt=12"
    let str: String = access + appIdee + more
    if let urlStr = URL(string: str) {
        NSWorkspace.shared.open(urlStr)
    }
}
@IBAction func itunesClicked(_ sender: NSButton) {
    let access = "macappstore://itunes.apple.com/app/id"
    let appIdee = "409201541"
    let more = "?action=write-review&mt=8"
    let str: String = access + appIdee + more
    if let urlStr = URL(string: str) {
        NSWorkspace.shared.open(urlStr)
    }
}