Re: Fink and 'sh'
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.