What does 'apples' mean in drug slang?

It is slang for barbiturates. Barbiturates are "downers"...they're tranquilizers and they are used for anaesthesia or as sleeping pills.