Sto cercando di automatizzare Copy, Paste, Tab e Left in Microsoft Excel e Safari o Firefox usando Applescript. Ho un'esperienza limitata nella codifica e di recente ho rispettato un codice, ma sfortunatamente non funziona come previsto ...
Cosa voglio che accada;
- Nel browser Copia
- In Excel Incolla, Sinistra, Copia
- Nella scheda del browser, incolla, scheda x8
- Ripeti
repeat 50 times
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
keystroke "c" using command down
end tell
end tell
delay 0.3
tell application "Microsoft Excel" to activate
tell application "System Events"
tell process "Microsoft Excel"
keystroke "v" using command down
delay 0.3
key code 123
keystroke "c" using command down
end tell
end tell
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
keystroke tab
keystroke "v" using command down
keystroke tab
keystroke tab
keystroke tab
keystroke tab
keystroke tab
keystroke tab
keystroke tab
keystroke tab
end tell
end tell
delay 0.3
end repeat