I have two projects on the folders bar: A and B. When I open 'Execute Anonymous' it is set to project A. How do I 'Execute Anonymous' for project B?

  • 3
    Which IDE/Tool you are using?
    – Ashwani
    Jun 24, 2015 at 9:16
  • I'm using MavensMate Jul 26, 2015 at 7:09

2 Answers 2


For Force.com IDE (Eclipse) you can directly select project on which you'll execute your script

enter image description here

For MavensMate you can open simultaneously only one project so you will execute your script for project which is opened.

  • 1
    At least for the Force.com IDE, the project must be open, as well. Closed projects can't execute anonymous.
    – sfdcfox
    Jun 24, 2015 at 14:54

Right click on the Project folder from which you want to initialize execute anonymous

In context menu click 'Force.com' > Execute anonymous

This would start for the project on which you right clicked.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .