2013-11-13, 21:15
  #1
Medlem
Joppe-Kantarells avatar
Jag är helt grön när det kommer till Apple Scripts och undrar om någon kan hjälpa mig.
Behöver göra en email-checker script som gör följande:

Kopiera ruta A1 i Excel, klistra in i Chrome, nuvarande flik som email
Kopiera ruta B1 i Excel, klistra in i Chrome som lösenord
Tryck enter
Om följande meddelande dyker upp: "Fel användarnamn etc.", ladda om sidan samt radera ruta A1:B1
Loopa från steg ett.

Någon som kan hjälpa mig med detta?
Citera
2013-11-20, 11:25
  #2
Medlem
Joppe-Kantarells avatar
Jag har försökt med följande script men det vill inte. Någon som vet vad jag gör fel?

tell application "Microsoft Excel"
activate
select active cell
if the contents of the cell contains "@" then
delete row
end if
end tell
tell application "System Events"
keystroke "c" using command down
end tell

tell application "Firefox"
activate
open location "http://www.mywebpage.com"
tell application "System Events"
keystroke "v" using command down
end tell
end tell

tell application "Microsoft Excel"
activate
tell application "System Events"
keystroke "tab"
keystroke "c" using command down
end tell
end tell

tell application "Firefox"
tell application "System Events"
keystroke "tab"
keystroke "v" using command down
keystroke "tab"
keystroke "return"
end tell
if the string in the webpage "Username or password is invalid" exists then
tell application "Microsoft Excel"
delete row
end tell
end if
end tell

tell application "Microsoft Excel"
activate
tell application "System Events"
keystroke "left"
end tell
end tell
Citera

Skapa ett konto eller logga in för att kommentera

Du måste vara medlem för att kunna kommentera

Skapa ett konto

Det är enkelt att registrera ett nytt konto

Bli medlem

Logga in

Har du redan ett konto? Logga in här

Logga in