taptools/applescript in standalone

Apr 30, 2006 at 9:41am

taptools/applescript in standalone

I use the tap.applescript object in a patch which works fine in Max, but in the built standalone gives me:

goodnight.script:error -1 opening file

Before building I am including the taptools library and the script itself.

I’d be grateful for any pointers…

Thanks,

stuart

#25723
Apr 30, 2006 at 6:45pm

I suggest to put your script inside the package, not in the collective.
Did you define the filepath inside your patcher to be triggered when
needed?
To get your standalone pathname, use this Max message followed by a
receive object.:

(Change ‘MyApplicationPath’ for the real name of your standalone)

Then, fill-in with your own path to your script.
Example below.

HTH,
Philippe

#P window setfont “Sans Serif” 9.;
#P message 24 236 162 196617;
#P window linecount 1;
#P newex 24 209 57 196617 prepend set;
#P newex 24 182 146 196617 conformpath pathtype absolute;
#P newex 24 139 167 196617 sprintf %ssupport/goodnight.script;
#P newex 24 160 47 196617 tosymbol;
#P comment 48 62 171 196617 works in patcher and standalone both;
#P button 24 44 21 9;
#P window linecount 2;
#P comment 48 32 120 196617 in standalone use the max message
‘sendapppath’;
#P message 24 79 168 196617 ; max sendapppath MyApplicationPath;
#P window linecount 1;
#P newex 24 117 98 196617 r MyApplicationPath;
#P connect 3 0 1 0;
#P connect 0 0 6 0;
#P connect 6 0 5 0;
#P connect 5 0 7 0;
#P connect 7 0 8 0;
#P connect 8 0 9 0;
#P window clipboard copycount 10;

#76054
Jun 1, 2007 at 5:02am

hi I am trying to do the same thing taptools/applescript in standalone… but it is still not working where do i put the script? Does it go inside the app… ie. show package contents… then inside the support folder inside the contents folder?

i can’t get it to work… any help would be very much appreciated… it is a great function to applescript in max and it would be a shame if it were not possible to use it in a standalone application…

thanks in advance

tim

#76055

You must be logged in to reply to this topic.