Re: New Folder at a specified path
Re: New Folder at a specified path
- Subject: Re: New Folder at a specified path
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 02 Aug 2002 17:51:14 -0700
On 8/2/02 5:32 PM, "email@hidden" <email@hidden> wrote:
>
I'm trying this:
>
set pathToFolder to "Disk:Folder:newFolder"
>
tell application finder to make a new folder at pathToFolder
>
>
and it fails and gives me a "Finder got an error: Can't get some object"
>
error, which is somewhat less than helpful.
>
>
Is there any way to do this apart from breaking the path up with TIDs of
>
{":"} and doing
>
tell application "Finder" to make a new folder at pathTo with
>
properties {name: folderName}
No. You have to tell the Finder to make a folder at a _folder_, not at a
string, but you _can_ use the string file path version to define it, not
necessarily with the convoluted 'folder "Whatsis" of folder "Whatsat" of
disk "Whosits"
set pathToFolder to "Disk:Folder:"
tell application "Finder" to make new folder at pathToFolder with
properties {name:"newFolder"}
BTW, 'application finder' (without quotes for "Finder") from your first
example is never going to do anything. And it won't like 'make "a" new
folder' either.
--
Paul Berkowitz
_______________________________________________
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.