• 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
Re: alias inside script bundle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: alias inside script bundle?


  • Subject: Re: alias inside script bundle?
  • From: Axel Luttgens <email@hidden>
  • Date: Fri, 18 May 2012 14:53:00 +0200

Le 18 mai 2012 à 13:40, Jim Weisbin a écrit :

> 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).

Hello Jim,

I guess those files aren't aliases, but symbolic links.
To be sure, could you run the following in Terminal.app:

	ls -al /usr/bin/sox*

and show us the output?


> 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?

Should be feasible. ;-)
Could you describe us the structure you are envisioning for you script bundle, with the precise location of sox and its various siblings?

Axel



 _______________________________________________
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: Shane Stanley <email@hidden>
References: 
 >alias inside script bundle? (From: Jim Weisbin <email@hidden>)

  • Prev by Date: Re: alias inside script bundle?
  • Next by Date: Re: alias inside script bundle?
  • Previous by thread: Re: alias inside script bundle?
  • Next by thread: Re: alias inside script bundle?
  • Index(es):
    • Date
    • Thread