for e in eachentrysaved(finenv.Region()) do
    if e:IsNote() then
        for note in each(e) do
            local str = finale.FCString()
            note:GetString(str, nil, false, true)
            print(str.LuaString)
        end
    end
end
