Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

AppleScript with Firefox

I am new to AppleScript so bear with me.

Because you can't really use Hotmail with any email clients, i thought of just creating something similar in AppleScript. Just running in a browser such as Firefox I made a veeery basic script to open a window in Firefox and go to my mail inbox which works fine. I just want to make it look less like a browser so using AppleScript, is there any way to press that button in the top right of the window that hides the address bar and maybe resize and scroll down in the window?

I would really appreciate the help!

Thanks!

MacBook 1.83GHz, Mac OS X (10.4.11), Intel Core Duo, 2GB RAM

Posted on Apr 15, 2008 12:16 PM

Reply
Question marked as Best reply

Posted on Apr 16, 2008 7:52 PM

steven182,

Using Firefox version 3.0b5, the script below takes me to the Hotmail login page with the Navigation Toolbar collapsed. You can try substituting the URL for your Inbox for the one listed in this script.

Until re-enabled, subsequent windows opened in Firefox will open with the toolbar collapsed. To re-enable the toolbar, go to the View menu > Toolbars and select Navigation Toolbar.

Copy the code below and paste it into your AppleScript Script Editor. From the Script Editor's File menu, Save As > File Format: application, leaving the Options unchecked:

tell application "Firefox"
activate
delay 2
tell application "System Events"
tell process "Firefox"
click menu item "Navigation Toolbar" of menu 1 of menu item¬
"Toolbars" of menu 1 of menu bar item "View" of menu bar 1
end tell
tell application "Firefox"
OpenURL "https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&rver=¬
4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&bk=839 23745"
end tell
end tell
end tell

Make sure that Under System Preferences > Universal Access "Enable access for assistive devices" is checked.

Good luck!

Andrew99
1 reply
Question marked as Best reply

Apr 16, 2008 7:52 PM in response to steven182

steven182,

Using Firefox version 3.0b5, the script below takes me to the Hotmail login page with the Navigation Toolbar collapsed. You can try substituting the URL for your Inbox for the one listed in this script.

Until re-enabled, subsequent windows opened in Firefox will open with the toolbar collapsed. To re-enable the toolbar, go to the View menu > Toolbars and select Navigation Toolbar.

Copy the code below and paste it into your AppleScript Script Editor. From the Script Editor's File menu, Save As > File Format: application, leaving the Options unchecked:

tell application "Firefox"
activate
delay 2
tell application "System Events"
tell process "Firefox"
click menu item "Navigation Toolbar" of menu 1 of menu item¬
"Toolbars" of menu 1 of menu bar item "View" of menu bar 1
end tell
tell application "Firefox"
OpenURL "https://login.live.com/login.srf?wa=wsignin1.0&rpsnv=10&rver=¬
4.5.2130.0&wp=MBI&wreply=http:%2F%2Fmail.live.com%2Fdefault.aspx&id=64855&bk=839 23745"
end tell
end tell
end tell

Make sure that Under System Preferences > Universal Access "Enable access for assistive devices" is checked.

Good luck!

Andrew99

AppleScript with Firefox

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.