Jump to content
TingTingBen

Missing Standard Suite in AppleScript Dictionary

Recommended Posts

Hi,

 

I'm posting this in Discussion as it is not technically a bug report (or is it?). I used to start Alfred using AppleScript with

tell application "Alfred 2" to launch

but this doesn't work anymore. I suspect it's because there is no Standard Suite (with commands such as open, launch, close) in the AppleScript Dictionary for Alfred. Is it possible to bring this suite back in the dictionary? Thanks a lot!

Share this post


Link to post

Alfred has never had an AppleScript 'launch' command, try this instead:

tell application "Alfred 2" to search

If you want to pre-populate with some text, you can use e.g.

tell application "Alfred 2" to search "google bananas"

Cheers,

Andrew

Share this post


Link to post

Thanks for your suggestion, unfortunately this doesn't start Alfred when it's not already running. But it gave me the idea of this workaround:

tell application "Finder" to open file "/Applications/Alfred 2.app" as POSIX file

and this works perfectly. Thanks!

Share this post


Link to post

Thanks for your suggestion, unfortunately this doesn't start Alfred when it's not already running.

Yes, it does, or at least it does for me and should for everyone because tell application … starts the application if it isn't running.

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...