2
votes
Opening files and URLs in default applications in OS X
Malcolm Groves
– After my article on Special Folders, a few people asked how to open a file in the default application. For example, if I open a JPEG, whichever application is registered as the default app for JPEGs will execute. This is roughly analogous to ShellExecute in Windows. The question was also asked about opening a URL in the default browser and also sending an email with the default mail application. These are closely related so I’ll cover them at the same time. It’s actually pretty easy. I’ve got a TOpenDialog on a form, and the following code in a TButton.OnClick event: ...
Statistics
|
Visits by Source |
User Actions |




