Re: Shell Script Not Working from AppleScript Call
Re: Shell Script Not Working from AppleScript Call
- Subject: Re: Shell Script Not Working from AppleScript Call
- From: Axel Luttgens <email@hidden>
- Date: Sun, 24 Aug 2008 11:51:10 +0200
Le 24 août 08 à 09:44, Rick Gordon a écrit :
The script line that is generated from the following AppleScript
works in Terminal, returning the external IP number, but from
AppleScript it returns "" without error. I can't figure out why.
[...]
Hello Rick,
I haven't installed wget here, so I can't tell for sure: perhaps does
it have some defaults and options related to the way it writes to
stdout and stderr?
Anyway, curl being installed by default on Mac OS X, perhaps could try
with it instead of wget?
For example:
do shell script "curl -s http://www.edpsciences.org/htbin/ipaddress |
sed -nE 's/^Your[^0-9]*([0-9\\.]+).*/\\1/p'"
HTH,
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