alias inside script bundle?
alias inside script bundle?
- Subject: alias inside script bundle?
- From: Jim Weisbin <email@hidden>
- Date: Fri, 18 May 2012 07:40:43 -0400
I have some scripts saved as apps that use the open source sound utility "sox". I store an executable version of "sox" inside the script bundle and access it using "path to me". Then I construct do shell scripts which use it to process audio files in various ways.
The quirky thing about "sox" though, is that certain functions are only accessible if you invoke the program with a different name. For example, if you want to get info about the file, such as it's duration, you have to invoke it as "soxi -D" instead of "sox -D". This is done using the alias soxi to point to sox (if you install sox using Macports or compile from source, it will install the necessary aliases in /usr/sbin).
I don't want to have to install sox on all my users' computers, I want it to be portable, so that's why I store sox in the script bundle instead. The question is, how do I store an alias "soxi" in the bundle? It seems to me that, if I make an alias when I compile the script, it will depend on "path to me", and therefore not be valid for any other machine.
Is there a way around this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden