• 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: New Folder at a specified path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >New Folder at a specified path (From: email@hidden)

  • Prev by Date: Re: Log
  • Next by Date: Re: Why root?
  • Previous by thread: Re: New Folder at a specified path
  • Next by thread: Re: TRIM [Trimming White Space]
  • Index(es):
    • Date
    • Thread