• Apfeltalk ändert einen Teil seiner Allgemeinen Geschäftsbedingungen (AGB), das Löschen von Useraccounts betreffend.
    Näheres könnt Ihr hier nachlesen: AGB-Änderung
  • Was gibt es Schöneres als den Mai draußen in der Natur mit allen Sinnen zu genießen? Lasst uns teilhaben an Euren Erlebnissen und macht mit beim Thema des Monats Da blüht uns was! ---> Klick

Automator Copy Problem

Dennis66

Jonagold
Registriert
01.07.07
Beiträge
21
Hallo,
habe leider ein kleines Problem mit Automator und verzweifle daran.
Ich möchte einfach aus nem Netzwerkordner andere Ordner komplett auswählen und dann in einen anderen einfügen.
Über die Aufnahme Funktion habe ich das auch soweit hinbekommen nur zeigt er mir den Arbeitsablauf immer an und ich möchte das gerne automatisch im Hintergrund jede Stunde machen lassen.
Hat da jemand eine Idee ??
Der Haken unter der Aktion wo steht klicken wenn angezeigt werden soll ist nicht gesetzt, aber er zeigt den Kram trotzdem immer an :(





-- Wählen Sie „Office“ im Finder aus.
delay 1.981413
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"Office\" of group 1 of scroll area \" \" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „Office“ im Finder aus.
delay 0.079983
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"Office\" of group 1 of scroll area \" \" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „DTP-LOGOS“ im Finder aus.
delay 1.623963
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"DTP-LOGOS\" of group 1 of scroll area 2 of splitter group 1 of window \"Office\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „DTP-LOGOS“ im Finder aus.
delay 0.071993
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"DTP-LOGOS\" of group 1 of scroll area 2 of splitter group 1 of window \"Office\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „2007_2008“ im Finder aus.
delay 1.791978
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"2007_2008\" of group 1 of scroll area 2 of splitter group 1 of window \"DTP-LOGOS\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „2007_2008“ im Finder aus.
delay 0.087991
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"2007_2008\" of group 1 of scroll area 2 of splitter group 1 of window \"DTP-LOGOS\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „Juli_Aug“ im Finder aus.
delay 1.303989
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"Juli_Aug\" of group 1 of scroll area 2 of splitter group 1 of window \"2007_2008\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „Juli_Aug“ im Finder aus.
delay 0.047978
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"Juli_Aug\" of group 1 of scroll area 2 of splitter group 1 of window \"2007_2008\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „umgewandelte Logos“ im Finder aus.
delay 2.023999
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"umgewandelte Logos\" of group 1 of scroll area 2 of splitter group 1 of window \"Juli_Aug\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „umgewandelte Logos“ im Finder aus.
delay 0.087990
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"umgewandelte Logos\" of group 1 of scroll area 2 of splitter group 1 of window \"Juli_Aug\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- ⌘A drücken
delay 0.463984
set timeoutSeconds to 2.000000
set uiScript to "keystroke \"a\" using command down"
my doWithTimeout( uiScript, timeoutSeconds )

-- ⌘C drücken
delay 0.728021
set timeoutSeconds to 2.000000
set uiScript to "keystroke \"c\" using command down"
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „Email Duitsland“ im Finder aus.
delay 1.952006
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"Email Duitsland\" of group 1 of scroll area \" \" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- Wählen Sie „Email Duitsland“ im Finder aus.
delay 0.087977
set timeoutSeconds to 2.000000
set uiScript to "click UI Element \"Email Duitsland\" of group 1 of scroll area \" \" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

--
delay 1.703991
set timeoutSeconds to 2.000000
set uiScript to "click group 1 of scroll area 2 of splitter group 1 of window \"Email Duitsland\" of application process \"Finder\""
my doWithTimeout( uiScript, timeoutSeconds )

-- ⌘V drücken
delay 0.296005
set timeoutSeconds to 2.000000
set uiScript to "keystroke \"v\" using command down"
my doWithTimeout( uiScript, timeoutSeconds )

on doWithTimeout(uiScript, timeoutSeconds)
set endDate to (current date) + timeoutSeconds
repeat
try
run script "tell application \"System Events\"
" & uiScript & "
end tell"
exit repeat
on error errorMessage
if ((current date) > endDate) then
error "Can not " & uiScript
end if
end try
end repeat
end doWithTimeout