MacTrove  — Classic Macintosh Archive
 
 Home Software Hardware Docs Magazines Forums Search
Search:   Software, forums, magazines & more

Launch Creator C

File launch-creator-c.hqx
Size 4.0 KB
Category Development
Year 1991
Mac OS System 7
↓ Download launch-creator-c.hqx

Enjoying MacTrove? Anonymous downloads are free and unlimited. Create a free account to track favorites, contribute corrections, and join the community chat.

About

What: get any file "double-clicked" from within a running program Contents: launcher.cc - code itself (commented) vlauncher.cc - verification routine Language: Symantec C++ 6.0 (though worked for Think C 5.0, too) System: System 7.x, but probably 6.x is OK, too. Note: needs standard environment, see myenv-notify.cpt Comments to: oleg@ponder.csci.unt.edu, oleg@unt.edu Explanation: This is a simple program that, given a file name, launches an application-creator and has it handle the file. If the file is an application, it is launched itself. The net result is exactly the same as if the user had double-clicked on the file. Synopsis void open_selection(const char * full_path_name) Where the 'full_path_name' tells the full path name of the file that should be "double-clicked". Though, a relative path name would do, too. The present program achieves the magic by sending an 'Open Selection' event to the Finder. It is significantly based on the FinderEvents stack by Jon Pugh and Apple Computer, Inc. (C) 1991-92 Apple Computer, Inc.) (which is written in Pascal and _very_ big and messy)

MacTrove — Classic Macintosh Archive — Full site | Software | Search
Classic version — compatible with older browsers.