• 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: Feeding Terminal.app from Xcode RunScript Phase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feeding Terminal.app from Xcode RunScript Phase


  • Subject: Re: Feeding Terminal.app from Xcode RunScript Phase
  • From: Raphael Sebbe <email@hidden>
  • Date: Fri, 16 Apr 2010 14:52:49 +0200

Hi,

Here it is. I used the 'screen' virtual terminal to make it more convenient.

screen -d -m scp prizmo.zip email@hidden:upload_dir
osascript -e 'tell application "Terminal" to do script "screen -r"'

Best,

Raphael


On Fri, Apr 16, 2010 at 10:34 AM, Jonas Brømsø Nielsen <email@hidden> wrote:
Hi Raphael,

Would you mind sharing your source for this?

jonasbn
--
Jonas Brømsø Nielsen, logicLAB
www: http://www.logicLAB.dk/
eml: email@hidden
mbl: +45 26787275



On 16/04/2010, at 10.15, Raphael Sebbe wrote:

> Hi Jens,
>
> yes, osascript does the job, but it's a bit clumsy to pass along variables, etc.
>
> Thanks,
>
> Raphael
>
> On Thu, Apr 15, 2010 at 6:02 PM, Jens Alfke <email@hidden> wrote:
>
> On Apr 15, 2010, at 5:38 AM, Raphael Sebbe wrote:
>
> 1. have feedback for that command within Xcode,
>
> I don't think so, because I haven't seen any case where Xcode shows information about the progress within an individual build command.
>
>
> 2. execute the script in an external Terminal.app, to monitor its progress.
>
> You can probably make your shell script use the 'osascript' command to send an AppleEvent to Terminal telling it the command line to run. I don't think there's a way to have it block until the 'scp' command finishes, though.
>
> —Jens
>
>
>
> --
> Raphael Sebbe
> Creaceed — Creative iPhone & Mac apps
> ••• Twitter: http://twitter.com/rsebbe
> ••• Web: http://www.creaceed.com
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden




--
Raphael Sebbe
Creaceed — Creative iPhone & Mac apps
••• Twitter: http://twitter.com/rsebbe
••• Web: http://www.creaceed.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Feeding Terminal.app from Xcode RunScript Phase (From: Raphael Sebbe <email@hidden>)
 >Re: Feeding Terminal.app from Xcode RunScript Phase (From: Jens Alfke <email@hidden>)
 >Re: Feeding Terminal.app from Xcode RunScript Phase (From: Raphael Sebbe <email@hidden>)
 >Re: Feeding Terminal.app from Xcode RunScript Phase (From: Jonas Brømsø Nielsen <email@hidden>)

  • Prev by Date: Appending value in xcconfig file
  • Next by Date: Re: Appending value in xcconfig file
  • Previous by thread: Re: Feeding Terminal.app from Xcode RunScript Phase
  • Next by thread: Re: Feeding Terminal.app from Xcode RunScript Phase
  • Index(es):
    • Date
    • Thread