• 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: Cocoa from the command line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa from the command line?


  • Subject: Re: Cocoa from the command line?
  • From: Kaelin Colclasure <email@hidden>
  • Date: Sun, 25 Jan 2004 07:59:13 -0800

On Jan 25, 2004, at 5:43 AM, Jens Bauer wrote:

Hi Kaelin,

On Sunday, Jan 25, 2004, at 03:00 Europe/Copenhagen, Kaelin Colclasure wrote:

"Maybe I could just make a WebView, which I load my printable HTML-page into, and then I save it in a file" (See CocoaDevCentral).

I'd suggest a plain Cocoa app with a command-line tool as a helper. The tool could just parse its arguments and then send Apple Events to the Cocoa app to get the interesting work done.

So in fact, you're saying that I should launch the Application first, to make sure that it's running, and then make the app launch the tool, which sends the commands to the app, which generates the PDF & RTF(D); uhm, I could probably do that. Thanks for your suggestion. =)

I'd put it the other way 'round, actually: have the tool open the application if it's not already open. You can accomplish this with Apple Events as well. Anything an AppleScript can do, your tool could do with Apple Events.

-- Kaelin
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Cocoa from the command line?
      • From: Jens Bauer <email@hidden>
References: 
 >Re: Cocoa from the command line? (From: Jens Bauer <email@hidden>)

  • Prev by Date: Re: [APP IDEA] Desktop Background Scripting
  • Next by Date: Re: Cocoa from the command line?
  • Previous by thread: Re: Cocoa from the command line?
  • Next by thread: Re: Cocoa from the command line?
  • Index(es):
    • Date
    • Thread