Question: I'm using Cocos2d and looking to access a variable (CakesEaten) from another CCScene.

```
// in MainScene.h
@interface MainScene : CCScene{
    int CakesEaten;
}
@property int CakesEaten;

// in MainScene.m
@implementation
@synthesize CakesEaten;

// at the top of ScoreScreen.m
#import "MainScene.h"
// in the ScoreScreen.m init method
MainScene.CakesEaten = 9999

```

Gives an error of: Property "CakesEaten" not found on object of type MainScene. It's the only error that I receive when building.

Answer: 
`Application parameters` has a macros support (plus icon in the field). You need to use `$FilePathRelativeToProjectRoot$` macros.

This example runs `node /node_modules/.bin/wdio wdio.local.conf.js --spec foo.js`. `foo.js` is `$FilePathRelativeToProjectRoot$`

[![enter image description here](https://i.stack.imgur.com/Zbkp0.png)](https://i.stack.imgur.com/Zbkp0.png)
One way to do this is right clicking the file, then choosing `Run <filename>`. This will run the current file using the defaults from the Run Configuration.