Launching Standalone app by dbl-clicking a document – how can app get file name?

May 18, 2010 at 1:42am

Launching Standalone app by dbl-clicking a document – how can app get file name?

Say I’ve made a Standalone app with Max, and it can open MIDI files.

Now, on my computer’s desktop, say I have a MIDI file, and (on a Mac, anyways) I “Get Info” on that file, and set the “Open with:” field to my Standalone app.

Now, when I double-click the MIDI file, my Standalone app launches…good so far. HOWEVER, how do I get the Max patch to grab the filename of the file that launched the app?

If I could get the filename, then I could have some Max object inside the Standalone open that file, or do something meaningful with it on launch. Otherwise, you’re kind of breaking the user’s expectations of document/application interaction.

Thanks for any ideas!
Leigh

#50400
May 18, 2010 at 8:49am

There is an undocumented opened object that comes with MaxMSP.

-> http://cycling74.com/forums/topic.php?id=21338

p

#180845
May 18, 2010 at 7:05pm

Thank you. Nice find. I searched, but hadn’t found that thread!

#180846

You must be logged in to reply to this topic.