Jump to content

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
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...