WalterBeiter Posted July 24, 2017 Share Posted July 24, 2017 I want to update a directory on my Raspberry PI and I want to use scp for this. I've got a keyword which initiates a Run NSAppleScript action. This applescript launches Terminal and it should enter a command. But it won't open Terminal. on alfred_script(q) tell application "Terminal" do script "scp -r /path/to/folder pi@192.178.168.20:/var/www" activate end tell end alfred_script This Applescript action works flawlessly when used with a normal ssh command like "ssh user@server.com". But it does not work with scp. Any ideas? Link to comment
Vero Posted July 24, 2017 Share Posted July 24, 2017 @WalterBeiter If you're looking to create a workflow that launches Terminal with that command, you can use the Terminal Command action Create your workflow then right-click the canvas to add Actions > Terminal Command (last one in the list) Then all you need to do is enter the command you want Terminal to run and you're good to go! Cheers, Vero WalterBeiter 1 Link to comment
WalterBeiter Posted July 25, 2017 Author Share Posted July 25, 2017 thanks. that worked! 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