E
Emu
Neues Mitglied
Thread Starter
- Dabei seit
- 09.10.2004
- Beiträge
- 8
- Reaktionspunkte
- 0
Hallo,
ich möchte ein script basteln, was im calender nachsieht ob Thermine sind.
wenn Thermine sind soll es die Systhemeinstellung so verändern, dass sich der Rechner zum erinnerungszeitpunkt aufweckt 2 Minuten später iTunes startet und 30 min später alle offenen Programme (bis auf iCal) schliest und den Rechner schlafen schickt.
folgendes script funktioniert nicht
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.energysaver"
end tell
tell application "System Events"
if UI elements enabled then
tell tab group 3 of window ¬
"Energie sparen" of process "System Preferences"
click button 2 ¬
(* may be "Set Display to Grayscale" or "Set Display to Color" *)
end tell
else
tell application "System Preferences"
activate
set current pane ¬
to pane "com.apple.preference.energysaver"
display dialog ¬
"UI element scripting is not enabled. Check \"Enable access for assistive devices\""
end tell
end if
end tell
das script was iTunes ruft geht
tell application "iTunes"
launch
set the playlist_names to the name of every playlist
if playlist_names contains "Wecker" then
set this_track to the first track of playlist "Wecker"
else if the playlist_names contains "Meine Top 25" then
set this_track to some track of playlist "Meine Top 25"
else
set this_track to some track of playlist "Bibliothek"
end if
play this_track
set sound volume to 100
set visuals enabled to 1
set full screen to 1
end tell
vielen dank im foraus für alle antworten.
ich möchte ein script basteln, was im calender nachsieht ob Thermine sind.
wenn Thermine sind soll es die Systhemeinstellung so verändern, dass sich der Rechner zum erinnerungszeitpunkt aufweckt 2 Minuten später iTunes startet und 30 min später alle offenen Programme (bis auf iCal) schliest und den Rechner schlafen schickt.
folgendes script funktioniert nicht
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.energysaver"
end tell
tell application "System Events"
if UI elements enabled then
tell tab group 3 of window ¬
"Energie sparen" of process "System Preferences"
click button 2 ¬
(* may be "Set Display to Grayscale" or "Set Display to Color" *)
end tell
else
tell application "System Preferences"
activate
set current pane ¬
to pane "com.apple.preference.energysaver"
display dialog ¬
"UI element scripting is not enabled. Check \"Enable access for assistive devices\""
end tell
end if
end tell
das script was iTunes ruft geht
tell application "iTunes"
launch
set the playlist_names to the name of every playlist
if playlist_names contains "Wecker" then
set this_track to the first track of playlist "Wecker"
else if the playlist_names contains "Meine Top 25" then
set this_track to some track of playlist "Meine Top 25"
else
set this_track to some track of playlist "Bibliothek"
end if
play this_track
set sound volume to 100
set visuals enabled to 1
set full screen to 1
end tell
vielen dank im foraus für alle antworten.