• 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: Running a shell script out of the current thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Running a shell script out of the current thread


  • Subject: Re: Running a shell script out of the current thread
  • From: Ondra Cada <email@hidden>
  • Date: Mon, 20 Sep 2004 20:11:54 +0200

ZR,

On 20.9.2004, at 19:57, Z Rosen wrote:

My app needs to make modifications to its bundle. ... What would be the best way of doing this?

The best way is *not to do that at all*. Any reasonable user would install all applications somewhere more or less nobody cannot write to (to shield before viri and similar malware).


For your app data use ~/Library/Application Support, or ~/Library/Services for dynamically generated&updated services, or whatever similar folder best suits your needs.

BTW, if your app happens to be *that* special it is still a way to be considered (which is *extremely* improbable), (a) to launch a script you can use NSTask, but (b) there is no reason *at all* to wait till a program quits to change its file: luckily enough, this is no windoze we use, and our filesystem does work the decent way :)
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Running a shell script out of the current thread
      • From: Allan Odgaard <email@hidden>
References: 
 >Running a shell script out of the current thread (From: Z Rosen <email@hidden>)

  • Prev by Date: Running a shell script out of the current thread
  • Next by Date: Re: Running a shell script out of the current thread
  • Previous by thread: Running a shell script out of the current thread
  • Next by thread: Re: Running a shell script out of the current thread
  • Index(es):
    • Date
    • Thread