I'm really enjoying the new scripting feature in Artrage and I hope to see it continually expand. With the added functionality, I've decided to put some time into seeing if I could write scripts to do some automation to save time. I went through the advanced scripting document but I wasn't able to find some functionality I require and hopefully I can get some answers here.

1) Is there any way to get the current working directory or the directory of the script being executed? For now I just prompt the user with an input box so the directory can can entered manually.

2) I'd like to iterate through all files in a directory and import each image into a new layer. I tried recording a script and importing images to a layer manually to see the command. But the import command takes the actual binary data of the image being imported instead of a file path. Is there a way to do this and specify a file path instead?

Thanks and great work!