All the solutions I've seen so far either query web sites, or require OS 9.
System Preferences' dictionary claims it will open a pane, but Applescript
claims "pane" is an undefined variable.
In Terminal, you can type
ifconfig -a
to see your current IP address and associated information.
Is there a way to script Terminal to copy the IP Number to the clipboard?
Al Hatch
pipe it to pbcopy
ifconfig -a | pbcopy
--
Tony Lawrence
Free SCO and Linux Skills Tests: http://aplawrence.com/skillstest.html
> pipe it to pbcopy
>
> ifconfig -a | pbcopy
The just use the "do shell script" command in AppleScript (its in
Standard Additions).
Patrick
--
Patrick Stadelmann <Patrick.S...@unine.ch>
::::or::::
set TheResult to (do shell script "curl -f http://checkip.dyndns.org")
set Olddelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to "Current IP Address: "
set LongIP to item 2 of every text item of TheResult
set AppleScript's text item delimiters to return
set myip to item 1 of (every text item of LongIP)
display dialog "Your IP is : " default answer (myip) with icon note
set AppleScript's text item delimiters to Olddelim
in article Patrick.Stadelmann-8...@news.fu-berlin.de,
Patrick Stadelmann at Patrick.S...@unine.ch wrote on 1/6/03 4:29 PM:
Tony Lawrence wrote:
pipe it to pbcopy
ifconfig -a | pbcopy
Patrick Stadelmann wrote:
The just use the "do shell script" command in AppleScript (its in
Standard Additions).
Koncept wrote:
On Mon, 6 Jan 2003 13:59:37 -0800, Koncept wrote
(in message <BA3F6678.18470%the_...@nospam-hotmail.com>):