• Das kreative Thema des Monats Oktober wird vor allem diejenigen unter Euch besonders ansprechen, denen Do-it-yourself quasi im Blut liegt. Zeigt uns Eure Improvisationskünste oder fotografiert, was andere Leute sich so im Alltag zusammengestrickt haben. --> Zum Mitmachen bitte hier klicken

ip adresse ändern (programm)

Wer eine Fritz!Box verwendet kann in Firefox mit Fox!Box seinen Router ganz bequem mit nur einem Rechtsklick neu verbinden :)
 
Kamma das bitte auch mal für IPv6 updaten? :-P
Gruß Pepi

Klar! Außerdem wird die IP auf Wunsch (Am Ende "OK" statt "Abbrechen" wählen) ins Clipboard kopiert.

on run
   set the_version to the button returned of (display dialog "Bitte IP Version wählen" buttons {"IPv6", "IPv4", "Cancel"} default button "IPv4" cancel button "Cancel")
   set all_bytes to {}
   repeat with i from 0 to 255
      copy i to the end of all_bytes
   end repeat
   set neue_ip to {}
   set AppleScript's text item delimiters to " "
   if the_version is "IPv4" then
      repeat with i from 1 to 4
         copy some item of all_bytes to the end of neue_ip
      end repeat
      set neue_ip to do shell script "perl -e 'print join qq/./,@ARGV' " & (neue_ip as string)
   else
      repeat with i from 1 to 8
         copy (some item of all_bytes) * 256 + (some item of all_bytes) to the end of neue_ip
      end repeat
      set neue_ip to do shell script "perl -e 'print join qq/:/,map {sprintf q/%04x/,$_ } @ARGV' " & (neue_ip as string)
   end if
   display dialog "Schau mal, welch hübsche IP Adresse ich hier für Dich habe:" & return & neue_ip
   set the clipboard to neue_ip
end run
 
Das nenn ich mal eine vorbildliche Reaktionszeit eines Entwicklers für einen sinnvollen Feature Request, dessen Zukunftsichernde Implementation einfach notwendig war, denn dieser Tag wird kommen. :-D
Gruß Pepi
 
nicht jeder, der rs nutzt, tut dies mit illegalen sachen. soll ja auch legale sachen geben, die man tauschen bzw hochladen kann ;)
 
  • Like
Reaktionen: zeno