Jump to content

open Terminal and start scp


Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...