I am a basic user with just good copy-paste skills, and after days of googling, i could somehow put together a couple dozens of applescripts like the following two:
tell application "Finder"
set theSelection to selection
repeat with thisFile in theSelection
set theName to name of thisFile
set name of thisFile to "Test - " & theName
end repeat
move selection to folder ((path to home folder as string) & "kDrive:TEST 2021:DESTINATION FOLDER")
end tell
The above script prepend a given text ("test" in the example) to the selected files in Finder, then move all of them to a given folder on my Mac
The below script mount locally a folder sitting on my NAS, if it's not already open, then move the selected files from the finder to the NAS folder, and finally delete them locally on my Mac:
tell application "Finder"
tell application "System Events" to set diskNames to name of every disk
if "video" is in diskNames then
else
mount volume "smb://mynas/video/" as user name "username" with password "password"
end if
move selection to folder ("video:MUSIC CLIP")
delete
end tell
Right now i am launching such scripts using free software Apptivate (http://www.apptivateapp.com) which is super simple, i only have to set a keystroke and sub strokes, and everything works
See an example, i just select multiple files in Finder and i type SHIFT+ALT+N and it opens up the sub-selection of scripts activated from letter N:
I now have to just type V to narrow down to the sub-selection of scripts activated from letter V
And now i just have to type M or W according to my choice, and the job is done.
All letters are speaking, they are the initials of folders which are meaningful to me, so i always know by heart which keys to type
Is it possible to do it with Alfred with the same simplicity? just typing my letters?
If so I could just use Alfred instead of Apptivate and above all I assume the scripts would work with any other MacOS file manager, like Pathfinder for instance, which is currently not affected from my scripts above
Many thanks!!
Peval