Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.advocacy > #373041
| From | Snit <usenet@gallopinginsanity.com> |
|---|---|
| Newsgroups | comp.os.linux.advocacy |
| Subject | Re: Copy all URLs |
| Date | 2016-09-27 13:27 -0700 |
| Message-ID | <D410245B.7EA22%usenet@gallopinginsanity.com> (permalink) |
| References | (5 earlier) <D41004DC.7E9BA%usenet@gallopinginsanity.com> <4162f6da-70fc-49c9-af0a-5435db06f957@googlegroups.com> <adjgd992.g@perch.invalid> <D4101A9D.7E9FD%usenet@gallopinginsanity.com> <ahjgdu993.aet@perch.invalid> |
On 9/27/16, 1:21 PM, in article ahjgdu993.aet@perch.invalid, "Octavian W.
Lagrange" <olagrang@perch.invalid> wrote:
>>> It's clear that he was implying he had written a Safari extension,
>>> because in response to my post about the chromium extension, he wrote:
>>>
>>> "If such a thing did not exist, how would you add it to Chrome? Just
>>> curious..."
>>> Message-ID: <D40FDEC6.7E97B%usenet@gallopinginsanity.com>
>>>
>>> His extension attempt must have FAILED (big surprise, right?),
>>> so now he's begging me to tell him how to write one. He's "just
>>> curious", dontcha know. Snit! I don't know anything about
>>> browser extensions. Here's an idea: RTFM!
>>
>> I wrote a System Service that acts as an extension to Safari... and it works
>> fine.
>>
>> Now, of course, it is not a Safari extension... but as I noted I wanted to
>> REPLACE the functionality of one.
>>
>> But whatever, you are trolling me over your "script's window" error... and
>> error that was really not a big deal but you are crying about it.
>
> I just watched your video. I can't see your code because it's too
> blurry, so I'm not able to see where your code differentiates among
> browser windows, as you claimed earlier.
View it in high resolution and it is easily read. This is the full script
though (updated since the video):
--------
on run
tell application "Safari"
set AppleScript's text item delimiters to return
set theURLs to (URL of every tab of window 1)
end tell
set the clipboard to theURLs as text
display notification "Copied: " & (count of theURLs) & " URLs." as text
end run
--------
The reference to "window 1" references the top window. Remember, with
AppleScript you can reference windows by ID, index, or more. I could say
every window or "window 2" or find an ID, etc.
--
* OS X / Linux: What is a file? <http://youtu.be/_dMbXGLW9PI>
* Mint MATE Trash, Panel, Menu: <http://youtu.be/C0y74FIf7uE>
* Mint KDE working with folders: <http://youtu.be/7C9nvniOoE0>
* Mint KDE creating files: <http://youtu.be/N7-fZJaJUv8>
* Mint KDE help: <http://youtu.be/3ikizUd3sa8>
* Mint KDE general navigation: <http://youtu.be/t9y14yZtQuI>
* Mint KDE bugs or Easter eggs? <http://youtu.be/CU-whJQvtfA>
* Easy on OS X / Hard on Linux: <http://youtu.be/D3BPWANQoIk>
* OS / Word Processor Comparison: <http://youtu.be/w6Qcl-w7s5c>
Back to comp.os.linux.advocacy | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-26 14:18 -0700
Re: Copy all URLs Silver Slimer <.m@nsn.s> - 2016-09-26 17:21 -0400
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-26 14:28 -0700
Re: Copy all URLs Silver Slimer <.m@nsn.s> - 2016-09-26 17:31 -0400
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-26 14:28 -0700
Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-26 14:33 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 06:24 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 08:31 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 18:07 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 11:38 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 19:56 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:23 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 08:54 -0700
Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-27 11:00 -0700
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 11:13 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 12:14 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 19:28 +0000
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 12:44 -0700
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 12:46 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 20:21 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:27 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 21:58 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 23:43 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 01:16 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 01:51 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 02:33 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 04:06 +0000
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 06:19 +0000
Re: Copy all URLs Marek Novotny <marek.novotny@marspolar.com> - 2016-09-28 14:03 +0000
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-28 09:09 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 04:13 +0000
Re: Copy all URLs Jim Polaski <jpolaski@linuxmail.org> - 2016-09-28 13:30 +0000
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-28 08:35 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-28 10:03 -0700
Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 21:59 +0000
Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-27 12:38 -0700
Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:13 -0700
Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 14:27 -0700
csiph-web