• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Script help for filling in Chrome credentials dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script help for filling in Chrome credentials dialog


  • Subject: Re: Script help for filling in Chrome credentials dialog
  • From: Jim Underwood <email@hidden>
  • Date: Fri, 17 Feb 2017 21:41:05 +0000
  • Thread-topic: Script help for filling in Chrome credentials dialog

Dan,

To be bluntly honest, I think this is a bad idea and is a big security risk since your logon credentials are available to all in clear text.

Instead of using AppleScript, I'd suggest a password manager, like 1Password.  You can set 1Password to auto-fill your login info after you have entered the 1Password master password (once during a Mac session).

I've been using 1Password for years, and it works very well.

Best Regards,

Jim Underwood
aka JMichaelTX


From: <applescript-users-bounces+jmichael=email@hidden> on behalf of "Ball, Dan" <email@hidden>
Date: Fri, Feb 17, 2017 at 2:21 PM
To: "ASUL (AppleScript)" <email@hidden>
Subject: Script help for filling in Chrome credentials dialog

Can someone help with this?  Trying to launch a webpage in kiosk mode using Chrome that needs authentication and trying to script it, but it won’t fill in the credentials when the dialog pops up in Chrome.

delay 4
tell application "Finder"
                activate
                do shell script "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --kiosk https://somewebpage.com<https://somewebpage.com/>"
end tell
tell application "Google Chrome"      (Also tried here System Events, Google Chrome Helper or System Events to tell process “Google Chrome”)
                activate
                delay 0.3
                keystroke "username"
                keystroke tab
                keystroke "password"
                keystroke return
end tell


Thanks,

Dan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Script help for filling in Chrome credentials dialog (From: "Ball, Dan" <email@hidden>)

  • Prev by Date: Script help for filling in Chrome credentials dialog
  • Next by Date: Re: Script help for filling in Chrome credentials dialog
  • Previous by thread: Script help for filling in Chrome credentials dialog
  • Next by thread: Re: Script help for filling in Chrome credentials dialog
  • Index(es):
    • Date
    • Thread