Skip to content

ui.active_window().doc returns URL-encoded spaces #473

Description

@phillco

When viewing a file that has spaces in it, ui.active_window().doc returns a path with URL-encoded spaces even though it's not a file:// URL:

>>> ui.active_window().doc
'/Users/pcohen/Desktop/Test%20File.txt'
>>> ui.active_window().element.AXDocument
'file:///Users/pcohen/Desktop/Test%20File.txt'

Screen Shot 2022-01-23 at 3 35 04 PM

@nriley suggested this may be a bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions