Applescript for Chrome
Useful AppleScript to Copy the Page URL and Title
The following is a quick AppleScript that I created to add the URL of the current page to the clipboard. This has the advantage of creating a simple, easy-to-read URL in markdown format, which I can then copy and paste into Slack or an email.
If you would like to copy/paste the raw code, here it is.
tell application "Google Chrome"
set broswerurl to get URL of active tab of first window
set browsertitle to get title of active tab of first window
set the clipboard to "[" & browsertitle & "](" & broswerurl & ")"
end tell
Comments
Add Comments
About
Weekly Tips and tricks for Quality Assurance engineers and managers. All reviews are unbiased and are based on personal use. No money or services were exchanged for the reviews posted.
Schedule
Monday | Media Monday |
Tuesday | QA |
Wednesday | SnagIt for QA |
Thursday | Python |
Friday | Macintosh |
Saturday | Internet Tools |
Sunday | Open Topic |
Other Posts
- Bringing Fun to the Forefront of Quality
- Harnessing Google Chrome's Headless Mode for Website Screenshots
- QA Challenges to Avoid Yak Shaving
- QA Memes (October)
- Test Pilot in Firefox
- GitHub Tips for QA
- QA Release Checklist
- Automation is Not
- QA Interview Questions
- CASL Testing
- How Bugs Escape
- Setting Productive QA Resolutions for 2024
- QA Fail: Boston.com Headline graphic
- QA Fail: Poland Spring Bottle Return
- Strong Password Generator