• Bitte um Hilfe bei einem AppleScript, (Schönheitsfehler korrigieren)

    Hallo!
    Das Script macht eigentlich nix anderes als auf Knopfdruck mehrere Websites zu öffnen.
    Mein Safari startet autom. mit einem leeren Tab.
    Das Script läuft halt jetzt so, dass alle Seiten in einem neuen Tab geladen werden. Sprich, die erste Seite in Safari ist immer leer. (Ja ist nur ein Schönheitsfehler, aber dennoch...)
    Wie stell ich es an dass der erste link nicht in einem NEUEN Tab sondern gleich im vorhanden Tab geladen wird? Irgendwas mit "Current Tab" oder so? Komm (mit googles Hilfe) leider nicht drauf.

    Show Plain Text
    1. tell application "Safari"
    2.   activate
    3. end tell
    4. tell application "Safari"
    5.   tell window 1
    6.     make new tab with properties {URL:"http://www.xyz1.de"}
    7.     make new tab with properties {URL:"http://www.xyz2.de"}
    8.     make new tab with properties {URL:"http://www.xyz3.de"}
    9.     make new tab with properties {URL:"http://www.xyz4.de"}
    10.     make new tab with properties {URL:"http://www.xyz5.de"}
    11.   end tell
    12. end tell
    • Versuch das

      Show Plain Text
      1. tell application "Safari"
      2.   tell window 1
      3.     set URL of current tab to "http://www.xyz1.de"
      4.     make new tab with properties {URL:"http://www.xyz2.de"}
      5.     make new tab with properties {URL:"http://www.xyz3.de"}
      6.     make new tab with properties {URL:"http://www.xyz4.de"}
      7.     make new tab with properties {URL:"http://www.xyz5.de"}
      8.   end tell
      9. end tell


      Die activate Zeile ist eigentlich nicht notwendig
      ----------
      Gruss

      Stefan
    • via Bookmark Ordner

      geht es auch - alle urls in einen Bookmarkordner tun, Open in new Tabs - öffnet sie dann alle mit 1 Klick in Safari.