Plaintiff seeks a writ of prohibition, restraining .the superior court of Lassen County from making any order in a certain action instituted in that court by the California Safe Deposit and Trust Company against plaintiff here other than an order of dismissal. The action referred to was one to obtain an injunction restraining plaintiff here from using a certain railroad-crossing over the road of the Sierra Valleys Railway Company in Plumas County, the facts in regard thereto being detailed in the opinion in
Boca and Loyalton R. R. Co.
v.
Superior Court of Lassen County,
S. F. No. 4651,
ante,
p. 147, [
The main contention of plaintiff is that the injunction action has been dismissed by the plaintiff, and that the superior court is, therefore, without jurisdiction to make further orders therein.. The action was commenced on or about June 5, 1906. According to the allegations of the affidavit or complaint of plaintiff here, the plaintiff in that action, on June 30, 1906, no counterclaim having been made or affirmative relief sought by the defendant therein, sent its discontinuance in writing of said action to the clerk of said court, with its written request *155 that he enter a dismissal of the same, all of the costs having been paid. No such entry was made by the clerk, he basing his refusal to so do upon a certain order made by the court restraining him from so doing. On July 18, 1906, plaintiff by its attorneys moved the superior court for a dismissal of said action, there having been no appearance on the part of defendant, and all costs having been paid. That motion had not been decided at the time of the institution of this proceeding.
According to the allegations of the answer, the only written request for or notice of dismissal sent to the clerk was one signed by the plaintiff in said action by its manager, and not signed by any attorney of record, said plaintiff up to that time having appeared in said action by attorney only. It further appears that the subsequent motion for dismissal made by the attorneys on July 18, 1906, has only been partially heard, the further hearing and determination thereof having been continued by the court until the determination of this proceeding.
Plaintiff’s position is that under subdivision 1 of section 581 of the Code of Civil Procedure, providing that an action may be dismissed “by the plaintiff himself, by written request to the clerk, filed among the papers in the case, at any time before trial, upon payment of costs; provided, a counterclaim has not been made, or affirmative relief sought by the cross-complaint or answer of the defendant,” the presentation of the proper request to the clerk, and payment of costs, operated to divest the court of jurisdiction to make any further order in the case other than one requiring the clerk to make the proper entry of dismissal in its register. It may be conceded for the purposes of this proceeding that, if the above-quoted provision of law was complied with by the plaintiff in the injunction action, the position of plaintiff here is sustained by the decision of this court in
Hopkins
v.
Superior
Court,
It is, however, the settled law of this state that while a party to an action may appear in his own proper person or by attorney he cannot do both, and that as long as he has an attorney of record in an action the court cannot recognize any other as having management or control of the action, and the party can act only through his attorney. It may be that good reasons can be urged in support of a contrary rule, but
*156
the rule stated is so firmly settled here that we are not warranted in now departing from it. In the early ease of
Board of Commissioners
v.
Younger,
To accomplish the effect" given by the decision in
Hopkins
v.
Superior Court,
The mere making of the subsequent motion by the attorneys for plaintiff for a dismissal in open court on July 18, 1906, was not a dismissal under subdivision 1 of section 581 of the Code of Civil Procedure, or in the manner or form provided by that subdivision, and in no degree impaired the jurisdiction of the court over the cause. Whether or not the court should grant that motion in the face of the showing in opposition made by the parties beneficially interested in the maintenance of the action, and for whom plaintiff had commenced and was maintaining the action solely as a trustee, is a question it is not necessary here to decide. That motion is pending undetermined. Its pendency does not affect the jurisdiction, and we must now assume that it will be correctly determined.
It was further urged on the application for a writ of prohibition that under the circumstances alleged to have been shown to the superior court of Lassen County on the motion to dismiss made July 18, 1906, said court is without jurisdiction to grant or maintain an injunction enjoining plaintiff here from using the railroad-crossing situate in Plumas County. As already stated, the motion of July 18, 1906, has only been partially heard and is now pending undetermined. According to the allegations of the answer, pending its determination, the preliminary injunction issued in the action has been and is now suspended, under the terms of an order of the superior court of Lassen County. Under such circumstances, we cannot now assume that the superior court will not in determining said motion grant plaintiff here all the relief to which it is legally entitled, and in accord with our settled rule of practice we should decline to restrain the court below from proceeding, in advance of the ruling of such court on said motion. (See
Havemeyer
v.
Superior Court,
The alternative writ of prohibition heretofore issued is discharged and this proceeding dismissed.
McFarland, J., Shaw, J., Sloss, J., Lorigan, J., and Henshaw, J., concurred.
