Closed aakrandan closed 1 year ago
https://github.com/appium/appium-mac2-driver/blob/6ab5fdd947e66946136103d5be09c2bcf4ddad02/README.md#macos-applescript may help.
cwd
is a working directory to run the given script on. https://github.com/appium/appium-mac2-driver/blob/443594195a5e90f82edbb61967b20c528c226a2c/lib/commands/applescript.js#L74
So, if you'd like to run the appleScript in /some/path
, path probably should be /some/path
Hello,
You could also customize the script working directory by providing the cwd option.
The document says we can choose the working directory from where we can choose to execute our apple script. But I am struggling to understand how to use it. So far i have tried below ways:
This is the error I am facing:
I was forced to use script/command option because they weren't optional. But I am not sure what else should i use instead of that.
Also am I using
cwd
option properly?