Forums > MaxMSP

Opened object – issue

August 17, 2012 | 3:41 pm

I realize this object is unsupported (which is why I haven’t submitted an official bug report) but I’m looking for a workaround of any sort. It seems to have worked when the application was built in Max 5 but no longer appears to in Max 6.

I have project files associated with my standalone app which are TEXT files with a proprietary extension.

If the application associated with the files is already open and the text file is double clicked then it will report the name of the file.

If the application is opened by double clicking on the text file, only the blank "symbol" is reported. I thought this might be caused by the loadbang reporting too soon but I’ve also tried delaying the bang up to 10 seconds to no avail.

I could really use some help, this breaks the apps ability to behave like any other application with a project file. I’m not sure what can be done about it.


August 17, 2012 | 4:43 pm

I could be wrong about this having worked before in Max 5, I just tried building a 5.1.9 app and it doesn’t seem to report when the file opens the app. Either that or it’s specific to 10.7. I did both upgrades at once.

Maybe someone at cycling can shed some light on why it works when the application is already opened vs. why it doesn’t when the file opens the app?


August 20, 2012 | 5:30 pm

Am I totally out on a limb here? Has anyone encountered this issue? Does it even affect anyone else? Should I submit an official bug report? Post a sample?


August 20, 2012 | 6:54 pm

Okay, this is really not working. If I bang opened to test if the file path is empty it reports an empty string but I’m at a loss to how to compare the empty "string" against a populated string so I know if the path is reporting a valid string. Thoughts?

– Pasted Max Patch, click to expand. –

August 20, 2012 | 7:38 pm

I have no memory of opened, so I can’t tell what it’s supposed to be doing, but can’t you get a lot of what you want from thispatcher?


August 20, 2012 | 11:49 pm

Sadly no, I need the name of the text file that prompts the app to open just like if you click a .txt file, textedit opens, or if you click a .mov quicktime opens. (BTW, it only works properly in a standalone but the issue I was illustrating with the null character is the same). There are three things I’ve been struggling with and they all have to do with standalone applications. I’ve constructed a standalone to illustrate all three. The example app is Burper.app, the associated file is test.burp. If I double click on a file with the .burp extension then the Burper.app should open and "opened" should report the full path and file name of the file that opened it (in this case test.burp).

http://www.aranarproductions.com/downloads/AppAndFile.zip

Hopefully this makes things a little clearer…
The issues are:
Command C and V into Dialog in standalone.
Opened object not reporting file path when app is opened by double clicking associated file.
How to close the opened text file that opens in the standalone when all that’s required is the file path.


August 25, 2012 | 12:30 am

ermmm…. bump.

(I was hoping to have this resolved or at least know what the issue is by the next update of our software).


September 6, 2012 | 5:13 am

Maybe any chance of cycling ’74 releasing the "opened" object source code??



pid
September 6, 2012 | 10:45 am

crazy. so now i have only just discovered this [opened] object.
Is there any chance of Cycling’74 making a helpfile for it?!

by the way, cap10subtext, is there no way you could use the file and folder classes in javascript? and / or shell? and did you add an extension to the max-fileformats.txt file? sorry if none of these suggestions any good – i did not read quite 100% of the thread. i think it is a very complex issue maybe.


September 6, 2012 | 3:08 pm

I’ll look into the file and folder classes but I’m not sure that’ll help if it more or less does what the File and folder Max objects do. Opened is very idiosyncratic and the issue is specific to opening an application by double clicking an associated file. Short version: works if the application is already open, doesn’t if it launches the app. Imagine as a user: double clicking a word.doc file, word launches, but then your file doesn’t open.


Viewing 10 posts - 1 through 10 (of 10 total)