From: zeltak <firstname.lastname@example.org> To: email@example.com Subject: Re: Carsten's Interview relates questions, esay insert images, attachemnt locations etc.. Date: Fri, 19 Apr 2013 13:53:43 -0400 [thread overview] Message-ID: <CAN2HUWjBfiy6K2uh7_a4Od0BXCifqg8nT6Kt5XLSOvCtyA6Bfirstname.lastname@example.org> (raw) [-- Attachment #1: Type: text/plain, Size: 1577 bytes --] Hi Charles and Carsten sorry for the belated repsonse but i have been tied up at work with other projects. So going back to the original question, i have used your example code Charles and modified it to work on my linux box, though i have zero lisp (or any other programming) knowledge so im not sure its correct: ;;org screenshot (defun paste-clipboard-to-file (&optional filename temp-dir) "Take a screenshot using the crosshairs and saveit to FILENAME,if it is given or to a temp file in the TEMP-DIR directory. Then add an orgmode style link at point." (interactive) (let* ((temporary-file-directory (or temp-dir "images")) (fname (or filename (make-temp-file "img" nil ".jpg")))) (call-process-shell-command (concat "/usr/bin/scrot -s -d 2 " fname)) (insert "\n[[file:" fname "]]") (org-display-inline-images))) ;; (global-set-key (kbd "C-c p") 'paste-clipboard-to-file) there are still some question i have. the little function seems to work and i do get an inline image inside org bit it seems to me it only work on the current window/workspace, is that correct? how can i modify it catch a screenshot from a web browser, PDF, other workspace etc? -also can one insert a delete mechanism for files deleted from the inline buffer (with a confirmation ofc). the reason i ask is because alot of the times the first 'take' isnt correct and that leaves alot of junk in these folders that are hard to trace manually best wishes and thank you all for your help best Z [-- Attachment #2: Type: text/html, Size: 2133 bytes --]
next reply other threads:[~2013-04-19 17:54 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-04-19 17:53 zeltak [this message] 2013-04-20 3:15 ` Charles Berry -- strict thread matches above, loose matches on Subject: below -- 2013-03-27 0:47 zeltak 2013-03-27 3:52 ` Charles Berry 2013-03-27 6:33 ` Carsten Dominik 2013-03-29 20:39 ` Stephen 2013-03-27 13:18 ` Memnon Anon
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='CAN2HUWjBfiy6K2uh7_a4Od0BXCifqg8nT6Kt5XLSOvCtyA6Bemail@example.com' \ --firstname.lastname@example.org \ --email@example.com \ --subject='Re: Carsten'\''s Interview relates questions, esay insert images, attachemnt locations etc..' \ /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
Code repositories for project(s) associated with this 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).