• 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: Programmatically create aliases to unmounted servers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically create aliases to unmounted servers?


  • Subject: Re: Programmatically create aliases to unmounted servers?
  • From: "Zajkowski, James" <email@hidden>
  • Date: Wed, 25 Jan 2012 14:22:18 +0000
  • Thread-topic: Programmatically create aliases to unmounted servers?

On Jan 24, 2012, at 10:50 PM, Ken Thomases wrote:

> On Jan 24, 2012, at 4:24 PM, Zajkowski, James wrote:
>
>> I'm looking for a way to construct an alias file (a bookmark file) with a specific but unmounted file server location.  That is, I want to put an icon on user's desktops that says "Network Space" and have it resolve to afp://ser.ver.add.ress/mount/username.
>
> If I drag the above URL out of Mail and to the Finder, the Finder creates a .afploc file (like it would create a .webloc if I drag a web URL).  That .afploc file has a very straightforward format.  It's just a plist dictionary with a single key, "URL", with a string value which is the URL.
>
> You could create one of those.  Would that be sufficient?

Well that does work, and it may have to be the interim solution.  The advantage of a true alias is that file dialogs will mount the server when the alias is clicked on, but they don't won't see the afploc files as a navigable thing.

--Jim


_______________________________________________

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


References: 
 >Programmatically create aliases to unmounted servers? (From: "Zajkowski, James" <email@hidden>)
 >Re: Programmatically create aliases to unmounted servers? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: KeyCode to Character mapping
  • Next by Date: boundingRectWithSize problem?
  • Previous by thread: Re: Programmatically create aliases to unmounted servers?
  • Next by thread: Confusing CALayer Transform/Frame/Bounds Behavior
  • Index(es):
    • Date
    • Thread