• 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 new folder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making a new folder


  • Subject: Re: making a new folder
  • From: John Delacour <email@hidden>
  • Date: Fri, 2 Aug 2002 10:10:29 +0100

At 3:27 pm -0400 1/8/02, Chris Garaffa wrote:

How do I create a new folder in MacOS X with AS? Say I'm user filemak, and I want to create the folder "Backup 8-01-02" on my desktop. I tried:
make new folder at "Data:Users:filemak:Desktop:Backup 8-01-02"
but get an error "Finder got an error: can't get some object".

In OS X a fast and concise way is:

----
do shell script "cd; cd *ktop*; mkdir 'Backup 8-01-02'; cd; open Des*"
----
(*
cd; targets your user directory
cd *ktop*; changes directory to a unique directory containing 'ktop'
mkdir 'name'; creates a directory
open Des*; opens any unique directory named Des....
*)


In earlier OS :-

----
set there to path to desktop
tell application "Finder"
try
make folder in there with properties {name:"Backup 8-01-02"}
on error e
tell me to return display dialog return & e giving up after 2
end try
open there
end tell
----
_______________________________________________
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 new folder (From: Chris Garaffa <email@hidden>)

  • Prev by Date: Re: "+" and "-" are numbers.
  • Next by Date: Why root?
  • Previous by thread: Re: making a new folder
  • Next by thread: Cheap Jaguar
  • Index(es):
    • Date
    • Thread