• 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: Fink and 'sh'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fink and 'sh'


  • Subject: Re: Fink and 'sh'
  • From: Walter Ian Kaye <email@hidden>
  • Date: Mon, 22 Mar 2004 14:28:06 -0800

At 10:25a -0500 03/22/2004, Graff didst inscribe upon an electronic papyrus:

That is indeed what I meant.

I didn't realize it but where is a shell built-in for tcsh. It's such a useful command that I just assumed it was more widely available.

One method for doing this totally via AppleScript would probably be to do something like:
-------------
try
set haveLAME to do shell script "/bin/tcsh -c 'where lame"

if haveLAME is not equal to "" then
set lamePath to first paragraph of haveLAME
do shell script lamePath & " " & myinputfile & " " & myoutputfile
end if
on error
display dialog "LAME not installed. Go on the net and get it?"
open location "http://www.culater.net/osd/packages.html";
end try
-------------

Rather than unexpectedly launching a browser (I hate when apps do that), perhaps put the URL in the 'default answer' text field of 'display dialog' so the user can choose to cmd-click or copy it. Hmm... cmd-click doesn't work (guess I got used to ICeTEe on System 7). Something like this:

display dialog "The script WidgetTwiddler requires LAME, which does not seem to be installed here. Launch Web browser to get it?" default answer "http://www.culater.net/osd/packages.html"; buttons {"Cancel", "Launch"}
open location text returned of result


-boo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Fink and 'sh' (From: Brennan <email@hidden>)
 >Re: Fink and 'sh' (From: Walter Ian Kaye <email@hidden>)
 >Re: Fink and 'sh' (From: Graff <email@hidden>)

  • Prev by Date: how to empty clipboard contents?
  • Next by Date: Re: how to empty clipboard contents?
  • Previous by thread: Re: Fink and 'sh'
  • Next by thread: Re: Fink and 'sh'
  • Index(es):
    • Date
    • Thread