Jump to content
kerrydawson

Is there a better way to invoke this menu command

Recommended Posts

I've created a simple Alfred workflow using Applescript to invoke a Take Note menu command using Applescript. The command though jumps the screen to DEVONthink whereas I'd like the take note window to popup but in the location I'm at:

 

 

 

 

uhdb8g2jy5jbw3a6w97h.png

 

The Applescript reads:

 

 

 

on alfred_script(q)
  --
tell application "DEVONthink Pro"
 
activate
 
end tell
 
 
tell application "System Events"
 
tell process "DEVONthink Pro Office"
 
click menu item "Take Note..." of menu "Tools" of menu bar 1
 
end tell
 
end tell
end alfred_script
 
 
Might there be a better way to write this so it doesn't pop to DEVONthink  but stays put or is that not possible.
Edited by kerrydawson

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...