From: Haider Rizvi <harizvi@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Get links from Firefox/Safari into orgmode
Date: Sat, 21 Jun 2014 16:34:20 -0400 [thread overview]
Message-ID: <m1egyi2e9f.fsf@gmail.com> (raw)
In-Reply-To: 77D73F63-E1D2-4FBA-9873-7989B028FC59@dfranke.com
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
next prev parent reply other threads:[~2014-06-21 20:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2014-06-22 0:12 ` Daniel Franke
2014-06-22 21:57 ` Uwe Koloska
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1egyi2e9f.fsf@gmail.com \
--to=harizvi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).