• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
alias inside script bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: alias inside script bundle?
      • From: Axel Luttgens <email@hidden>
    • Re: alias inside script bundle?
      • From: Luther Fuller <email@hidden>
  • Prev by Date: Re: InDesign CS5.5-sorting styles
  • Next by Date: Re: alias inside script bundle?
  • Previous by thread: [ANN] AppleScriptDoc 1.4 : A document generator for AppleScript.
  • Next by thread: Re: alias inside script bundle?
  • Index(es):
    • Date
    • Thread