Floating.Point Posted January 13, 2021 Posted January 13, 2021 Novice disclaimer: I'm very new to this so apologies if I misunderstand concepts or use incorrect terms Hello Today I used some AppleScript to interface back into Alfred. I've built a hotkey workflow to quickly launch the "Browse Previous Path" feature: on alfred_script(q) tell application "Alfred" to search "Previous" end alfred_script I have a feeling the Key Combo output is not required, and that I could tell Alfred to action the search via the AppleScript. But I don't really understand how AppleScript interfaces with Alfred… Basically, where can I find out what can be done to Alfred via AppleScript? All my search results are mostly about what Alfred does for AppleScript, rather than what AppleScript does for Alfred. If anyone could give me a little primer about how this works? or nudge me in the right direction?
dfay Posted January 13, 2021 Posted January 13, 2021 Look at the AS dictionary for Alfred https://macscripter.net/viewtopic.php?id=24777
Floating.Point Posted January 13, 2021 Author Posted January 13, 2021 dfay, thank you so much! "AppleScript Dictionaries" the missing link
deanishe Posted January 13, 2021 Posted January 13, 2021 Don’t use Run NSAppleScript to run AppleScript code. Use a Run Script action instead, with Language = “/usr/bin/osascript (AS)”. Run NSAppleScript has strange behaviour.
Andrew Posted January 13, 2021 Posted January 13, 2021 @Floating.Point you can set a hotkey for this feature natively in the Features > File Search > Navigation > Previous Path. Floating.Point 1
Floating.Point Posted January 13, 2021 Author Posted January 13, 2021 Thanks @deanishe for the heads up with NSAppleScript. I went through my Workflows and replaced any existing NSAppleScript actions to Run Script. and @Andrew Oh dear... how silly I feel right now 🤦♂️. Of course there is a shortcut for this extremely handy function.
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