AppleScript是否在提醒中获取活动列表?

AppleScript是否在提醒中获取活动列表?,applescript,osx-mountain-lion,reminders,Applescript,Osx Mountain Lion,Reminders,有人能帮我在OS X上的提醒应用程序中显示活动列表吗 根据applescript提醒字典,该应用程序具有“默认列表”属性,即“提醒应用程序中当前活动的列表” 但是,此属性似乎总是按列表侧栏中的顺序返回第一个列表,而不是实际显示并处于活动状态的列表。我发现,如果我在侧边栏中重新排列列表的顺序,我总是会得到我制作的第一个列表,而不管实际查看和使用的是哪一个 我的应用程序是创建一个键盘Maestro触发器来运行AppleScript来打印我当前正在处理的列表,但它似乎没有像字典中记录的那样运行提醒应用

有人能帮我在OS X上的提醒应用程序中显示活动列表吗

根据applescript提醒字典,该应用程序具有“默认列表”属性,即“提醒应用程序中当前活动的列表”

但是,此属性似乎总是按列表侧栏中的顺序返回第一个列表,而不是实际显示并处于活动状态的列表。我发现,如果我在侧边栏中重新排列列表的顺序,我总是会得到我制作的第一个列表,而不管实际查看和使用的是哪一个

我的应用程序是创建一个键盘Maestro触发器来运行AppleScript来打印我当前正在处理的列表,但它似乎没有像字典中记录的那样运行提醒应用程序。(我临时使用了一种变通方法,让脚本弹出一个选择器,列出所有列表,这样我就可以选择要打印的列表,但这既低效又不雅观)


谢谢

是的,您可以,但是您必须使用糟糕的GUI脚本。以一种糟糕的方式。看:

--Do some GUI scripting to get the decription of a specific group
tell application "Reminders" to activate
tell application "System Events"
    tell process "Reminders"
        tell window "Reminders"
            tell splitter group 1
                tell group 1
                    set des to get description
                end tell
            end tell
        end tell
    end tell
end tell

--This description is in the format "Viewing MyList, 1 reminder" so get the part to the "," from des.
set text item delimiters to ","
set texitems to text items of des
set firstPart to get text item 1 of texitems

--Setting the delimiters back
set text item delimiters to ""

--Jump to charcter 9 of firstPart then converting to text
set listname to characters 9 thru end of firstPart as text

--Now we know the name of the current list, so do whatever you want:
tell application "Reminders" to get list listname

这很有效。但只有在提醒打开的情况下。如果苹果改变了提醒结构…

你能发布你到目前为止的代码吗,这样我就不必重写你已经写的所有东西了看起来这是一个非常糟糕的应用。。。我认为它一开始就不能正常工作,更不用说用applescriptyuck操作了。。。看来这是唯一的办法