welcome to the Hook Productivity Forum, @pralayb. Sorry for the delay in responding. I blew out my Outlook test setup recently, and need to re-establish it.
Have you checked whether you’ve given Hook permission to access Outlook , per Accessibility Permissions – Hook. That’s usually the issue.
Also: if there is a Reminder, then Outlook’s AppleScript does not return the right result. Dismissing the reminder fixes the issue.
Otherwise, could you please let us know the version of Outlook that you are using, and of macOS? For the other MS Office apps: versions prior to 2016 are not supported.
Does Hook’s contextual window’s status bar show “No linkable item found” in Outlook when you invoke it in Outlook on emails you have received and sent, rather than on drafts. We would not expect drafts to be linkable because they don’t have a URL.
Also if you could send us a screenshot, that might help.
welcome to the Hook Productivity Forum, @damboyan. And thank you for posting.
could someone with the problem please try pasting the following code in Apple’s Script Editor (not Hook’s) while a message is selected, and running it, and see what gets returned?
`tell application "Microsoft Outlook"
set msg to first item of (get current messages)
get "outlook://" & id of msg
end tell`
Two of us here at CogSci Apps tested with Outlook version: 16.16 which is the latest official (non-beta) build from MS. It works fine. And our AppleScript test yields a different (and correct) response.
Perhaps Microsoft’s beta builds use a different bundle ID and maybe use a different app name. To verify, would you please run the following from the Terminal app, which normally lives in the [/Applictions/Utilities folder](hook://file/V3vwC2mqk?p=Ly9BcHBsaWNhdGlvbnM=&n=Utilities) :
osascript -e 'id of app "Outlook"'
That command should return com.microsoft.Outlook . That is the bundle ID of the app. If not, that would explain the Hook issue. We could easily remedy that.
If that is not the issue, it suggests a bug with MS Outlook. (The AppleScript response you suggests a bug on the Outlook side.) Here are some notes on that: Join | Office Insiders
to quote them:
Best for Insiders who want to use the very earliest builds to identify issues and provide feedback about new features still in development. Insider is ideal for those who don’t mind the bit of risk involved in using unsupported builds.
If there’s a bug with their beta, it would be helpful for Outlook Insider Fast users, and CogSci Apps, to report the problem to MicroSoft. But first things first.
if you have overridden the Outlook script in Hook then, assuming your issue was similar to @eMaX’s above, deleting your override would revert to Hook’s built in version of this script, and solve your problem.
Here’s how: in Hook > Preferences > Scripts pane. Overridden scripts have a * in left pane. You can remove the override by clicking the - button on bottom left when the script is selected. Just select the Outlook script on the left and click the - button at the bottom left of the pane.
(A Bear user ran into the same thing with respect to Bear last year: Hook+Bear+OmniFocus).)
Thank you for all your responses - unfortunately, I haven’t been able to get this to work still. I am pasting the relevant information below. I would really appreciate if someone could lay down step-by-step directions to get this to work.
Right clicking the image and hitting “open link in a new tab” shows the full-scale image with zoom to see the text clearly. I apologize for this inconvenience - I did not know of a better way to provide all the information.
Are you using New Outlook or the old one? Hook does not work with New Outlook because it does not support AppleScript.
If you are using the old Outlook, could you please provide more info to us, such as the Hook script version (you can get it from Hook preference window->Update tab), Hook version, and some screen shots.
So because of the lack of AppleScript support we’re essentially out of luck? Is there any other way to potentially capture the outloook message ID? Or are we going to be required to “print to PDF” or some other hack. Understand that Microsoft doesn’t play well with others…
Has anyone figured out this issue with the new Outlook? What is interesting is that old Hook links to Outlook I made before I moved to the new Outlook still work – they bring up the emails I originally linked to. How is that working? What are these Hook links linking to that still work in the new Outlook?