• 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: Moving oneself to /Applications (or ~/Applications)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving oneself to /Applications (or ~/Applications)


  • Subject: Re: Moving oneself to /Applications (or ~/Applications)
  • From: Adam Leonard <email@hidden>
  • Date: Mon, 23 Feb 2009 00:47:22 -0500

Hi,

So yes, as people mentioned you shouldn't move an application while it is running, so the solution is obviously to move it when it is not running. You will need a little tool that you launch with NSTask that does the move for you. As you noted, Sparkle does everything you want, except it will only put the new application in the same place as the old one.

Luckily, Sparkle is open source and under a flexible license, so you might just want to look at that. I think it should be pretty easy to modify so that it moves the same binary to a different place.

If you want to be really safe, you might want to move your tool out of the bundle and into your application support folder and run it from there.

The code is here: http://bazaar.launchpad.net/~andymatuschak/sparkle/main/files

You should focus on SUInstaller (runs the tool) and relaunch.m (the code for the tool).

(If you want another opinion, I don't think what you are doing is a bad idea. John Gruber made a point in a recent article (http://daringfireball.net/2009/02/untitled_document_syndrome ) that most users don't want to mess with the file system at all anymore. For example, you don't have to worry about where iPhoto is putting your photos, and the iPhone has no GUI file system access at all. Also as Gruber notes, the vast majority of people who don't like these features and want complete control of the file system are programmers, i.e., the people on this list.)

Adam Leonard

On Feb 22, 2009, at 10:49PM, Ben Lachman wrote:

Perhaps the issue is that you are assuming an offer to do something is subtle way of telling you where to put your stuff. In reality it isn't. It's purely offering a short cut/automation if you'd like it. Say no, and it would never ask you again. But anyway, this is getting quite off topic, and I'd prefer to stay on topic.

The original question stands, does anyone have code that would be helpful in implementing such a feature?

If you'd like to continue discussing the validity of such a feature you are more than welcome to contact me off list.

Thanks,
->Ben
--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email: email@hidden
twitter: @benlachman
mobile: 740.590.0009



On Feb 21, 2009, at 12:26 PM, Andreas Mayer wrote:


Am 21.02.2009 um 17:33 Uhr schrieb Alex Kac:

If an app offered to help - just once - I don't see that as an intrusion, but a more Mac-like feature. Its not intrusive.

I disagree. It's not an applications job to tell me where to put it.

If, for some reason, it *must* be put in /Applications, use an installer package.


Andreas _______________________________________________

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

_______________________________________________

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


_______________________________________________

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: Moving oneself to /Applications (or ~/Applications)
      • From: Benjamin Dobson <email@hidden>
References: 
 >Moving oneself to /Applications (or ~/Applications) (From: Ben Lachman <email@hidden>)
 >Re: Moving oneself to /Applications (or ~/Applications) (From: Jeff Johnson <email@hidden>)
 >Re: Moving oneself to /Applications (or ~/Applications) (From: Ben Lachman <email@hidden>)
 >Re: Moving oneself to /Applications (or ~/Applications) (From: Jeff Johnson <email@hidden>)
 >Re: Moving oneself to /Applications (or ~/Applications) (From: Alex Kac <email@hidden>)
 >Re: Moving oneself to /Applications (or ~/Applications) (From: Andreas Mayer <email@hidden>)
 >Re: Moving oneself to /Applications (or ~/Applications) (From: Ben Lachman <email@hidden>)

  • Prev by Date: [MODERATOR} Re: test please ignore
  • Next by Date: How to find out if a CAAnimation has ended
  • Previous by thread: Re: Moving oneself to /Applications (or ~/Applications)
  • Next by thread: Re: Moving oneself to /Applications (or ~/Applications)
  • Index(es):
    • Date
    • Thread