Hola:
La única forma de pasar variables javascript a php es recargando la página, por medio de un formulario y cualquier método o con un enlace a sí mismo simulando el método get, o sea por url...
Código:
<html>
<head>
<title>
Prueba
</title>
</head>
<body >
<form method="get" enctype="text/plain" >
<input type="hidden" name="stringPathAbiertoToSave" value="algo" />
<button type="submit" >enviar</button>
</form>
</body>
</html>
Saludos