Yes, csv selected and visible. numberOfColumns()
no longer returns -1, so maybe I had something wrong before. I have also simplified the file to three rows and two columns:
But still not running correctly.
EVENTS TAB:
app = Application("DEVONthink 3")
app.viewerWindows()
app.viewerWindows.byId(6481).numberOfRows()
app.viewerWindows.byId(6481).numberOfColumns()
app.getCellAt(app.viewerWindows.byId(6481), {row:2, column:1})
app.getCellAt(app.viewerWindows.byId(6481), {row:2, column:2})
app.search("name: hicks-s-2004-Explaining Postmodernism.pdf")
app.getCellAt(app.viewerWindows.byId(6481), {row:3, column:1})
app.getCellAt(app.viewerWindows.byId(6481), {row:3, column:2})
app.search("name: ricoeur-p-2024-Lectures on Imagination.pdf")
Result:
undefined
REPLIES TAB:
app = Application("DEVONthink 3")
app.viewerWindows()
--> [app.viewerWindows.byId(6481)]
app.viewerWindows.byId(6481).numberOfRows()
--> 3
app.viewerWindows.byId(6481).numberOfColumns()
--> 2
app.getCellAt(app.viewerWindows.byId(6481), {row:2, column:1})
--> "hicks-s-2004-Explaining Postmodernism.pdf"
app.getCellAt(app.viewerWindows.byId(6481), {row:2, column:2})
--> "{ | Hicks, 2004 | | |zu:4247823:UF46F3FJ}"
app.search("name: hicks-s-2004-Explaining Postmodernism.pdf")
--> []
app.getCellAt(app.viewerWindows.byId(6481), {row:3, column:1})
--> "ricoeur-p-2024-Lectures on Imagination.pdf"
app.getCellAt(app.viewerWindows.byId(6481), {row:3, column:2})
--> "{ | Ricoeur, 2024 | | | zu:4247823:IWTNI9MV}"
app.search("name: ricoeur-p-2024-Lectures on Imagination.pdf")
--> []
Result:
undefined
I note in both cases, the first line of data (brown-d-1999…) is ignored. Is that significant?