# batchPlay "open image" operation is failing on Mac computer. Works on Windows. Any reason why?

**URL:** <https://forums.creativeclouddeveloper.com/t/batchplay-open-image-operation-is-failing-on-mac-computer-works-on-windows-any-reason-why/6878>\
**Category:** UXP Plugin API\
**Created:** [September 27, 2023, 4:28pm UTC](https://forums.creativeclouddeveloper.com/t/batchplay-open-image-operation-is-failing-on-mac-computer-works-on-windows-any-reason-why/6878 "2023-09-27T16:28:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Timothy\_Bennett](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/timothy_bennett/32/1251_2.png) [@Timothy\_Bennett](https://forums.creativeclouddeveloper.com/u/Timothy_Bennett)\
**Post date:** [September 27, 2023, 4:38pm UTC](https://forums.creativeclouddeveloper.com/t/batchplay-open-image-operation-is-failing-on-mac-computer-works-on-windows-any-reason-why/6878/2 "2023-09-27T16:38:03Z")

</div>

I’m gonna guess what you are looking for is the `path` module:

> [@How to access path module?](http://forums.creativeclouddeveloper.com/t/how-to-access-path-module/5974/2):
>
> According to @shuji, path variable can be used without any declaration. [Photoshop UXP localFileSystem | city-pop-mix.com](https://city-pop-mix.com/blog/UXP/localFileSystem)[UXP\_path.js | GitHub Gist](https://gist.github.com/tokyosheep/95fe5fc2edfd1b15b07604f9bff886de) const pathText = `file:/Users/username/Desktop/filename.txt` ; const parentFolder = path.dirname(pathText) ; console.log(parentFolder) ; // --\> file:/Users/username/Desktop const nameWithoutExtension = path.parse(pathText).name ; console.log(nameWithoutExtension) ; // --\> filename

In a nutshell, paths are written differently depending on OS and the path module will make them cross-platform.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/batchplay-open-image-operation-is-failing-on-mac-computer-works-on-windows-any-reason-why/6878)._
