• 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: Error -1 When Making and naming folders
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -1 When Making and naming folders


  • Subject: Re: Error -1 When Making and naming folders
  • From: Andrew Oliver <email@hidden>
  • Date: Fri, 20 Jun 2003 12:04:00 -0700

Why are you creating it and then naming it, rather than just creating it
with the name you want:

tell application "Finder"
make new folder with properties {name:"not untitled"}
end tell

That way you don't have to wait for the Finder to play catch up.

Andrew
:)

On 6/19/03 8:37 AM, "Francesco Leo" <email@hidden> wrote:

> I'm attempting to create a script that will duplicate an extensive
> folder structure, as well as copy the first 5 documents in each folder
> to the new structure.
>
> I seem to be running into a problem (one that I've seen before) where I
> get an error when creating a new folder and naming it. It almost seem
> that the creation of the folder is happening too slowly, and the script
> is trying to name it before it exists.
>
> In the past I've worked around this by adding a delay...
>
> Does anyone have any insight into this?
>
> HELP!!!
>
> Cheech Leo
>
> email@hidden
> _______________________________________________
> 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.

References: 
 >Error -1 When Making and naming folders (From: Francesco Leo <email@hidden>)

  • Prev by Date: Quark printing and choosing the filename for that,file
  • Next by Date: GUI Scripting: clicking button in FM Pro dialog box
  • Previous by thread: Error -1 When Making and naming folders
  • Next by thread: Why so few OSX Additions?
  • Index(es):
    • Date
    • Thread