• 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

AppleScript einbinden?

Tyrra

Kronprinz Rudolf von Österreich
Registriert
17.12.07
Beiträge
1.902
Hallo, wie bindet man AppleScripte ein? Z.b. eines für den Safari!
Dieses macht das alle geöffneten Tabs in bestimmten Zeitintervallen neu laden.

Scriptanfang ---------------

(*
Written by: Sean Long
On: 06/11/2007
From: http://www.hailstonesoftware.com
Purpose: Auto reload tabs in Safari. Currently will reload every 2 minutes.
License: free to use how you choose.
*)

global seconds_to_delay
set seconds_to_delay to 120

tell application "Safari"
repeat
repeat with i from 1 to the count of windows
set this_win to (window i)
repeat with j from 1 to the count of every «class bTab» in this_win
do JavaScript "window.location.reload()" in («class bTab» j of window i)
end repeat
end repeat
delay seconds_to_delay
end repeat
end tell

Ende ------------------------
 
Das brauchste nicht einzubinden. Einfach:
  1. In den Scripteditor kopieren
  2. als Programm sichern
  3. starten
Solange es läuft führt es alle 120 Sekunden die reloads durch.