• 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: "John S. Baltutis" <email@hidden>
  • Date: Wed, 2 Apr 2003 13:29:36 -0800

On 3/31/03, Jeffrey Mattox <email@hidden> 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?
>
> Jeff

This works (watch the line wraps):

set listdir1 to do shell script "ls ~/Library" as string

if "Application Support" is not in listdir1 then
do shell script "mkdir ~/Library/'Application Support'" as string
end if

set listdir2 to do shell script "ls ~/Library/'Application Support'" as string

if "My Folder" is not in listdir2 then
do shell script "mkdir ~/Library/'Application Support'/MyFolder" as string
end if
_______________________________________________
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.

  • Follow-Ups:
    • Re: Making a folder in the user's library
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: New to OS 10 help Please
  • Next by Date: Rules for first file in folder?
  • Previous by thread: Re: ASLG - where is latest version?
  • Next by thread: Re: Making a folder in the user's library
  • Index(es):
    • Date
    • Thread