XML Feeds

.

[maxmsp] OSX Standalone File association

jasch   j at jasch.ch
Mon Jan 14 01:40:06 MST 2008


hi oli,

this is something i gleaned from michael egger's LiveCut app.

use the SetFile *nix tool through shell to assign the file your  
filetype and creator-code

copy the unix binary into the app bundle to be sure it's available. on  
my machine it's located in /usr/bin/ and is universal.

then run the following shell command to assign for example the  
filetype svg and the creator adobe illustrator

"/path/to/SetFile" -t svg -c ART5 "/path/to/file/Untitled.svg";

jeremy bernstein has an external called filetype that also has these  
funcionalities http://www.cycling74.com/twiki/pub/Share/JeremyBernstein/filetypeUB.zip

hth

/*j

btw: i like your intlib interpolations!

#P inlet 89 39 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 3;
#P message 201 297 251 196617 "/path/to/SetFile" -t svg -c ART5 "/path/ 
to/Untitled.svg";
#P window linecount 1;
#P newex 188 297 14 196617 _;
#P button 89 70 15 0;
#P newex 89 122 100 196617 v path_app_binaries;
#P newex 328 145 81 196617 v xml_file_path;
#P newex 89 242 228 196617 sprintf \\\\"%s\\\\" -t "svg " -c ART5 \\\ 
\"%s\\\\";
#N vpatcher 109 497 509 797;
#P outlet 138 180 15 0;
#P inlet 138 22 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 151 80 50 196617 strrchr :;
#P newex 138 126 42 196617 strrcut;
#P connect 2 0 0 0;
#P fasten 1 0 0 0 156 114 143 114;
#P connect 0 0 3 0;
#P fasten 2 0 1 0 143 58 156 58;
#P pop;
#P newobj 328 198 85 196617 p strip_rootname;
#N vpatcher 109 497 509 797;
#P outlet 138 180 15 0;
#P inlet 138 22 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 151 80 50 196617 strrchr :;
#P newex 138 126 42 196617 strrcut;
#P connect 2 0 0 0;
#P fasten 1 0 0 0 156 114 143 114;
#P connect 0 0 3 0;
#P fasten 2 0 1 0 143 58 156 58;
#P pop;
#P newobj 89 204 85 196617 p strip_rootname;
#P newex 89 166 234 196617 sprintf %sMyAPP.app/Contents/MacOS/SetFile;
#P newex 89 278 81 196617 shell;
#P connect 10 0 7 0;
#P connect 2 0 4 0;
#P connect 8 0 9 0;
#P fasten 3 0 4 1 333 226 312 226;
#P connect 7 0 5 0;
#P connect 7 0 6 0;
#P connect 5 0 3 0;
#P connect 4 0 8 0;
#P connect 4 0 0 0;
#P connect 1 0 2 0;
#P connect 6 0 1 0;
#P window clipboard copycount 11;



More information about the maxmsp mailing list