Viewing a jpeg is handled by the OS. You can export from ID - jpeg, pdf, eps, epub, but after that ID is "idle".
Your question is "How do I set a default viewer for jpeg files?"
What OS? (Mac or Win)
Windows - Right click any jpeg (jpg) and choose Open With from the flyout. Choose Default Program (should be) at the bottom of the Open With
Windows Photo Gallery would be a typical default choice.
OSX - (I think) select a file and use cmd+I to set preferences for handling.
Thank you for your quick response.
Actually, I was looking more for a procedure that was akin to how exported pdfs are handled from Indesign
When Indesign exports a PDF, Acrobat is triggered and automatically shows a preview of the pdf.
But, since nothing is being distilled with a JPEG, there is no helper app that previews the JPEG after it's been created.
And we are working on Mac OS 10.11.5.
Again, thank you for your help.
You can view JPEGs in any of OSX browsers (Safari, Chrome, Firefox), or Preview and they are all color managed, so they will respond to embedded profiles. And of course there is Photoshop.
To automatically launch one of the apps you would need script. The easiest way to script it would be a folder action, so when you export the JPEG into a folder with the script attached it opens the JPEG.
Something like this would open into preview and could be setup as a folder action:
on adding folder items to hotfolder after receiving added_items
tell application "Finder"
set thepath to item 1 of added_items as alias
tell application "Preview"
end adding folder items to
Thank you for the scripting advice.
I will try a hotfolder.