• 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: Making a folder in the user's library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a folder in the user's library


  • Subject: Re: Making a folder in the user's library
  • From: Christopher Nebel <email@hidden>
  • Date: Sat, 5 Apr 2003 12:00:02 -0800

On Saturday, April 5, 2003, at 03:01 AM, Philippe GRUCHET wrote:

That's not what Chris meant. He meant that a later OS revision/upgrade just might move one of the special folders to a different location than it presently occupies. If _you_ move it, it's no longer a special folder, just a regular folder.

Right.

Sorry to disagree but, if you point to an item inside the "Application Support" folder:

alias ((path to application support from user domain) & "AddressBook" as string)
--> alias ":Users:philippe:Library:Application Support:AddressBook:"

Then, just move your "Application Support" folder to Desktop and run the line above:

--> alias ":Users:philippe:Desktop:Application Support:AddressBook:"

This special folder remains a special folder, but on Desktop. (Or anywhere else it has been moved.)

OK, this is true. Sort of. (Your example can be reduced to "path to application support folder from user domain" -- it works just as well.)

Because of how the Folder Manager works in Mac OS X, any given special folder will be tracked after you ask for it, but only by that application, and only for HFS(+) disks. If another application were to ask for the Application Support folder, it would get the original location (inside Library), not the relocated one, as would someone using a UFS or NFS home directory. In other words, you shouldn't rely on it.


--Chris Nebel
Development Tools

P.S.: Your original example relies on the text item delimiters being set to an empty string. A more reliable version would be

alias ((path to application support from user domain as string) & "AddressBook")
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: 
 >Re: Making a folder in the user's library (From: Philippe GRUCHET <email@hidden>)

  • Prev by Date: Re: Space in POSIX path/Terminal shell
  • Next by Date: Capturing Code Snippets 2
  • Previous by thread: Re: Making a folder in the user's library
  • Next by thread: Re: Making a folder in the user's library
  • Index(es):
    • Date
    • Thread