• 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: Adding commandline batch mode to Cocoa app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding commandline batch mode to Cocoa app


  • Subject: Re: Adding commandline batch mode to Cocoa app
  • From: Brian Stern <email@hidden>
  • Date: Sun, 23 Mar 2008 13:35:19 -0400


On Mar 23, 2008, at 4:43 AM, Carsten wrote:

Ah, okay, I see now. My script will just launch the application
executable with a specific commandline that forces it into batch mode,
so the difference in functionality or convenience between a symlink to
a tool and a generated one-liner script (plus some error handling for
a broken link) is probably too small to bother about the development
of the tool, I think.

And what will your app do if it is already running in non-batch mode when the user runs this script?


From the beginning "mode" has been a four letter word among Mac developers.

You could do worse than to follow Photoshop's model for this problem. Have a menu item that opens a dialog and allows the user to set up batch processing. Make your app scriptable and allow the user to access the batch functionality from Applescript.

If you want to be fancy you can auto-generate applescripts that do whatever the user has done in the Batch window. Photoshop has this functionality and it's called droplets. (I don't know how they work actually but they appear to be applescripts or applescripts plus something else.)

Who is the target audience for your application? If it at all includes "regular Mac users" then any solution that involves the Terminal and /usr/bin is not a good solution.

--
Brian Stern
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Adding commandline batch mode to Cocoa app
      • From: Carsten <email@hidden>
References: 
 >Adding commandline batch mode to Cocoa app (From: Carsten <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: "Tom Harrington" <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: Carsten <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: Marcus <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: Carsten <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: Marcus <email@hidden>)
 >Re: Adding commandline batch mode to Cocoa app (From: Carsten <email@hidden>)

  • Prev by Date: Re: Unable to unload Launch Daemon using Cocoa Application.
  • Next by Date: Height of UIToolbar
  • Previous by thread: Re: Adding commandline batch mode to Cocoa app
  • Next by thread: Re: Adding commandline batch mode to Cocoa app
  • Index(es):
    • Date
    • Thread