Vote UpVote

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: ...
Favorite? Off-Topic? Malcolm @ 2011-09-29 06:40


Visits: 460
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)