• 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: Emmanuel <email@hidden>
  • Date: Mon, 31 Mar 2003 10:46:11 +0200

At 1:54 AM -0600 31/03/03, Jeffrey Mattox wrote:
I want to make a folder, "myFolder", in the current user's Library/Application Support folder, creating the Application Support folder, if necessary. I know how to script the Finder to make folders on the desktop, but I'm stuck when working in the library.

I'm having problem dealing with (1) accessing the library folder and (2) testing for and creating folders several levels deep. How do I do this?

(1) can be found in the dictionary of StandardAdditions.osax:

--------------------
path to application support from user domain
--------------------

(2) example:

-------------------- not tested
set theContainer to (path to application support from user domain) as text
try
alias (theContainer & "myFolder")
-- "myFolder" exists at said location
on error
-- "myFolder" does not exist: create it
tell app "Finder" to make new folder at (alias theContainer) with properties {name:"myFolder"}
end try
--------------------

Emmanuel
_______________________________________________
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: 
 >Making a folder in the user's library (From: Jeffrey Mattox <email@hidden>)

  • Prev by Date: Re: Repeating search with GREP
  • Next by Date: Re: Making a folder in the user's library
  • Previous by thread: Making a folder in the user's library
  • Next by thread: Re: Making a folder in the user's library
  • Index(es):
    • Date
    • Thread