Read the links of an app's window
Lists every link in a window (or under one element) with its address, in reading order, one per address.
Read the links of locator into into
Details #
Lists every element in the front window of app (or under locator) that has an address: links, and the text Mail, Notes and Safari give an address to as well. Each is {title, url, frame}. Duplicates by address are dropped, and the order is reading order: top to bottom in 24-point bands, then left to right. into receives the list.
Parameters #
| Parameter | Type | Required | Values | What it does |
|---|---|---|---|---|
app | text | The app to look in, by bundle id. | ||
fuzzy | yes / no | , into. | ||
into | text | |||
locator | locator | Only the links under this element. | ||
sample | any value |
Every step also accepts label, onFailure, timeout and dryRunSafe.
Examples #
- Read the links of the front window into links
- Set lines to ‹…›
- Repeat for each link in links
- Append “{{ link.url }}⏎” to lines
- Copy “{{ lines }}” to the clipboard
Gotchas #
Only what the app offers to Accessibility. A web page in Safari lists its links; a page drawn on a canvas lists none.
A dry run skips this step unless you mark it Safe in dry run.
See also #
Read the rows of an app's list, Read or save the images of an app's window, Open URL