* Get links from Firefox/Safari into orgmode
@ 2014-06-20 17:43 Daniel Franke
2014-06-20 18:05 ` Haider Rizvi
2014-06-22 21:57 ` Uwe Koloska
0 siblings, 2 replies; 6+ messages in thread
From: Daniel Franke @ 2014-06-20 17:43 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 376 bytes --]
Hi there,
as the subject says, I would like to get links from any browser (i almost don’t care which one) into org mode. So far I have
tried is the EmacsClient.app (https://github.com/neil-smithline-elisp/EmacsClient.app) but it did not work at all.
orgmode => the git repository
emacs => from brew (GNU Emacs 24.3.1)
Any hints welcome. :)
Thank you,
Daniel
[-- Attachment #1.2: Type: text/html, Size: 1141 bytes --]
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 1516 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Get links from Firefox/Safari into orgmode
2014-06-20 17:43 Get links from Firefox/Safari into orgmode Daniel Franke
@ 2014-06-20 18:05 ` Haider Rizvi
2014-06-20 18:55 ` Daniel Franke
2014-06-22 21:57 ` Uwe Koloska
1 sibling, 1 reply; 6+ messages in thread
From: Haider Rizvi @ 2014-06-20 18:05 UTC (permalink / raw)
To: emacs-orgmode
Daniel Franke <daniel@dfranke.com> writes:
> as the subject says, I would like to get links from any browser (i almost don’t care which
> one) into org mode.
Since you mention Safari, assume you are running on a Mac. Here is what you are looking for.
;;; setup org-mac-link-grabber
(require 'org-mac-link)
(add-hook 'org-mode-hook (lambda ()
(define-key org-mode-map (kbd "C-c g") 'org-mac-grab-link)
))
Regards,
--
Haider
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Get links from Firefox/Safari into orgmode
2014-06-20 18:05 ` Haider Rizvi
@ 2014-06-20 18:55 ` Daniel Franke
2014-06-21 20:34 ` Haider Rizvi
0 siblings, 1 reply; 6+ messages in thread
From: Daniel Franke @ 2014-06-20 18:55 UTC (permalink / raw)
To: Haider Rizvi; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 754 bytes --]
hi Rizvi,
thanks for your reply! As far as i can see you run that from
emacs => firefox/safari
but i want it like
browser => emacs
Thank you so much! :)
Regards,
Daniel
On 20 Jun 2014, at 20:05, Haider Rizvi <harizvi@gmail.com> wrote:
> Daniel Franke <daniel@dfranke.com> writes:
>
>> as the subject says, I would like to get links from any browser (i almost don’t care which
>> one) into org mode.
>
> Since you mention Safari, assume you are running on a Mac. Here is what you are looking for.
>
> ;;; setup org-mac-link-grabber
> (require 'org-mac-link)
> (add-hook 'org-mode-hook (lambda ()
> (define-key org-mode-map (kbd "C-c g") 'org-mac-grab-link)
> ))
>
>
> Regards,
> --
> Haider
>
>
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 1516 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Get links from Firefox/Safari into orgmode
2014-06-20 18:55 ` Daniel Franke
@ 2014-06-21 20:34 ` Haider Rizvi
2014-06-22 0:12 ` Daniel Franke
0 siblings, 1 reply; 6+ messages in thread
From: Haider Rizvi @ 2014-06-21 20:34 UTC (permalink / raw)
To: emacs-orgmode
Daniel Franke <daniel@dfranke.com> writes:
> emacs => firefox/safari
That's correct.
> browser => emacs
Probably the best is to use an Applescript like below, and save it in
~/Library/Scripts/Applications/Safari. You can kick off this
Applescript using a variety of methods (Quicksilver, menu bar, etc.)
http://www.tuaw.com/2006/08/08/tuaw-tip-enable-the-applescript-menu/
tell application "Safari"
set theUrl to URL of document 1
set theName to the name of the document 1
set theOrglink to "[[" & theUrl & "][" & theName & "]]"
set the clipboard to theOrglink
end tell
activate application "Emacs"
-- this last bit is iffy, since Emacs will not always have an org file
-- open in the frame that pops up.
tell application "System Events"
keystroke "y" using control down
end tell
Hope this helps.
Regards,
--
Haider
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Get links from Firefox/Safari into orgmode
2014-06-21 20:34 ` Haider Rizvi
@ 2014-06-22 0:12 ` Daniel Franke
0 siblings, 0 replies; 6+ messages in thread
From: Daniel Franke @ 2014-06-22 0:12 UTC (permalink / raw)
To: Haider Rizvi; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1770 bytes --]
On 21 Jun 2014, at 22:34, Haider Rizvi <harizvi@gmail.com> wrote:
> Daniel Franke <daniel@dfranke.com> writes:
>
>> emacs => firefox/safari
> That's correct.
>
>> browser => emacs
>
> Probably the best is to use an Applescript like below, and save it in
> ~/Library/Scripts/Applications/Safari. You can kick off this
> Applescript using a variety of methods (Quicksilver, menu bar, etc.)
>
> http://www.tuaw.com/2006/08/08/tuaw-tip-enable-the-applescript-menu/
>
>
> tell application "Safari"
> set theUrl to URL of document 1
> set theName to the name of the document 1
> set theOrglink to "[[" & theUrl & "][" & theName & "]]"
> set the clipboard to theOrglink
> end tell
>
> activate application "Emacs"
>
> -- this last bit is iffy, since Emacs will not always have an org file
> -- open in the frame that pops up.
> tell application "System Events"
> keystroke "y" using control down
> end tell
>
> Hope this helps.
>
> Regards,
> --
> Haider
>
>
Good evening Haider.
thank you so much for your input, this helps a lot!! :) Now i have a working solution.
I used the script you suggest with a small change :
tell application "Safari"
set theUrl to URL of document 1
set theName to the name of the document 1
set theOrglink to "[[" & theUrl & "][" & theName & "]]"
set the clipboard to theOrglink
end tell
activate application "Emacs"
tell application "System Events"
keystroke "v" using {command down}
keystroke return
end tell
activate application "Safari"
and then I opened it with the application Fastscripts (http://www.red-sweater.com/fastscripts/). No i have the option to add the bookmark by keystroke to the
actual open Emacs window.
Regards,
Daniel!
[-- Attachment #1.2: Type: text/html, Size: 6360 bytes --]
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 1516 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Get links from Firefox/Safari into orgmode
2014-06-20 17:43 Get links from Firefox/Safari into orgmode Daniel Franke
2014-06-20 18:05 ` Haider Rizvi
@ 2014-06-22 21:57 ` Uwe Koloska
1 sibling, 0 replies; 6+ messages in thread
From: Uwe Koloska @ 2014-06-22 21:57 UTC (permalink / raw)
To: emacs-orgmode
Am 20.06.2014 19:43, schrieb Daniel Franke:
> as the subject says, I would like to get links from any browser (i
> almost don’t care which one) into org mode.
With firefox you can use the CoLT (Copy Link Text) add-on
https://addons.mozilla.org/de/firefox/addon/colt/
with this format string
: [[%U][%T]]
Hope this helps
Uwe
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-06-22 22:05 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-20 17:43 Get links from Firefox/Safari into orgmode Daniel Franke
2014-06-20 18:05 ` Haider Rizvi
2014-06-20 18:55 ` Daniel Franke
2014-06-21 20:34 ` Haider Rizvi
2014-06-22 0:12 ` Daniel Franke
2014-06-22 21:57 ` Uwe Koloska
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).