SSH + multiple commands

Sorry for the basic question here, but I can't seem to find an answer anywhere. I want to alias a command that will ssh and then open up bbedit all in 1 command.

alias bbb 'ssh NAME@SERVER bbedit'

returns:
bash: bbedit: command not found

It returns this same thing for anything except super-basic commands such as "ls" or "pwd". So it's almost as if it's not initializing my .bashrc or something? I don't quite understand it.

This works:
alias bbb 'ssh NAME@SERVER open /Applications/BBedit.app'

but unfortunately I need the bbedit command-line tool to add other options.

Any help would be appreciated. Thanks!

ps. First post so sorry if this is in the wrong place.

alias bbb='ssh NAME@SERVER "bbedit -p " '

where -p is an option of some sort.
This has problems -- aliases do not allow you to put a varying filename inside them
Create a function instead. call the function bbb. Put the following in your login directories .profile or .bashrc, so the next time you login it will work. Add options to bbedit in the code if you need them (where "-p" is in the code)

# bbb bbedit on a remote box
# usage bbb filename_to_edit
bbb()
{
    mycmd=$( printf "ssh name@server 'bbedit -p %s'"  "$1")
    eval $mycmd
}