tell application "Finder" to set selList to selection as alias list
tell application "System Events"
key code 16 using {command down, shift down}
delay 0.2
keystroke "Move to"
key code 36
end tell
here's my current workaround. Assumes that you have the combination "shift + cmd + z" to trigger alfred action on a set of files. any ideas how to avoid using the "delay" function (does not seem good coding style to me).
Hi everyone,
so after an update to Catalina the following script doesn't work anymore:
tell application "Finder" to set selList to selection as alias list
if selList is not equal to {} then
tell application "Alfred 3" to action selList
tell application "System Events"
keystroke "Move to"
key code 36 -- Return
end tell
end if
Can anyone help? I can't figure out what's wrong
Thanks!!
Wow, works exactly as I wanted, thanks a lot!!!
Just to make sure: I am connecting the hotkey to "Run Script" and set it to "usr/bin/osascript" and "with input as argv" , correct? (sorry, I'm a total Alfred newbie).
p.s. enjoy your beer, just sent you one ? ?
The problem is not that the hotkey is changing, I can hardcode ⌘8 and it would be enough for me. The problem is that I can't find a way to select multiple files and then trigger the File Action list AND the Move-to action. Is there any way to do this?
Regarding your solution: I didn't quite understand how I'd do it. Can you please elaborate a bit?
Thanks!
Yes, I'm aware of that. However, this hotkey requires you to first activate it and THEN press "cmd+6" to get to the "move to" dialogue. I'd like to be able to do BOTH with one hotkey. Thanks
Hi everyone,
I am trying to set up a very simple workflow:
Select one to n items in Finder
Fire up the Alfred dialogue with file actions
Automatically select the "move to" file action
Type in the folder I want to move files to
Files are moved
What I have so far:
This works perfectly, but only for ONE file. i.e. if I select multiple files, only one shows up in Alfred.
And this works for multiple files (I defined ^+SHIFT + < as File Action trigger), but it doesn't register cmd+8 for some reason. I.e. I get to the file actions dialogue but would have to hit cmd+8 myself.
Can anyone help?
Thanks!