Re: Inconsistancy Between Do Shell Script and Terminal?
Re: Inconsistancy Between Do Shell Script and Terminal?
- Subject: Re: Inconsistancy Between Do Shell Script and Terminal?
- From: "Adam K. Wuellner" <email@hidden>
- Date: Wed, 12 Jan 2005 14:35:55 -0600
On Jan 12, 2005, at 2:02 PM, Jonathan Levi, M.D. wrote:
Could someone please tell me why my appleScript's command
do shell script "~/bin/getMedscapeViewArticleNumber.sh
'/office/CME/medscape-articles/cardiologyViewdocs/3221-
childhoodObesity/3221.html'"
(as copied from the Event log) returns "", while the exact command
minus first three words and outer quotes, copied from the same log and
pasted into a Terminal window, gives "481633
" (i.e., with final return)?
The line of AppleScript code looks okay. There might be an issue with
the .sh script it calls.
<http://developer.apple.com/technotes/tn2002/tn2065.html> explains the
differences between the environment you get in Terminal, and the
environment you get when using do shell script ("Gory Details").
Have a look at that tech note and see if your shell script can operate
given the environment it is being run in.
If the shell script is not yours to modify, as a work around you could
(apple)script Terminal to run it, redirecting its output to a file, and
read the file into your AppleScript for continued processing....
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden