• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: applescript shell script SCP?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 'net-sftp'

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

  • Follow-Ups:
    • Re: applescript shell script SCP?
      • From: Stan Cleveland <email@hidden>
References: 
 >applescript shell script SCP? (From: "Mr. Dan Pouliot" <email@hidden>)
 >Re: applescript shell script SCP? (From: Stan Cleveland <email@hidden>)

  • Prev by Date: Re: specifying "text" language
  • Next by Date: Re: specifying "text" language
  • Previous by thread: Re: applescript shell script SCP?
  • Next by thread: Re: applescript shell script SCP?
  • Index(es):
    • Date
    • Thread