Relative Path Help

balam's picture

Hi, I have a problem with relative path my patch loads compositions with the "n" key. if I drag and drop the full path of the conpositions gets paste ( /Users/me/Documents/coolqc/test/xyz.qtz) and it works

for portability I need the path to relative to the folder where all the qc patches are. so doing /test/xyz.qtz does not work. also ~/test/xyz.qtz does not work how do you guys suggest a nice and clean fix.

see attach comp.

thanks ...

PreviewAttachmentSize
Help-needit.zip72.97 KB

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

jean_pierre's picture
Re: Relative Path Help

the short answer is that '/text/xyzzy.qtz' is not a relative path but an absolute path, and '~/test/xyzzy.qtz' is using a shell shortcut which abbreviates the user's home directory as '~', which works great in shells but many (all of Apple's?) QC patches will not expand '~', leaving you with a bad path. a proper relative path would be relative to the running composition, so in your 'alpha-loadall ARTBOS1.qtz' composition you are using a mix of absolute paths and the tilde-user-home trick, instead try simply just 'Blue.qtz' or './Blue.qtz' which is a little more explicit in shell terms, but both result in the same thing.

balam's picture
Re: Relative Path Help

Jean_pierre thanks for the explanation and for the solution they both work thanks

jean_pierre's picture
Re: Relative Path Help

excellent, i am glad that worked out, happy composing.