Dragging and dropping files onto the canvas no longer works in macOS. I am not sure when this broke (if it was a change in Qt or OS X), but it seems the URL from the drag event is a File reference URL.
This is apparently fixed in Qt5 but I think abandoned for Qt4. #11 will kind of fix this, in a way, but not for anyone who wants/needs to stay on Qt4. There are some workarounds posted, but I don't really like them. The easiest way (without adding a dependency, or updating to Qt5) seems to be to use the following snippet to call and AppleScript to translate the path:
osascript -e 'get posix path of posix file "file:///.file/id=123.456"'
Dragging and dropping files onto the canvas no longer works in macOS. I am not sure when this broke (if it was a change in Qt or OS X), but it seems the URL from the drag event is a File reference URL.
This is apparently fixed in Qt5 but I think abandoned for Qt4. #11 will kind of fix this, in a way, but not for anyone who wants/needs to stay on Qt4. There are some workarounds posted, but I don't really like them. The easiest way (without adding a dependency, or updating to Qt5) seems to be to use the following snippet to call and AppleScript to translate the path:
Any thoughts?