• 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: Shell Script Not Working from AppleScript Call
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Shell Script Not Working from AppleScript Call
      • From: Rick Gordon <email@hidden>
References: 
 >Shell Script Not Working from AppleScript Call (From: Rick Gordon <email@hidden>)

  • Prev by Date: Shell Script Not Working from AppleScript Call
  • Next by Date: Re: Can I store element info in a library and access it from other scripts
  • Previous by thread: Shell Script Not Working from AppleScript Call
  • Next by thread: Re: Shell Script Not Working from AppleScript Call
  • Index(es):
    • Date
    • Thread