# Can I target a subdirectory with "EXEC"?

**URL:** <https://forum.kirupa.com/t/can-i-target-a-subdirectory-with-exec/191074>\
**Category:** Uncategorized\
**Created:** [June 16, 2006, 9:36pm UTC](https://forum.kirupa.com/t/can-i-target-a-subdirectory-with-exec/191074 "2006-06-16T21:36:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iphotostuff](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/iphotostuff/32/2368_2.png) [@iphotostuff](https://forum.kirupa.com/u/iphotostuff)\
**Post date:** [June 16, 2006, 9:36pm UTC](https://forum.kirupa.com/t/can-i-target-a-subdirectory-with-exec/191074/1 "2006-06-16T21:36:04Z")

</div>

Howdy,

Where JPGS2.app is an applescript which resides DIRECTLY inside the fscommand folder the following **WORKS** :

```auto
on (release) {
butt1.onPress = function(){
	fscommand("exec", "openJPGS2.app");
}
}

```

Where JPGS2.app is an applescript which resided inside the folder “scripts\_apl” inside the fscommand folder the following **DOES NOT WORK** :

```auto
butt1.onPress = function(){
	fscommand("exec", ":scripts_apl:openJPGS2.app");
}

```

The same is true if just for kicks I put “:fscommand” in front of the path. Can I assumer therefore, that the EXEC commond does not allow for nested folders even inside the “fscommand” folder even though [Macromedia documentation says otherwise?](http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15942) I know that was an older reference. It is really important that I get a sub folder. I have some 40 applescripts and PC scripts that I will need to run, and I would really prefer them to be tucked nicely away in a folder. Any bright ideas?

cheers!

-i
