Re: making a new folder
Re: making a new folder
- Subject: Re: making a new folder
- From: Roger_Jolly <email@hidden>
- Date: Fri, 02 Aug 2002 12:53:28 +0200
Hi Chris,
You're trying to tell the Finder to make a new folder at a location it
doesn't know: the folder "Backup 8-01-02" of the desktop. Try this:
tell application "Finder" to make new folder at desktop with properties
{name:"Backup 8-01-02"}
on 01-08-2002 21:27, Chris Garaffa at email@hidden wrote:
>
Hey everyone... Searched the archives but got 2000+ results; can't
>
justify the time to go through them all.
>
Hopefully, there's a simple answer to a basic question: 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". (Of
>
course, the make new folder command is in a tell application "Finder"
>
block. The syntax seems ok (make new folder is in blue, if it matters),
>
but it gets that error.
>
I've also tried with a shell script (mkdir), but quoting issues are
>
holding me back there as well...don't need/want to go there right now.
>
>
I noticed Akua Sweets says that they may support OS X in 1.5, but
>
1.4.something is currently available... I will use an OSAX, as this is
>
only going to run on one machine.
>
>
If this is not possible, would anyone recommend a work-around? I'm
>
thinking of manually creating an empty folder once, then duplicating it
>
and renaming it in the script.
>
>
Thanks
>
>
c.
>
_______________________________________________
>
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.
_______________________________________________
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.