-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open link fails with "Access is denied" ShellExecute error #4
Comments
Sorry, for the late reply. You need org-protocol to be setup, including the protocol itself so that entering org-protocol from internet explorere will open emacs. I haven't checked Emacs 24.4 to see if there are any differences. I'm working on emacs 24.3 |
Still the same error. Will try with Emacs 24.3 - any other hints on debugging in the meantime? |
I can't reproduce it, so I'm stumped :( |
Perhaps you are having write access to a |
How would you test with the |
I haven't tested the emacs 24.4, but if explorer opens the emacs link, then I use a key-binding in outlook, so I can't remember if this happened for me execute-extended-command:
;; Send to org-outlook if using outlook
If !WinActive("ahk_class Emacs"){
If WinActive("ahk_class rctrl_renwnd32"){
If !FileExist(OutlookSave){
FileSelectFolder, OutlookSave, ,3, Select Folder to Save
Outlook Emails
IniWrite, %OutlookSave%, ergoemacs-settings.ini, Outlook, Save
}
If !FileExist(EmacsClient){
FileSelectFile, EmacsClient, 1, , Emacs Client, Emacs Client
(emacs*.exe)
IniWrite, %EmacsClient%, ergoemacs-settings.ini, Emacs,
EmacsClient
}
If (OutlookTemplate == "ERROR") {
InputBox OutlookTemplate, Org-mode capture template for
emails (can't be blank)
IniWrite, %OutlookTemplate%, ergoemacs-settings.ini,
Outlook, Template
}
Clipboard=
SendKey("{Ctrl down}{c}{Ctrl up}")
ClipWait
EmailBody=%clipboard%
EmailBody:=uri_encode(EmailBody)
SendKey("{F12}",0)
Clipboard=
While !WinActive("Save As"){
Sleep 100
}
SendKey("{Ctrl down}{c}{Ctrl up}")
ClipWait
Counter = 1
Title=%clipboard%
Title := uri_encode(Title)
fileName = %OutlookSave%\%clipboard%-%Counter%.msg
while FileExist(fileName)
{
Counter := Counter + 1
fileName = %OutlookSave%\%clipboard%-%Counter%.msg
}
Clipboard =
Clipboard := fileName
ClipWait
While !WinActive("Save As"){
Sleep 100
}
SendKey("{Backspace}")
SendInput, %Clipboard%
SendKey("{Enter}")
While WinActive("Save As"){
Sleep 100
}
SendKey("{Del}")
fileName := uri_encode(fileName)
fileName = "%EmacsClient%"
org-protocol:/capture:/%OutlookTemplate%/%fileName%/%Title%/%EmailBody%
Run, %fileName%
}
}
return
|
I don't understand how the autohotkey script is related to the issue. Is the ahk script then supposed to be run in the w32-shell-execute? |
The |
Without testing, I think this autohotkey script would work. It binds the action key to M-x !x::
OutlookSave="c:\org-outlook-messages\"
EmacsClient="c:\emacs\bin\emacsclient.exe"
OutlookTemplate=""
Clipboard=
SendKey("{Ctrl down}{c}{Ctrl up}")
ClipWait
EmailBody=%clipboard%
EmailBody:=uri_encode(EmailBody)
SendKey("{F12}",0)
Clipboard=
While !WinActive("Save As"){
Sleep 100
}
SendKey("{Ctrl down}{c}{Ctrl up}")
ClipWait
Counter = 1
Title=%clipboard%
Title := uri_encode(Title)
fileName = %OutlookSave%\%clipboard%-%Counter%.msg
while FileExist(fileName)
{
Counter := Counter + 1
fileName = %OutlookSave%\%clipboard%-%Counter%.msg
}
Clipboard =
Clipboard := fileName
ClipWait
While !WinActive("Save As"){
Sleep 100
}
SendKey("{Backspace}")
SendInput, %Clipboard%
SendKey("{Enter}")
While WinActive("Save As"){
Sleep 100
}
SendKey("{Del}")
fileName := uri_encode(fileName)
fileName = "%EmacsClient%"
org-protocol:/capture:/%OutlookTemplate%/%fileName%/%Title%/%EmailBody%
Run, %fileName%
return |
With the latest ahk (v 1.1.21.03) I get the error
Binding Also, do you know what the corresponding outlook security setting would be? |
I resorted to directly using the IMAP server via |
Sorry. Perhaps if I have time, I will write a script to setup the On Tue, Apr 28, 2015, 8:55 AM fleimgruber notifications@github.com wrote:
|
Emacs 24.4.1
Outlook 2010
org-outlook-open
fails in the else call atwith the error
Do you know what could be causing this? Does Emacs need special privileges? Is this a missing setting in outlook?
The text was updated successfully, but these errors were encountered: