Re: applescript shell script SCP?
Re: applescript shell script SCP?
- Subject: Re: applescript shell script SCP?
- From: "Mark J. Reed" <email@hidden>
- Date: Mon, 8 Dec 2008 21:04:19 -0500
On Mon, Dec 8, 2008 at 8:33 PM, Stan Cleveland
<email@hidden> wrote:
property ruby : do shell script "which ruby" -- get path to active ruby
Dumb question #1: what's the point of this? You can just do 'do shell script "ruby ..." ' - if that doesn't work, then neither will the "which".
set resultText to do shell script (ruby & " -e \"require 'rubygems' ; " & ¬
require_gem? That's old school; I don't think it'll work on a modern version. Instead you just use -r, like for any other non-gem lib:
ruby -rubygems -rnet-sftp -e \"Net::SFTP.start(" ...
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden