Installing A Pocket Door With Light Switch

Electrical ac dc light switch and pocket door i have a small bathroom.
Installing a pocket door with light switch. Use a stud finder to locate and mark the stud locations then hammer a nail on the center leaving roughly 1 8 inch sticking out. I m installing double pocket doors and would like to install a 3 switch box next to the opening of the wall. I recently installed 2 pocket door kits together from one room to an adjacent in my house. Door switch on pocket door wall has anyone on here had any luck installing a light switch on a wall with a pocket door.
Space is limited so we are hoping to be able to put the electrical switches right near the door openings. We are installing fours johnson 1500 pocket doors in two locations each with two 24 converging doors. Insert the ball switch and low voltage wiring through the framing. We understand that there will not be sufficient room for these boxes and the doors so we are hoping to build out from the pocket door assembly.
A hinged door can be impractical in a small bathroom or a kitchen where it can block a cabinet. Bob vila meets with contractors who are installing pocket doors in a cracker style cottage. For more how to video visit. If your familiar with pocket doors these are walls that contain 2x4 split studs to accommodate the doors.
The wall is a standard 3 1 2 4 1 2 thick. This is where the frame header brackets will rest. To install the ball switch in the doorjamb drill out a hole in the frame of the closet door using a power drill and a spade bit. The normal shallow utility box is too deep for the wall so i am looking for options that would be around 1 1 4 deep.
Install the pocket door frame measure up from the floor 80 inches leaving anywhere from inches to 1 inches clearance under the door. Each split stud is 3 4 deep and then i have the thickness of the drywall to add to it. The building inspector said he saw no problem with me installing a light switch in a shallow electrical box on the pocket door frame as long as i could properly secure the wire per code within 8 of the box. A light switch is in the wall next to the door.