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: Rick Gordon <email@hidden>
- Date: Sun, 24 Aug 2008 13:16:22 -0700
Bingo! That works. Thanks.
------------------
On 8/24/08 at 11:51 AM +0200, Axel Luttgens wrote in a message entitled
"Re: Shell Script Not Working from AppleScript Call":
>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'"
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
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