external-application-button
external-application-button copied to clipboard
Wait for download to complete for [DOWNLOADED_PATH]
I'm trying to add an Open in Photos command on macOS, but Photos gives me an error that the file is invalid because apparently it's trying to open it before the download is finished.


If I wait until the download is done, this command works fine in terminal.
Would it be possible to add an option to wait until the download completes before running a command with [DOWNLOADED_PATH] in it?
Or is it something else? If I Change the application to Preview I get this:

Opening the downloaded file with the same command in terminal or double clicking it in Finder works fine.
If I change the command to open the downloaded file with Safari, it works fine.
Change the default download directory. Somewhere other than "Desktop" and "Downloads" should fix the issue.