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

Path From Fsspec Pas.Txt

File path-from-fsspec-pas.txt
Size 3.2 KB
Category Development
↓ Download path-from-fsspec-pas.txt

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

About

I spent the long weekend cursing at the AppleEventManager trying to get the finder to open a control panel. Anyway, one of the things I discoverd was that the alias manager will give you a path name if you ask for it. Since my program needed to display the path name, I wrote a function that will return a full path name in a handle (not in a str255 so you it won't crash with long path names) when you give it a fsspec. I also figured out how to get the finder to open a control panel. You need to send an open selection event. I finally found an example that worked and ported it to pascal. If you would like to see that code I can post it here also. Its a direct copy of C.K Han's C code that is on the developers CD. Here is the code:

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