Tap.applescript and subroutines?

19 views
Skip to first unread message

Harlo Holmes

unread,
Jul 5, 2010, 1:27:06 PM7/5/10
to ElectroTap
Hi all,

Trying out the demo right now, with the hopes of using TapTools for an
upcoming video installation I'm doing. However, I need max to trigger
a subroutine-- how does Tap Tools handle something like the following:

A basic subroutine example:

on basicExample(anyNumber)
return anyNumber + 2
end basicExample

how do i call this using a Max message? I'm looking for something
like "script basicExample($1)" which of course doesn't work with Max.
Maybe some sort of hack like "[prepend script basicExample]" or
something like that?

Or perhaps I should create applescript subroutines that employ
keywords in the calling syntax? (Like "basicExample with $1" or
something?)

Thanks,
Harlo Holmes/Lovers v. Haters

Timothy Place

unread,
Jul 6, 2010, 4:57:38 PM7/6/10
to elect...@googlegroups.com
Hi,

I've been playing with this for a little bit, thinking it must be possible with just a couple of tweaks.  However, I haven't come across anything that seems to pull it off yet.

It does seem to be a challenge.  Is it possible to create the script you want as text (using the text object), save that file, and then have tap.applescript open the file (and then send a bang)?  It is a little roundabout, but maybe it will do the trick?

best,
 Tim



--
You received this message because you subscribed to the Electrotap group.
To unsubscribe from this group, send email to electrotap-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/electrotap?hl=en

Electrotap -- http://electrotap.com/
Tools for Innovative Music, Media, and Art

Harlo Holmes

unread,
Jul 6, 2010, 8:07:26 PM7/6/10
to ElectroTap
Roundabout ways are ways, too! Thinking about doing what you suggest
and streamlining the process with some javascript. I'll keep the
group posted as I'm working on it.

Thanks,
Harlo

On Jul 6, 4:57 pm, Timothy Place <t...@electrotap.com> wrote:
> Hi,
>
> I've been playing with this for a little bit, thinking it must be possible
> with just a couple of tweaks.  However, I haven't come across anything that
> seems to pull it off yet.
>
> It does seem to be a challenge.  Is it possible to create the script you
> want as text (using the text object), save that file, and then have
> tap.applescript open the file (and then send a bang)?  It is a little
> roundabout, but maybe it will do the trick?
>
> best,
>  Tim
>
> On Mon, Jul 5, 2010 at 12:27 PM, Harlo Holmes <harlo.hol...@gmail.com>wrote:
>
>
>
> > Hi all,
>
> > Trying out the demo right now, with the hopes of using TapTools for an
> > upcoming video installation I'm doing.  However, I need max to trigger
> > a subroutine-- how does Tap Tools handle something like the following:
>
> > A basic subroutine example:
>
> > on basicExample(anyNumber)
> >  return anyNumber + 2
> > end basicExample
>
> > how do i call this using a Max message?  I'm looking for something
> > like "script basicExample($1)" which of course doesn't work with Max.
> > Maybe some sort of hack like "[prepend script basicExample]" or
> > something like that?
>
> > Or perhaps I should create applescript subroutines that employ
> > keywords in the calling syntax?  (Like "basicExample with $1" or
> > something?)
>
> > Thanks,
> > Harlo Holmes/Lovers v. Haters
>
> > --
> > You received this message because you subscribed to the Electrotap group.
> > To unsubscribe from this group, send email to
> > electrotap-...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/electrotap?hl=en
>
> > Electrotap --http://electrotap.com/
Reply all
Reply to author
Forward
0 new messages