AppleScript C Perl Shell Xcode Other

Logging to PayPal automatically

Post Reply
coding / applescript     Views: 1422Prev .. Next
Logging to PayPal automaticallyPosted: Wednesday, June 16, 2010 [22:12:42] - 1
rootPosted by:rootMember Since:
June 16 2010
Posts: 356
This script by itself is nothing new or special, but it takes out the headache of remembering your password.
View Codetell application "Safari" to activate
delay 3

tell application "Safari"
make new document
delay 2
set URL of document 1 to "https://www.paypal.com/us/"
set myURL to URL of document 1
delay 10
set web_page_is_loaded to false
set myCounter to 0
set maxCounter to 30
set my_delay to 1
repeat until web_page_is_loaded is true
if name of window 1 contains "Loading" or name of window 1 contains "Untitled" then
delay my_delay
else
set web_page_is_loaded to true
end if
set myCounter to myCounter + 1
if myCounter is maxCounter then
set web_page_is_loaded to true
end if
end repeat
delay 1
do "document.getElementById('login_email').focus()" in document 1
end tell
delay 2
tell application "System Events"
tell process "Safari"
delay 2
-- enter your email address here
keystroke "your_email_address"
delay 2
keystroke tab
delay 1
-- enter your PayPal password here
keystroke "Your_PayPal_Password"
delay 2
keystroke return
delay 2
end tell
end tell


Once again, save it as an application (with .app extension) and store it in a password protected image file.
Script will fire-up Safari and log you to your PayPal account.There's no place like ~
coding / applescriptPrev .. Next
 
Post Reply
Home - Coding: AppleScript C Perl Shell Xcode Other
Our Telegram Group