Although I’m capturing PDF (mainly for purposes of search) - reading is always more convenient if there’s still a webpage available (which there mostly is when I’m browsing my inbox). I should have specified that I’m opening the URL in DT, so in the content window like this:
on performSmartRule(theRecords)
tell application id "DNtp"
repeat with theRecord in theRecords
set theWindow to think window 1
set theRecord to content record of theWindow
set URL of theWindow to URL of theRecord
end repeat
end tell
end performSmartRule
I want to browse the URL, but still have e.g. the Inspector open on the item (in most cases a PDF) I’m looking at - that’s what this little script is excellent for. I think I’m going to explore if I can script something to find out the currently opened smart group (as indeed items are not contained there, but it’s opened in the sidebar so maybe I can find out that via scripting).