This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| property home : system attribute "HOME" | |
| property file : home & "/.chrometabs" | |
| on storeURLs() | |
| close access (open for access my file) | |
| tell application id "com.google.chrome" to ¬ | |
| set URLs to every window's tabs's URL | |
| write the URLs to my file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on SafariTabsWhoseURLsContain:(phrase as text) | |
| set text item delimiters to linefeed | |
| tell application id "com.apple.Safari" to if it ¬ | |
| is running then tell every window to if ¬ | |
| it exists then tell (it where (index of ¬ | |
| tab 1 where phrase is in the URL) is in ¬ | |
| index of tabs) to tell (every tab whose ¬ | |
| URL contains the phrase) to if (exists) ¬ | |
| then return a reference to it | |
| end SafariTabsWhoseURLsContain: |
OlderNewer