Original Poster

AppleScript - limited support, is more coming?

The AppleScript library for Google Chrome is currently limited in scope.
A couple of additions would be incredible:
1) Give ability to get the current URL of a page, i.e.,
tell application "Google Chrome"
set Link to get URL of current window
end tell
Camino and Safari both have excellent methods for this.
2) Enable "do JavaScript"
tell application "Google Chrome"
set clipText to (do JavaScript "getSelection()" in document 1) as string
set clipText to (the clipboard) as text
end tell
3) More results when getting properties of the front window:
Here is the result of a script to get the properties of current window in Chrome:
tell application "Google Chrome"
end tell
{name:"Google Chrome", frontmost:false, class:application, version:""}
That "same" script for Safari has a ton more detail:
tell application "Safari"
properties of window 1
end tell
{document:document "Google Reader (42)" of application "Safari", closeable:true, zoomed:true, class:window, index:1, visible:true, name:"Google Reader (42)", modal:false, miniaturizable:true, titled:true, miniaturized:false, floating:false, id:38, resizable:true, bounds:{167, 22, 1280, 733}, current tab:tab 2 of window id 38 of application "Safari", zoomable:true}
Are there any plans to add more AppleScript?
Community content may not be verified or up-to-date. Learn more.
All Replies (2)
Google user
Google user
There's a ticket in the bug tracker for 'testing and scripting', so I guess it's planned - just not in the application yet!
Original Poster
Fantastic, Nik.
Thanks for that info. Great to see the comment "We should mirror safari's dictionary."
That will be splendid.
Added my vote.
Were these replies helpful?
How can we improve them?
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.


Some community members might have badges that indicate their identity or level of participation in a community.

Expert - Google Employee — Googler guides and community managers
Expert - Community Specialist — Google partners who share their expertise
Expert - Gold — Trusted members who are knowledgeable and active contributors
Expert - Platinum — Seasoned members who contribute beyond providing help through mentoring, creating content, and more
Expert - Alumni — Past members who are no longer active, but were previously recognized for their helpfulness
Expert - Silver — New members who are developing their product knowledge
Community content may not be verified or up-to-date. Learn more.


Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:

  • Post an answer.
  • Having your answer selected as the best answer.
  • Having your post rated as helpful.
  • Vote up a post.
  • Correctly mark a topic or post as abuse.

Having a post marked and removed as abuse will slow a user's advance in levels.

View profile in forum?

To view this member's profile, you need to leave the current Help page.

Report abuse in forum?

This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.

Reply in forum?

This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.