# Is this expected behaviour?

**URL:** <https://forum.juce.com/t/is-this-expected-behaviour/16162>\
**Category:** Audio Plugins\
**Created:** [December 7, 2015, 4:06pm UTC](https://forum.juce.com/t/is-this-expected-behaviour/16162 "2015-12-07T16:06:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [December 7, 2015, 4:06pm UTC](https://forum.juce.com/t/is-this-expected-behaviour/16162/1 "2015-12-07T16:06:27Z")

</div>

I have the following code in my plugin constructor:

```
Logger::writeToLog("CABBAGE_AU defined");File myFile = File("~/Library/Audio/Plug-Ins/Components/CabbageAU.component");Logger::writeToLog(myFile.getFullPathName());
```

But instead of printing the filename and path given to File() I get this instead:

```
/Users/walshr/Library/Containers/com.apple.garageband10/Data/Library/Audio/Plug-Ins/Components/CabbageAU.component
```

What's up with that? It looks like when the AU binary is loaded from Garageband, ~/Library gets expanded to&nbsp;

```
/Users/walshr/Library/Containers/com.apple.garageband10/Data/Library
```

I'm using JUCE 4.02.&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [December 7, 2015, 4:24pm UTC](https://forum.juce.com/t/is-this-expected-behaviour/16162/2 "2015-12-07T16:24:27Z")

</div>

Sorry, looks like you're getting sandboxed!

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [December 7, 2015, 4:34pm UTC](https://forum.juce.com/t/is-this-expected-behaviour/16162/3 "2015-12-07T16:34:47Z")

</div>

Oh no. Worst news ever!

Is there a way around it?&nbsp;

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [December 7, 2015, 5:16pm UTC](https://forum.juce.com/t/is-this-expected-behaviour/16162/4 "2015-12-07T17:16:42Z")

</div>

No! But you can use other directories which are not affected by sandboxing.

You can use ~/Music/Audio Music Apps/YourCompanyName/YourSettings.conf

Other plugins incl. logic use the "Audio Music Apps" to store there content/presets/settings etc...

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![rory](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/rory/32/534_2.png) [@rory](https://forum.juce.com/u/rory)\
**Post date:** [December 7, 2015, 5:20pm UTC](https://forum.juce.com/t/is-this-expected-behaviour/16162/5 "2015-12-07T17:20:20Z")

</div>

That's good to know. Although I wish I had figured this out before wasting quite some time today wondering what the flip was going on!&nbsp;
