bencfd Posted February 9, 2016 Share Posted February 9, 2016 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! Link to comment
Andrew Posted February 9, 2016 Share Posted February 9, 2016 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 Link to comment
bencfd Posted February 11, 2016 Author Share Posted February 11, 2016 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! Link to comment
deanishe Posted February 11, 2016 Share Posted February 11, 2016 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. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now