• 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: Searching for a folder in Applescript.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching for a folder in Applescript.


  • Subject: Re: Searching for a folder in Applescript.
  • From: John Delacour <email@hidden>
  • Date: Fri, 5 Sep 2003 19:06:53 +0100
  • Mac-eudora-version: 6.1a1

At 9:33 am -0700 4/9/03, Vic Piercy wrote:

I need it to check for the folder first if it is there then
the script will end. If it is not there then it will create a new folder
with the current date. So each day when I log in it will automatically
create a today's date folder in the Home folder.

mkdir is the quickest and neatest way to make a directory. With the -p option it will create any needed folders in the path, so this script will create (if they do not exist) 3 folders and return a list of the folders created. If they exist it will return "".

See man mkdir


set d to do shell script "date '+%m-%d-%y'"
do shell script "mkdir -p -vv ~/junk/junk/" & d

JD


.
_______________________________________________
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: Searching for a folder in Applescript.
      • From: Shane Stanley <email@hidden>
References: 
 >Searching for a folder in Applescript. (From: Vic Piercy <email@hidden>)

  • Prev by Date: Re: Do shell script question
  • Next by Date: Re: sending data from one AppleScript App to another
  • Previous by thread: Re: Searching for a folder in Applescript.
  • Next by thread: Re: Searching for a folder in Applescript.
  • Index(es):
    • Date
    • Thread