I am creating a startup for my daily use application I want to automatically start the startup process.
Now, I only launched two applications VirtualHostX and MAMP. Later I may add some.
This is what I have so far What it did:
tell application "VirtualHostX" to activate
tell application "MAMP" to activate
tell application "System Events"
tell process "VirtualHostX"
tell menu bar 1
tell menu bar item "Web Server"
tell menu 1
click menu item "Start"
end tell
end tell
end tell
end tell
end tell
When it starts, it will successfully start two applications, but the virtual host will ask My password for authorization. I want to integrate the input password in the process or code. I have tried Google for an answer, but failed to find a solution.
I can’t seem to locate the window and enter my password .
Let me know what I missed.
Thank you.
tell application "System Events" to tell process "SecurityAgent"
set value of text field 2 of scroll a rea 1 of group 1 of window 1 to "password"
click button 2 of group 2 of window 1
end tell
I’m from Apple Novice, I am currently stuck in the access prompt window, asking for a password.
I am creating a launcher for my daily use application, and I want to automatically start the startup process.
Now, I only launched two applications VirtualHostX and MAMP. Later I may add some.
This is what I have done so far:
tell application "VirtualHostX" to activate
tell application "MAMP" to activate
tell application "System Events"
tell process "VirtualHostX"
tell menu bar 1
tell menu bar item "Web Server"
tell menu 1
click menu item "Start"
end tell
end tell
end tell< br /> end tell
end tell
When it starts, it will successfully start two applications, but the virtual host will ask for my password for authorization. I want to integrate in the process or code Enter the password. I have tried Google for an answer, but failed to find a solution.
I can’t seem to locate the window and enter my password.
Let me know what I missed .
Thank you.
The password dialog box is displayed by SecurityAgent:
< pre>tell application “System Events” to tell process “SecurityAgent”
set value of text field 2 of scroll area 1 of group 1 of window 1 to “password”
click button 2 of group 2 of window 1
end tell
< /p>