Re: Error -1 When Making and naming folders
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.